# Potential error in the guide book of Course Project: Navigate with a Real Robot

**URL:** <https://get-help.theconstruct.ai/t/potential-error-in-the-guide-book-of-course-project-navigate-with-a-real-robot/17575>\
**Category:** ROS2 Navigation\
**Created:** [May 26, 2022, 9:04am UTC](https://get-help.theconstruct.ai/t/potential-error-in-the-guide-book-of-course-project-navigate-with-a-real-robot/17575 "2022-05-26T09:04:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluebird](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/b/dec6dc/32.png) [@bluebird](https://get-help.theconstruct.ai/u/bluebird)\
**Post date:** [May 26, 2022, 9:04am UTC](https://get-help.theconstruct.ai/t/potential-error-in-the-guide-book-of-course-project-navigate-with-a-real-robot/17575/1 "2022-05-26T09:04:32Z")

</div>

```auto
source /opt/ros/foxy/setup.bash
ros2 run ros1_bridge dynamic_bridge --bridge-all-topics

```

The above commands will not work.  
Reported errors:

> /home/simulations/ros2\_sims\_ws/install/ros1\_bridge/lib/ros1\_bridge/dynamic\_bridge: error while loading shared libraries: librosconsole.so: cannot open shared object file: No such file or directory

Try to use:  
`user:~$ source ~/.bashrc_bridge`

> ROS\_DISTRO was set to ‘foxy’ before. Please make sure that the environment does not mix paths from different distributions.  
> ROS\_DISTRO was set to ‘noetic’ before. Please make sure that the environment does not mix paths from different distributions.  
> ROS\_DISTRO was set to ‘foxy’ before. Please make sure that the environment does not mix paths from different distributions.  
> user:~$ ros2 run ros1\_bridge dynamic\_bridge --bridge-all-topics  
> created 1to2 bridge for topic ‘/clock’ with ROS 1 type ‘rosgraph\_msgs/Clock’ and ROS 2 type ‘rosgraph\_msgs/msg/Clock’  
> created 1to2 bridge for topic ‘/cv\_camera/camera\_info’ with ROS 1 type ‘sensor\_msgs/CameraInfo’ and ROS 2 type ‘sensor\_msgs/msg/CameraInfo’  
> created 1to2 bridge for topic ‘/cv\_camera/image\_raw’ with ROS 1 type’sensor\_msgs/Image’ and ROS 2 type ‘sensor\_msgs/msg/Image’  
> created 1to2 bridge for topic ‘/cv\_camera/image\_raw/compressed’ withROS 1 type ‘sensor\_msgs/CompressedImage’ and ROS 2 type ‘sensor\_msgs/msg/CompressedImage’  
> created 1to2 bridge for topic '/cv\_camera/image\_raw/compressedDepth’with ROS 1 type ‘sensor\_msgs/CompressedImage’ and ROS 2 type ‘sensor\_msgs/msg/CompressedImage’  
> created 1to2 bridge for topic ‘/gazebo/link\_states’ with ROS 1 type ‘gazebo\_msgs/LinkStates’ and ROS 2 type ‘gazebo\_msgs/msg/LinkStates’  
> created 1to2 bridge for topic  
> …

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [May 27, 2022, 8:09am UTC](https://get-help.theconstruct.ai/t/potential-error-in-the-guide-book-of-course-project-navigate-with-a-real-robot/17575/2 "2022-05-27T08:09:47Z")

</div>

Thank you for sharing this solution, we’ll update the notebook.

---

<div class="post-metadata">

**Author:** ![roalgoal](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/roalgoal/32/7280_2.png) [@roalgoal](https://get-help.theconstruct.ai/u/roalgoal)\
**Post date:** [May 27, 2022, 8:21am UTC](https://get-help.theconstruct.ai/t/potential-error-in-the-guide-book-of-course-project-navigate-with-a-real-robot/17575/3 "2022-05-27T08:21:37Z")

</div>

Thank you, the notebook has been updated. To see them reflected, you’ll have to fork a new copy of the rosject.

Please let me know if you find any additional errors

---

<div class="post-metadata">

**Author:** ![bluebird](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/b/dec6dc/32.png) [@bluebird](https://get-help.theconstruct.ai/u/bluebird)\
**Post date:** [May 27, 2022, 10:29am UTC](https://get-help.theconstruct.ai/t/potential-error-in-the-guide-book-of-course-project-navigate-with-a-real-robot/17575/4 "2022-05-27T10:29:02Z")

</div>

Thanks for your fast response. I will fork the new copy of the rosject for Project 2. After I find the bug, I try to use the file bashrc\_bridge. The result is that using the file bashrc\_bridge alone will not work. I have to source the file bashrc\_ros2, too. After that, the ROS1 bridge runs, and it seems to work. However, the cartographer complains that it cannot receive the information about the topic Scan. So, I start to wonder whether the bridge is working. I close the cartographer; then, try to use the teleop\_keyboard to drive the robot. Certainly, I fail. So, I think the ROS1 bridge is broken.

Considering the time difference and the physical distance between us, I decide not to wait for help. So, I copy the world file from your server and run it on my local computer. Then, I finish Project 1.

When I come back, I find my question has been answered.  
Thanks, again.

Processing: iShot\_2022-05-27\_16.03.57.png…

This is a screenshot from my local computer. It uses your world files with the official turtle bot simulation package. All the programs run on ROS2. The robot model in the turtlebot3 simulation simplifies the detail of the robot, which runs faster but looks ugly. I think you are using the model from the turtlebot3 package. Thanks for that because my computer does not have a GPU.

I definitely will return to your virtual system in Project 2.

---

<div class="post-metadata">

**Author:** ![roalgoal](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/roalgoal/32/7280_2.png) [@roalgoal](https://get-help.theconstruct.ai/u/roalgoal)\
**Post date:** [May 30, 2022, 7:58am UTC](https://get-help.theconstruct.ai/t/potential-error-in-the-guide-book-of-course-project-navigate-with-a-real-robot/17575/5 "2022-05-30T07:58:19Z")

</div>

Thank you for your feedback. I will take a look at those bash scripts.

The way you can make sure the bridge is working is to simply echo the scan topic.

Just to clarify, to launch the bridge you have to:

1. Source ROS: `source /opt/ros/noetic/setup.bash`
2. Source ROS2: `source /opt/ros/foxy/setup.bash`
3. Launch the bridge: `ros2 run ros1_bridge dynamic_bridge --bridge-all-topics`

The reason we use the bridge instead of having everything in ROS 2 is because once you connect to the real TurtleBot3 to validate your project, the robot itself runs ROS, so the bridge is necessary. I’m glad to hear you got it working locally with a ROS2 simulation though.
