32 #ifndef HUSKY_BASE_HORIZON_LEGACY_WRAPPER_H 33 #define HUSKY_BASE_HORIZON_LEGACY_WRAPPER_H 36 #include "boost/type_traits/is_base_of.hpp" 40 const uint16_t UNSUBSCRIBE = 0xFFFF;
52 void controlSpeed(
double speed_left,
double speed_right,
double accel_left,
double accel_right);
61 (boost::is_base_of<clearpath::Message, T>::value),
62 "T must be a descendant of clearpath::Message" 70 while (T *next = T::popNext())
83 latest = T::waitNext(timeout);
100 update = T::getUpdate(timeout);
111 T::subscribe(frequency);
116 T::subscribe(UNSUBSCRIBE);
122 #endif // HUSKY_BASE_HORIZON_LEGACY_WRAPPER_H void connect(std::string port)
static Ptr getLatest(double timeout)
boost::shared_ptr< T > Ptr
static void subscribe(double frequency)
void update(controller_manager::ControllerManager &cm, const ros::TimerEvent &e)
boost::shared_ptr< const T > ConstPtr
static void unsubscribe()
void configureLimits(double max_speed, double max_accel)
static Ptr requestData(double timeout)
BOOST_STATIC_ASSERT_MSG((boost::is_base_of< clearpath::Message, T >::value),"T must be a descendant of clearpath::Message")
void controlSpeed(double speed_left, double speed_right, double accel_left, double accel_right)