-
Notifications
You must be signed in to change notification settings - Fork 74
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
[ros2] ros1_bridge can't map ObjectHypothesis between before-noetic ROS 1 and ROS 2 #39
Comments
Probably relates to this recent commit: 82dda4a |
To clarify: The field is About the mapping rules: It's easy to convert an |
I'd say that in a setup where it bridges the old ( |
Fair enough. The bridge could just try whether the conversion works and throw an exception if the string cannot be converted to an int. |
Might be a delicate situation, though. Custom mapping rules for the ros1_bridge are supposed to live in the ROS 2 package, IMHO, but if it is required or not is depending on the ROS 1 version in use. |
Thanks for the bug report! Unfortunately I don't have the bandwidth to work on this and come up with a good solution right now. I'm happy to review PRs or advocate for a PR on the bridge repo, though. I'm going to create a "help wanted" label and apply it to this issue. Also, note that while Melodic is not EOL until 2023, the ROS2 distros that also target Ubuntu 18 (Dashing and Eloquent) are EOL in May 2021 and November 2020. So any fix for these distros that involves ros2_bridge fixes would have to come in before then. |
PR #57 broke this for noetic as well, because it reverted the id to integer instead of a string and ros1_bridge cannot handle this. |
ros1_bridge can't map ObjectHypothesis between before-noetic ROS 1 and ROS 2 because of two conflicting types in ObjectHypothesis'
id
field. The field isint64
in until ROS 1 melodic andstring
in noetic and ROS 2 (thanks @mintar for the clarification).During compilation of ros1_bridge, the automatic mapping attempt will fail with the following error:
This probably requires a custom mapping rule (which is possible for ros1_bridge).
The text was updated successfully, but these errors were encountered: