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


asked 2015-09-09 09:28:33 -0500

nightblue gravatar image

Im using ROS navigation package, during setting navigation parameters I have seen some used unknown_cost_value parameters by setting 0. I understood by setting it 0 it means robot should assume unknown celss as free, but I wonder what is the general tendency ? Should I set it 0 (FREE_SPACE) or LETHAL_OBSTACLE = 254 or NO_INFORMATION = 255 ? Isn't it awkward if I set unknown_cost_value to NO_INFORMATION=255 ?(why they didnt already set it to 255?)


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-09-19 11:56:05 -0500

David Lu gravatar image

This question is ambiguous. The values you quote in the second part of the question are the conventions for costmaps, but you don't specify who the "some" is that is using 0.

edit flag offensive delete link more

answered 2021-01-11 15:15:56 -0500

Orhan gravatar image

For the future visitors,

I was trying to prohibit the unknown space from planners to plan through, and nothing helped but this parameter in my case.

Basically after setting GlobalPlanner/allow_unknown to false and track_unknown_space: true for costmap layers, the expected behaviour was avoiding the unknown spaces while planning. But it didn't work without setting these parameters for costmaps:

  unknown_cost_value: 254
  unknown_cost_value: 254

Even though the question was ambiguous, I hope people will find this explanation after googling queries like "setting GlobalPlanner allow_unknown` parameter doesn't work".

edit flag offensive delete link more


Thank you for your contribution, I am facing the same issue.

zuy gravatar image zuy  ( 2021-12-06 10:33:49 -0500 )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

1 follower


Asked: 2015-09-09 09:28:33 -0500

Seen: 331 times

Last updated: Jan 11 '21