Public Member Functions | Protected Attributes
TargetSender Class Reference

List of all members.

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.

Detailed Description

Definition at line 35 of file send_targets.cpp.


Constructor & Destructor Documentation

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 pr2_controller or listening to the joint_states topic.

Definition at line 43 of file send_targets.cpp.

Definition at line 74 of file send_targets.cpp.


Member Function Documentation

bool TargetSender::sendupdate ( std::string  joint_name,
double  target 
) [inline]

Sends a target to the given joint.

Parameters:
joint_nameThe joint we want to send the target to.
targetThe target in degrees.
Returns:
true if success.

Definition at line 85 of file send_targets.cpp.


Member Data Documentation

A node handle to be able to publish.

Definition at line 111 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 105 of file send_targets.cpp.


The documentation for this class was generated from the following file:


sr_edc_ethercat_drivers
Author(s): Yann Sionneau, Ugo Cupcic / ugo@shadowrobot.com, software@shadowrobot.com
autogenerated on Mon Oct 6 2014 07:38:25