Public Member Functions | |
bool | sendupdate (std::string joint_name, double target) |
TargetSender () | |
~TargetSender () | |
Protected Attributes | |
ros::NodeHandle | node_handle_ |
A node handle to be able to publish. | |
std::map< std::string, ros::Publisher > | publisher_map_ |
The map were the publishers are stored. |
Definition at line 37 of file send_targets.cpp.
TargetSender::TargetSender | ( | ) | [inline] |
The TargetSender class stores a map of publishers to associate a joint name to a publisher for easily sending targets to a given joint.
This array of joints could also be guessed either using the controller or listening to the joint_states topic.
Definition at line 45 of file send_targets.cpp.
TargetSender::~TargetSender | ( | ) | [inline] |
Definition at line 76 of file send_targets.cpp.
bool TargetSender::sendupdate | ( | std::string | joint_name, |
double | target | ||
) | [inline] |
Sends a target to the given joint.
joint_name | The joint we want to send the target to. |
target | The target in degrees. |
Definition at line 88 of file send_targets.cpp.
ros::NodeHandle TargetSender::node_handle_ [protected] |
A node handle to be able to publish.
Definition at line 114 of file send_targets.cpp.
std::map<std::string, ros::Publisher> TargetSender::publisher_map_ [protected] |
The map were the publishers are stored.
Definition at line 108 of file send_targets.cpp.