33 #ifndef roch_BASE_core_WRAPPER_H 34 #define roch_BASE_core_WRAPPER_H 37 #include "boost/type_traits/is_base_of.hpp" 41 const uint16_t UNSUBSCRIBE = 0xFFFF;
53 void controlSpeed(
double speed_left,
double speed_right,
double accel_left,
double accel_right);
55 void controloverallSpeed(
double speed_left,
double speed_right,
double accel_left,
double accel_right);
64 (boost::is_base_of<sawyer::Message, T>::value),
65 "T must be a descendant of sawyer::Message" 73 while (T *next = T::popNext())
86 latest = T::waitNext(timeout);
104 update = T::getUpdate(timeout);
115 T::subscribe(frequency);
120 T::subscribe(UNSUBSCRIBE);
126 #endif // roch_BASE_core_WRAPPER_H static void subscribe(double frequency)
BOOST_STATIC_ASSERT_MSG((boost::is_base_of< sawyer::Message, T >::value),"T must be a descendant of sawyer::Message")
boost::shared_ptr< T > Ptr
static Ptr getLatest(double timeout)
boost::shared_ptr< const T > ConstPtr
void connect(std::string port)
void controloverallSpeed(double speed_left, double speed_right, double accel_left, double accel_right)
void controlSpeed(double speed_left, double speed_right, double accel_left, double accel_right)
void update(controller_manager::ControllerManager &cm, const ros::TimerEvent &e)
void configureLimits(double max_speed, double max_accel)
static void unsubscribe()
static Ptr requestData(double timeout)