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

Definition at line 45 of file send_targets.cpp.

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


Member Data Documentation

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.


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


sr_edc_ethercat_drivers
Author(s): Ugo Cupcic, Yann Sionneau, Toni Oliver
autogenerated on Mon Jul 1 2019 20:06:31