Configuring the planner

Once we have configured the global and local costmap, we need to configure the base planner. This is used to generate the velocity commands to control the mobile robot. Hence, we will create a new file in chapter7_tutorials/launch with the name base_local_planner_params.yaml, and add the following code:

TrajectoryPlannerROS:
max_vel_x: 0.2
min_vel_x: 0.05
max_rotational_vel: 0.15
min_in_place_rotational_vel: 0.01
min_in_place_vel_theta: 0.01
max_vel_theta: 0.15
min_vel_theta: -0.15
acc_lim_th: 3.2
acc_lim_x: 2.5
acc_lim_y: 2.5
holonomic_robot: false

Here, the config file defines the maximum and minimum velocities, as well as the acceleration for the mobile robot. The holonomic_robot parameter is set to true only if we are using a holonomic platform for the mobile robot. We are working with differential drive platforms, which are non-holonomic.

A holonomic vehicle is one that can move in all the configured space from any position.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.156.46