ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
ros::Subscriber sens_sub_ = n.subscribe<turtlebot_node::turtlebotsensorstate>("sensor_state", 1000, callback01);
this line should have /turtlebot_node/sensor_state
like this
ros::Subscriber sens_sub_ = n.subscribe<turtlebot_node::turtlebotsensorstate>("/turtlebot_node/sensor_state", 1000, callback01);
and as long as your main program can see bumperState