dynamic_graph_manager
dynamic_graph::RosPublish Class Reference

Publish dynamic-graph information into ROS. More...

#include <ros_publish.hh>

Inheritance diagram for dynamic_graph::RosPublish:
Collaboration diagram for dynamic_graph::RosPublish:

Public Types

typedef boost::function< void(int)> callback_t
 
typedef boost::tuple< boost::shared_ptr< dynamicgraph::SignalBase< int > >, callback_t > bindedSignal_t
 

Public Member Functions

 RosPublish (const std::string &n)
 
virtual std::string getDocString () const
 
void display (std::ostream &os) const
 
void add (const std::string &signal, const std::string &topic)
 
void rm (const std::string &signal)
 
std::string list () const
 
void clear ()
 
int & trigger (int &, int)
 
template<typename T >
void sendData (boost::shared_ptr< realtime_tools::RealtimePublisher< typename DgToRos< T >::ros_t > > publisher, boost::shared_ptr< typename DgToRos< T >::signalIn_t > signal, int time)
 
template<typename T >
void add (const std::string &signal, const std::string &topic)
 

Static Public Attributes

static const double ROS_JOINT_STATE_PUBLISHER_RATE = 0.01
 

Private Member Functions

 DYNAMIC_GRAPH_ENTITY_DECL ()
 

Private Attributes

ros::NodeHandle & nh_
 
std::map< std::string, bindedSignal_t > bindedSignal_
 
dynamicgraph::SignalTimeDependent< int, int > trigger_
 
ros::Duration rate_
 
ros::Time lastPublicated_
 
boost::interprocess::interprocess_mutex mutex_
 

Static Private Attributes

static const std::string docstring_
 

Detailed Description

Publish dynamic-graph information into ROS.


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