EEROS  1.0.0.0
API for the EEROS Real-Time Robotics Framework
eeros::control::RosSubscriber< TRosMsg, SigOutType > Class Template Referenceabstract

#include <RosSubscriber.hpp>

Inheritance diagram for eeros::control::RosSubscriber< TRosMsg, SigOutType >:
Collaboration diagram for eeros::control::RosSubscriber< TRosMsg, SigOutType >:

Public Member Functions

 RosSubscriber (const std::string &topic, const uint32_t queueSize=1000, const bool callNewest=false)
 
virtual void rosCallbackFct (const TRosMsg &msg)=0
 
virtual void run ()
 
- Public Member Functions inherited from eeros::control::Block1o< SigOutType >
 Block1o ()
 
virtual Output< SigOutType > & getOut ()
 
- Public Member Functions inherited from eeros::control::Block
virtual void setName (std::string name)
 
virtual std::string getName ()
 
- Public Member Functions inherited from eeros::Runnable
virtual ~Runnable ()
 

Protected Attributes

ros::Subscriber subscriber
 
const std::string & topic
 
bool callNewest
 
- Protected Attributes inherited from eeros::control::Block1o< SigOutType >
Output< SigOutType > out
 

Constructor & Destructor Documentation

template<typename TRosMsg, typename SigOutType>
eeros::control::RosSubscriber< TRosMsg, SigOutType >::RosSubscriber ( const std::string &  topic,
const uint32_t  queueSize = 1000,
const bool  callNewest = false 
)
inline

Member Function Documentation

template<typename TRosMsg, typename SigOutType>
virtual void eeros::control::RosSubscriber< TRosMsg, SigOutType >::rosCallbackFct ( const TRosMsg &  msg)
pure virtual
template<typename TRosMsg, typename SigOutType>
virtual void eeros::control::RosSubscriber< TRosMsg, SigOutType >::run ( )
inlinevirtual

Implements eeros::Runnable.

Member Data Documentation

template<typename TRosMsg, typename SigOutType>
bool eeros::control::RosSubscriber< TRosMsg, SigOutType >::callNewest
protected
template<typename TRosMsg, typename SigOutType>
ros::Subscriber eeros::control::RosSubscriber< TRosMsg, SigOutType >::subscriber
protected
template<typename TRosMsg, typename SigOutType>
const std::string& eeros::control::RosSubscriber< TRosMsg, SigOutType >::topic
protected

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