Public Member Functions | Protected Attributes | List of all members
TargetSender Class Reference

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. More...
 
std::map< std::string, ros::Publisherpublisher_map_
 The map were the publishers are stored. More...
 

Detailed Description

Definition at line 36 of file send_targets.cpp.

Constructor & Destructor Documentation

◆ TargetSender()

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 44 of file send_targets.cpp.

◆ ~TargetSender()

TargetSender::~TargetSender ( )
inline

Definition at line 78 of file send_targets.cpp.

Member Function Documentation

◆ sendupdate()

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 90 of file send_targets.cpp.

Member Data Documentation

◆ node_handle_

ros::NodeHandle TargetSender::node_handle_
protected

A node handle to be able to publish.

Definition at line 116 of file send_targets.cpp.

◆ publisher_map_

std::map<std::string, ros::Publisher> TargetSender::publisher_map_
protected

The map were the publishers are stored.

Definition at line 110 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 Feb 28 2022 23:50:53