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

Sequence of execution of move_base

asked 2015-04-24 12:19:54 -0500

Naman gravatar image

Hi,

I have a mobile robot and would like it to navigate around the building. I already have a map of the building. I am using Wheel Encoders to generate odometry. I am feeding the output of Wheel encoders and IMU to robot_pose_ekf ( http://wiki.ros.org/robot_pose_ekf ) and then using AMCL for localization. Finally, I have the move_base package which plans the path and sends command velocities to the motors.
Assuming robot is at its starting position and it knows its path to the goal, my question is what is the sequence of steps after that:: ?
1. Local planner generates command velocities and sends its to the motors and then Wheel encoders start and generate odometry message which is fed into move_base. But again move_base needs some input odometry message, will that be just NULL to begin with?
2. Or, you give some initial default odometry message from wheel encoders to move_base which is used by move_base to generate command velocities and the cycle continues?

Hope I have made myself clear.

Thanks in advance.
Naman

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-04-24 13:34:27 -0500

yohtm gravatar image

I guess its a mix of both of your suggestions. The motor node needs to start sending odometry as soon as amcl and move_base start (even if it hasn't moved). The odometry and imu (through the localization node) and amcl will allow the robot to be positionned adequatly on the map with its tf. Then, using the position of the robot, the map and the currently seen obstacles, move_base will compute a local plan to follow the global plan according to various parameters (see base_local_planner parameters). As the robot moves, the position and obstacles are updated and move_base updates its local plan continuously until it reaches the goal.

The graph on the move_base page illustrates quite well how nodes and topics interact.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-04-24 12:19:54 -0500

Seen: 337 times

Last updated: Apr 24 '15