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

Poor Topic Namespacing Practices #620

Open
agoeckner opened this issue Jun 29, 2023 · 2 comments
Open

Poor Topic Namespacing Practices #620

agoeckner opened this issue Jun 29, 2023 · 2 comments

Comments

@agoeckner
Copy link

By default, the slam_toolbox uses the /scan, /map, and /map_metadata topics:

map_name_ = std::string("/map");

However, this interferes with ROS 2 namespacing, which is critical for multi-robot operation, by causing all robots to use the same /map and /scan topics by default.

The topics should instead default to scan, map, etc. (no leading /) to allow namespaces to be applied.

@SteveMacenski
Copy link
Owner

They can still be just as easily remapped, but they’re set in the global namespace so you can namespace slam toolbox without the main topics disconnecting. This is more for the single robot case than the multirobot case.

Given this is how its been for ~5 years, I’m hesitant to changing it since some may rely on this behavior. You are still able to easily remap these topics at launch time without a problem. Due to a viable work around for your needs, I generally think this should stay this way for now.

If others comment here and this is an important change for many users, we can revisit.

@agoeckner
Copy link
Author

Sounds reasonable! 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