Open
Conversation
Author
|
I have a similar fix for actions for when #256 is merged, or if this is merged first I'll push there. |
3dc613a to
bc896ce
Compare
sloretz
reviewed
Dec 1, 2020
ros1_bridge/__init__.py
Outdated
| # iterate_packages might return ROS2 paths for already found ROS1 pkgs | ||
| msg = Message(package_name, message_name, path) | ||
| if msg not in msgs: | ||
| msgs.append(msg) |
Contributor
There was a problem hiding this comment.
Is it guaranteed that the first message found will be the ROS 1 version and not the ROS 2 version? If not then this check might not be enough.
Author
There was a problem hiding this comment.
I don't think it's guaranteed, so you're right.
I've reimplented this, please take a look.
Signed-off-by: Victor Lopez <victor.lopez@pal-robotics.com>
bc896ce to
bcfc9cb
Compare
Author
|
Friendly ping, could we move this? Is it going to make it to foxy or just galactic an newer? |
Contributor
|
Probably not, galactic is EOL already... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
iterate_packagesmight return ROS2 paths for already found ROS1 pkgsThis results in duplicated entries in
dataand double definitions in the generated cpp code.This happens to me building for instance this package: https://github.com/pal-robotics/pal_msgs/tree/ros2-tests/pal_common_msgs
I am trying to have both ROS1 and ROS2 msgs on the same branch, and need to do some package.xml and CMakeLists hacking, which might be tricking
iterate_packages.I have 3 workspaces:
ros1_ws extending /opt/ros/noetic, built with caktin_make install
ros2_ws extending /opt/ros/foxy, built with colcon build
bridge_ws, extending ros1_ws and ros2_ws install dirs.
And
rosmsg.iterate_packages(rospack, rosmsg.MODE_MSG)returns:Am I doing something wrong? I was surprised that this did not happen with other messages that are both installed in ROS1 and ROS2.