35 #include <geometry_msgs/Twist.h> 37 #include <md49_messages/md49_data.h> 38 #include <md49_messages/md49_encoders.h> 41 int main(
int argc,
char* argv[] ){
46 ros::init(argc, argv,
"base_controller" );
49 ROS_INFO(
"base_controller: base_controller running...");
65 while(myBaseController.
n.
ok())
int get_initial_md49_timeout()
get_initial_md49_timeout
int get_actual_speed_r()
get_actual_speed_r
int main(int argc, char *argv[])
void publish_md49_data()
This function reads data and parameters from MD49 and publishes them as topic /md49_data.
void publish_encoders()
This function reads encodervalues from MD49 and publishes them as topic /md49_encoders.
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void init_md49(int speed_l, int speed_r, int mode, int acceleration, bool timeout, bool regulator)
This function sets parameters for MD49 as read from config file or as set as defaults.
int get_initial_md49_mode()
get_initial_md49_mode
int get_actual_speed_l()
get_actual_speed_l
int get_requested_speed_l()
get_requested_speed_l
void set_actual_speed_r(int speed_r)
set_actual_speed_r
int get_initial_md49_regulator()
get_initial_md49_regulator
void open_serialport()
This function opens serial port MD49 is connected to.
int get_requested_speed_r()
get_requested_speed_r
void set_speed(int speed_l, int speed_r)
This function sets speed for left and right drive on MD49.
void set_actual_speed_l(int speed_l)
set_actual_speed_l
ROSCPP_DECL void spinOnce()