LocalGuidance
A library that generates velocity references to follow a path.
any_node::ThrottledSubscriber< MessageType, CallbackClass > Class Template Reference

#include <ThrottledSubscriber.hpp>

Public Member Functions

 ThrottledSubscriber ()
 
 ThrottledSubscriber (const double timeStep, ros::NodeHandle &nh, const std::string &topic, uint32_t queue_size, void(CallbackClass::*fp)(const boost::shared_ptr< MessageType const > &), CallbackClass *obj, const ros::TransportHints &transport_hints=ros::TransportHints())
 
virtual ~ThrottledSubscriber ()
 
void shutdown ()
 
void internalCallback (const boost::shared_ptr< MessageType const > &msg)
 

Protected Attributes

ros::Subscriber subscriber_
 
void(CallbackClass::* fp_ )(const boost::shared_ptr< MessageType const > &)
 
CallbackClass * obj_
 
ros::Time lastTime_
 
ros::Duration timeStep_
 

Constructor & Destructor Documentation

template<typename MessageType , typename CallbackClass >
any_node::ThrottledSubscriber< MessageType, CallbackClass >::ThrottledSubscriber ( )
inline
template<typename MessageType , typename CallbackClass >
any_node::ThrottledSubscriber< MessageType, CallbackClass >::ThrottledSubscriber ( const double  timeStep,
ros::NodeHandle &  nh,
const std::string &  topic,
uint32_t  queue_size,
void(CallbackClass::*)(const boost::shared_ptr< MessageType const > &)  fp,
CallbackClass *  obj,
const ros::TransportHints &  transport_hints = ros::TransportHints() 
)
inline
template<typename MessageType , typename CallbackClass >
virtual any_node::ThrottledSubscriber< MessageType, CallbackClass >::~ThrottledSubscriber ( )
inlinevirtual

Member Function Documentation

template<typename MessageType , typename CallbackClass >
void any_node::ThrottledSubscriber< MessageType, CallbackClass >::internalCallback ( const boost::shared_ptr< MessageType const > &  msg)
inline
template<typename MessageType , typename CallbackClass >
void any_node::ThrottledSubscriber< MessageType, CallbackClass >::shutdown ( )
inline

Member Data Documentation

template<typename MessageType , typename CallbackClass >
void(CallbackClass::* any_node::ThrottledSubscriber< MessageType, CallbackClass >::fp_) (const boost::shared_ptr< MessageType const > &)
protected
template<typename MessageType , typename CallbackClass >
ros::Time any_node::ThrottledSubscriber< MessageType, CallbackClass >::lastTime_
protected
template<typename MessageType , typename CallbackClass >
CallbackClass* any_node::ThrottledSubscriber< MessageType, CallbackClass >::obj_
protected
template<typename MessageType , typename CallbackClass >
ros::Subscriber any_node::ThrottledSubscriber< MessageType, CallbackClass >::subscriber_
protected
template<typename MessageType , typename CallbackClass >
ros::Duration any_node::ThrottledSubscriber< MessageType, CallbackClass >::timeStep_
protected

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