# Real Robot: Issue with local\_setup.bash

**URL:** <https://get-help.theconstruct.ai/t/real-robot-issue-with-local-setup-bash/15026>\
**Category:** ROS2 in 5 Days C++\
**Created:** [January 27, 2022, 1:47pm UTC](https://get-help.theconstruct.ai/t/real-robot-issue-with-local-setup-bash/15026 "2022-01-27T13:47:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![loickchovet](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/l/7bcc69/32.png) [@loickchovet](https://get-help.theconstruct.ai/u/loickchovet)\
**Post date:** [January 27, 2022, 1:47pm UTC](https://get-help.theconstruct.ai/t/real-robot-issue-with-local-setup-bash/15026/1 "2022-01-27T13:47:33Z")

</div>

Hello,

I have finished the first parts of the tutorial and now trying to do the real robot project.  
I have 2 main issues :

- When I run the bridge according to the commands that are given, I still don’t see all the topics bridged (with ros2 topic list). Especially cmd\_vel. Is it normal even if there is the “–bridge-all-topics” (It seems that I can still publish on cmd\_vel and that it will works)

- If I try to source the ros2\_ws/install/setup.bash (to teleop of execute my node) file, I have the following error :

```auto
not found: "/home/user/ros2_ws/install/turtlebot3_node/share/turtlebot3_node/local_setup.bash"

```

If then, I try to teleop, I have an error.

Thank you for the help

---

<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:** [January 28, 2022, 9:00am UTC](https://get-help.theconstruct.ai/t/real-robot-issue-with-local-setup-bash/15026/2 "2022-01-28T09:00:29Z")

</div>

Hi,

Are you working in the simulation? The reason why you might not see the `cmd_vel` topic is because no one is publishing to the topic yet, so the bridge connection hasn’t been made.

As for the teleop issue, sometimes the sourcing isn’t done right when you past more than one command at a time. Try typing them one by one in a terminal:

- `source ros2_ws/install/setup.bash`
- `export TURTLEBOT3_MODEL=burger`
- `ros2 run turtlebot3_teleop teleop_keyboard`

---

<div class="post-metadata">

**Author:** ![Gorgo](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/gorgo/32/5226_2.png) [@Gorgo](https://get-help.theconstruct.ai/u/Gorgo)\
**Post date:** [September 14, 2022, 12:43pm UTC](https://get-help.theconstruct.ai/t/real-robot-issue-with-local-setup-bash/15026/3 "2022-09-14T12:43:31Z")

</div>

I’m facing the same turtlebot3\_node problem:  
In a new termin I typed the first command:

```auto
source ros2_ws/install/setup.bash

```

but it prompts:

```auto
user:~$ source ros2_ws/install/setup.bash
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.
not found: "/home/user/ros2_ws/install/turtlebot3_node/share/turtlebot3_node/local_setup.bash"

```

---

<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:** [September 15, 2022, 8:01am UTC](https://get-help.theconstruct.ai/t/real-robot-issue-with-local-setup-bash/15026/4 "2022-09-15T08:01:43Z")

</div>

This looks like your shell has its sources mixed up.

Try opening a new one and instead of the `turtlebot3_teleop`, just use the generic one:

`ros2 run teleop_twist_keyboard teleop_twist_keyboard.py`

---

<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:** [September 17, 2022, 7:00am UTC](https://get-help.theconstruct.ai/t/real-robot-issue-with-local-setup-bash/15026/5 "2022-09-17T07:00:30Z")

</div>

This topic was automatically closed after 46 hours. New replies are no longer allowed.
