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

Question to function GlobalPlanner::worldToMap() #1135

Open
vacuum136 opened this issue Jul 5, 2021 · 0 comments
Open

Question to function GlobalPlanner::worldToMap() #1135

vacuum136 opened this issue Jul 5, 2021 · 0 comments

Comments

@vacuum136
Copy link

Hi,

I am a bit of confused when I look the following lines of code. In default, old_navfn_behavior_ is false and accordingly convert_offset_ will be set to 0.5. In this case, if the origin of costmap is taken, it would be converted to a grid index which is negative, but we know that all grid indices should be positive. So is there something wrong in the formula or in my understanding?

mx = (wx - origin_x) / resolution - convert_offset_;

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

No branches or pull requests

1 participant