-
Notifications
You must be signed in to change notification settings - Fork 299
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
Implement Foreign Mapping Check Override #367
Conversation
Looks like this package needs a fix (unrelated to this PR): ros2/ci#669 The test build is running assuming that the CI PR is merged in, it shouldn't block this PR. |
Edit: This isn't meant to work on It's unstable for unrelated reasons. I think we're good to go once you can test it on your setup! @jaelrod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but I couldn't run it successfully, using this setup let me know if I'm missing something!
Humm, let me see |
I'll need to add a custom ament resource... Sec |
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
7c6dcb9
to
fb9eae5
Compare
Signed-off-by: methylDragon <methylDragon@gmail.com>
Signed-off-by: methylDragon <methylDragon@gmail.com>
fb9eae5
to
6caa080
Compare
Signed-off-by: methylDragon <methylDragon@gmail.com>
1368a72
to
ebb759a
Compare
OMG it's green!!! Merging |
Nice! Thanks, again! Was following along the PR discussion and planning to test it today but ended up getting sidetracked on something else. Will try backporting to eloquent locally and test it next week. |
Be sure to check out the docs for how to set this up! |
Backported locally to eloquent and can confirm that it works as expected. |
Excellent! |
As requested by, and closes: #364
Description
This PR implements a new
enable_foreign_mappings
mapping rule that allows one to override the package name check that forces a user to define any mapping rules that target a bridge ROS 2 package from that package itself.This will let you define mappings from OUTSIDE a target message's package.
Reminder
As in the
Known Issues
section, you'll probably need to run the bridge with--bridge-all-topics
to get the bridge working with custom messages.Example Usage
See the docs for more details
Set the
enable_foreign_mappings
rule totrue
/True
/1 in your custom mapping rules file!It'll override the check for EVERY RULE defined in that file!
And also add an ament resource (
ros1_bridge_foreign_mapping
) in the mapping package, which will allow the mapping package to be found!In the
CMakeLists.txt
of your mapping package (which is NOT the msgs package!!), before the mapping rules install call:The implementation is tested locally, and seems to work (with messages).