ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org

# Can a costmap's inscribed_radius and circumscribed_radius be set from the parameter server?

Motivated by this question ( http://answers.ros.org/question/233809 ), I dug into the parameters of costmap_2d and move_base. I had two related questions regarding the radii:

1) Can a costmap's inscribed_radius and circumscribed_radius parameters be set from the parameter server? Digging through the source code, it looks like they are calculated solely based on the robot's footprint / radius (see layered_costmap.cpp#L148), not any user-provided values. Up till now, I thought I could parametrize the inflation layer like below, but I don't think so any more.

inflation_layer:
enabled: true
inscribed_radius:     0.15 # Will this have any effect?
circumscribed_radius: 0.20 # Will this have any effect?


2) Does move_base actually use local_costmap/inscribed_radius for anything? (see move_base.cpp#L101) Also, the following comment (see L100) is not consistent with my new understanding of costmap parametrization:

//we'll assume the radius of the robot to be consistent with what's specified for the costmaps

edit retag close merge delete

Sort by » oldest newest most voted

From my examination of the code move_base does grab local_costmap/inscribed_radius however as far as I can tell it is not passed to the costmaps. The costmap calculates both values from the footprint as you stated.

more