Robotics StackExchange | Archived questions

Package ros1_bridge not found

Ubuntu 20.04 ROS1 noetic and ROS2 foxy

following this tutorial: link text

when i colcon build only the ros1 bridge using: colcon build --symlink-install --packages-select ros1_bridge --cmake-force-configure

it runs ok...

igor@igor-N4340:~$ source /opt/ros/foxy/setup.bash 
ROS_DISTRO was set to 'noetic' before. Please make sure that the environment does not mix paths from different distributions.
igor@igor-N4340:~$ source /opt/ros/noetic/setup.bash 
ROS_DISTRO was set to 'foxy' before. Please make sure that the environment does not mix paths from different distributions.
igor@igor-N4340:~$ colcon build --symlink-install --packages-select ros1_bridge --cmake-force-configure
Starting >>> ros1_bridge
Finished <<< ros1_bridge [6.21s] 

Summary: 1 package finished [6.96s]

But when i source the ros versions on a terminal an try to run:

ros2 run ros1_bridge dynamic_bridge

it says that ros1_bridge was not found

igor@igor-N4340:~$ source /opt/ros/noetic/setup.bash 
igor@igor-N4340:~$ source /opt/ros/foxy/setup.bash 
ROS_DISTRO was set to 'noetic' before. Please make sure that the environment does not mix paths from different distributions.
igor@igor-N4340:~$ ros2 run ros1_bridge dynamic_bridge
Package 'ros1_bridge' not found

Does this "ROSDISTRO was set to '-rosversion-' before. Please make sure that the environment does not mix paths from different distributions." changes something?

also i checked the build file and there is no ros1_bridge on it

Asked by Iguera on 2022-11-18 14:03:43 UTC

Comments

Answers