Error starting ros1_bridge

I am using the Ros2 real robot ROSJECT.

Everything was well but suddenly I am not able to start ros1_bridge. I am getting the following errors

user:~/ros2_ws$ source .bashrc_ros2
not found: “/home/user/ros2_ws/install/turtlebot3_node/share/turtlebot3_node/local_setup.bash”

user:~/ros2_ws$ ros2 run ros1_bridge dynamic_bridge
/home/simulations/ros2_sims_ws/install/ros1_bridge/lib/ros1_bridge/dynamic_bridge: error while loading shared libraries: cannot open shared object file: No such file or directory


Like it shows in the course, in the terminal that you are launching the bridge you must source ROS noetic first, and then ROS foxy:

source /opt/ros/noetic/setup.bash
source /opt/ros/foxy/setup.bash

Then, you can run the bridge. I will update the notebook to specify the sourcing.

ok thanks, that fixed it

1 Like