ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to understand robot_radius in costmap parameters and inflation_radius in inflation_layer?

asked 2020-04-23 00:49:58 -0600

willzoe gravatar image

When I just set inflation_radius to 0.5 in inflation_layer, the generated costmap looks like this in rviz: image description

When I add the global parameter robot_radius to 0.2 in the costmap, the generated costmap looks like this in rviz: image description

It seems that the area originally belonging to inflation_radius is narrowed. Moreover, during the navigation process, I found that the robot could not enter the area of inflation_radius.

What I want to ask is:

1) Is it possible to set inflation_radius to the radius of the robot without setting the value of robot_radius while ensuring safe navigation (without hitting obstacles and boundaries)?

2) Why does costmap have both global parameter robot_radius and inflation_layer plugin parameter inflation_radius? Is this redundant, or are there any other considerations for this setting?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-23 10:27:01 -0600

David Lu gravatar image

Check out the documentation here. There is the area around obstacles that will result in collision, which are dictated by the robot's radius. There is the area near obstacles where safe but not preferable navigation can take place, which is dictated by the inflation radius.

Setting them equal will likely result in navigation very close to the obstacles.

edit flag offensive delete link more


So the robot can enter area in inflation radius, unlike what @willzoe is saying?

parzival gravatar image parzival  ( 2020-04-23 12:39:34 -0600 )edit

I may not have made it clear. When I set the parameter robot_radius to 0.2 and the parameter inflation_radius to 0.5, the inflation area around obstacles is divided into two parts: one part is the part close to the obstacle, its width is specified by robot_radius, and the robot cannot enter this part; the other part is near the free space (its color varies with the distance from the obstacle), and is accessible to the robot.

willzoe gravatar image willzoe  ( 2020-04-23 13:41:16 -0600 )edit

@parzival Yes, if I understand what you're saying.

David Lu gravatar image David Lu  ( 2020-04-23 14:17:56 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-04-23 00:49:58 -0600

Seen: 652 times

Last updated: Apr 23 '20