Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inflation layer option to inflate unknown space #1628

Closed
SteveMacenski opened this issue Apr 7, 2020 · 0 comments · Fixed by #1675
Closed

Inflation layer option to inflate unknown space #1628

SteveMacenski opened this issue Apr 7, 2020 · 0 comments · Fixed by #1675

Comments

@SteveMacenski
Copy link
Member

SteveMacenski commented Apr 7, 2020

This can be helpful when you don't want to traverse into unknown to inflate those costs to steer you out of them in case there's any issue in being near them.

Also useful for working with maps without occupancy information. It can be implmeneted by changing:

      if (cost == LETHAL_OBSTACLE) {
        obs_bin.push_back(CellData(index, i, j, i, j));
      }

to

      if (cost == LETHAL_OBSTACLE || (cost == UNKNOWN && inflate_unknown_)) {
        obs_bin.push_back(CellData(index, i, j, i, j));
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant