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

Using a previously generated map for localization (Python) #17

Closed
JackToaster opened this issue Nov 7, 2017 · 3 comments
Closed

Using a previously generated map for localization (Python) #17

JackToaster opened this issue Nov 7, 2017 · 3 comments

Comments

@JackToaster
Copy link

I would like to use BreezySLAM for localization (no mapping) in a known map.
In python, the the algorithm classes have the getmap(mapbytes) method which returns a bytearray with the map, but it seems there is no way to do the opposite (set the map to a bytearray).
Once the map is set, I would also like to be able to localize in the map without modifying the map, but I can't find a way to do this either.

@simondlevy
Copy link
Owner

Thanks for the suggestions, Jack. I should be able to get to it this weekend.

@simondlevy
Copy link
Owner

I've added a a setmap() method, and a should_update_map flag (default=True) to the update() method. I don't have data that would test these modifications, so let me know if you run into difficulty.

@JackToaster
Copy link
Author

I just did a few simple tests, and it looks like it works. Thanks!

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

2 participants