First time here? Check out the FAQ!


ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked Nov 6 '14

2ROS0 gravatar image

move_base_node callbacks

Hi,

I was going through the code for the move_base_node:

int main(int argc, char** argv){
  ros::init(argc, argv, "move_base_node");
  tf::TransformListener tf(ros::Duration(10));
  move_base::MoveBase move_base( tf );
  ros::spin();
  return(0);
}

So I'm wondering, what callbacks does the ros::spin() at the end execute? The constructor for the MoveBase object has a subscriber, a couple of services, an action server and some other stuff.

And in general, I guess my question is - what callbacks does the ros::spin wait for?

click to hide/show revision 2
No.2 Revision

move_base_node callbacks

Hi,

I was going through the code for the move_base_node:

int main(int argc, char** argv){
  ros::init(argc, argv, "move_base_node");
  tf::TransformListener tf(ros::Duration(10));
  move_base::MoveBase move_base( tf );
  ros::spin();
  return(0);
}

So I'm wondering, what callbacks does the ros::spin() at the end execute? The constructor for the MoveBase object has a subscriber, a couple of services, an action server and some other stuff.

And in general, I guess my question is - what callbacks does the ros::spin wait for?

Source: https://github.com/ros-planning/navigation