4️⃣Navigation Tuning
Taking the node “/motors_ctrl”
as an example. It is publishing to “/odom”
topic with “nav_msgs/Odometry”
message type, along with the other topics in the list. It also subscribes to “/cmd_vel”
topic with message type “geometry_msgs/Twist”
Go into the folder ‘/home/<user>/catkin_ws/movel_ai/config/movel/config/’
In the parameter file costmap_common_params.yaml, ensure that the robot footprint is defined correctly.
If the robot footprint is a polygon, configure the footprint parameter and comment out robot_radius. For example:
Here, the robot has a square footprint with the xy coordinates of the four corners as shown, while robot_radius is commented out.
If the robot footprint is circular, configure the robot_radius parameter and comment out footprint. For example:
In base_local_planner_params.yaml:
Go to “
#Robot
” section. To tune the speed of the robot, configuremax_vel_x
for linear speed, andmax_vel_theta
for angular speed.If the robot is not reaching the max speed, increase
acc_lim_x
andacc_lim_theta
.In footprint_model, select a suitable model type and configure the corresponding parameters.
In “
#Obstacles
” section, tune the value ofmin_obstacle_dist
to set how far away the robot should keep away from obstacles. Reduce this parameter value if the robot is required to go through narrow spaces.
If the autonomous navigation motion is jerky, go to “catkin_ws/movel_ai/config/cmd_vel_mux/config”, find cmd_vel_mux.yaml, and increase the value set for
timeout_autonomous
.For in depth tuning of base_local_planner_params.yaml, refer to http://wiki.ros.org/teb_local_planner.
Last updated