0
$\begingroup$

Rosanswers logo

Hi,

I've declared my robot's footprint in my common costmap params:

footprint: [[-0.7,-0.45], [0.70,-0.45],[0.70, 0.45],[-0.70, 0.45]]

and so I haven't set inscribed or circumscribed radii, because those can be figured out from my footprint.

Nevertheless, when I run move_base I get this warning:

[ WARN] [1367908257.219539023, 2.000000000]: You have set an inflation radius that is less than the inscribed and circumscribed radii of the robot. This is dangerous and could casue the robot to hit obstacles. Please change your inflation radius setting appropraitely.

Any idea why? Can I safely ignore this warning?

Thanks,

Ernest


Originally posted by Ernest on ROS Answers with karma: 341 on 2013-05-06

Post score: 1

$\endgroup$

2 Answers 2

0
$\begingroup$

Rosanswers logo

This is a bogus warning stemming from a bug in costmap2d. You can safely ignore it. (you can sometimes safely ignore it, see update below). When you set a robot footprint, costmap2d computes inscribed and circumscribed radii from the footprint, so you it doesn't make sense to set these parameters yourself. However, the warning is issued before the computation. I've issued a pull request to fix that:

https://github.com/ros-planning/navigation/pull/43

(I've also included your change in wording, David.)

Update: I just realized that what I wrote above is not quite correct. By "bogus warning" I mean that costmap2d issues that warning even when your inflation radius is safe; my pull request fixes that.

However, of course you need to set an inflation radius which is greater than both your inscribed and circumscribed radii. Your circumscribed radius is sqrt(0.7^2 + 0.45^2) = 0.83, so your inflation radius needs to be >= 0.84.


Originally posted by Martin Günther with karma: 11816 on 2013-05-09

This answer was ACCEPTED on the original site

Post score: 3


Original comments

Comment by Ernest on 2013-05-09:
Thank you Martin.

$\endgroup$
0
$\begingroup$

Rosanswers logo

If you don't set the value of inflation_radius, it will be automatically set to 0.55. The error message probably should read "You have set an inflation radius that is less than the inscribed OR circumscribed radii...". Since the circumscribed radius is .7 in this case, an inflation radius of 0.55 is problematic.

Quick Fix: set the inflation radius to >= .55.


Originally posted by David Lu with karma: 10932 on 2013-05-08

This answer was NOT ACCEPTED on the original site

Post score: 1


Original comments

Comment by David Lu on 2013-05-09:
Math is hard. It should be .83 as Martin points out.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.