ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Package 'ros1_bridge` not found

asked 2022-11-30 20:15:33 -0500

jacobsayono gravatar image

Hello,

This is the guide that I followed: https://github.com/ros2/ros1_bridge/t... (I am stuck on attempting example 1).

I was successful in building ros1_bridge with colcon (took about 20 mins). I am trying to do the first example. Note that I am bridging neotic (ros1) to foxy (ros2) so I have cloned the ros1_bridge repository from the foxy tree.

In shell A, I sourced ros1 then ran roscore. In shell B, I sourced ros1 then sourced ros2. Then when I try to run:

ros2 run ros1_bridge dynamic_bridge

I get the error

Package 'ros1_bridge' not found.

Am I missing anything here?

Thanks!

edit retag flag offensive close merge delete

Comments

ros1 and ros2 works perfectly btw!

jacobsayono gravatar image jacobsayono  ( 2022-11-30 20:20:46 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-30 20:38:23 -0500

jacobsayono gravatar image

Found out after a day of checking around! I'm a beginner and the tutorial doesn't mention it, but ros1_bridge works as a workspace folder so you'd have to source that workspace.

In .bashrc, I alias 3 things:

alias noetic='source /opt/ros/noetic/setup.bash'

alias foxy='source /opt/ros/foxy/setup.bash'

alias bridge='source ~/ros1_bridge/install/setup.bash'

That way, when you want to run ros1_bridge, which is a ros2 workspace, you can use 1 terminal for this. Your terminal command lines should be something like:

$ noetic

$ foxy

$ bridge

$ ros2 run ros1_bridge dynamic_bridge

in this order!

I hope this helps new beginners trying to get into ROS2 and ROS1!

edit flag offensive delete link more

Comments

Hey jacob,

i still get this output in the terminal: No executable found

Nartmangnourt gravatar image Nartmangnourt  ( 2023-06-23 11:45:34 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-11-30 20:10:55 -0500

Seen: 538 times

Last updated: Nov 30 '22