# Not found: "/home/user/ros2\_ws/install/turtlebot3\_node/share/turtlebot3\_node/local\_setup.bash"

**URL:** <https://get-help.theconstruct.ai/t/not-found-home-user-ros2-ws-install-turtlebot3-node-share-turtlebot3-node-local-setup-bash/27891>\
**Category:** ROS Basics In 5 Days (C++)\
**Tags:** error, ros2\
**Created:** [December 16, 2023, 7:31pm UTC](https://get-help.theconstruct.ai/t/not-found-home-user-ros2-ws-install-turtlebot3-node-share-turtlebot3-node-local-setup-bash/27891 "2023-12-16T19:31:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmarZainA](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/o/e274bd/32.png) [@OmarZainA](https://get-help.theconstruct.ai/u/OmarZainA)\
**Post date:** [December 16, 2023, 7:31pm UTC](https://get-help.theconstruct.ai/t/not-found-home-user-ros2-ws-install-turtlebot3-node-share-turtlebot3-node-local-setup-bash/27891/1 "2023-12-16T19:31:40Z")

</div>

I’m in the rosject launch trying to source the setup.bash file to run the simulation. it’s giving me the following error: not found: “/home/user/ros2\_ws/install/turtlebot3\_node/share/turtlebot3\_node/local\_setup.bash”

Same thing when I try to run the teleop keyboard.

---

<div class="post-metadata">

**Author:** ![munn33b](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/munn33b/32/7621_2.png) [@munn33b](https://get-help.theconstruct.ai/u/munn33b)\
**Post date:** [December 17, 2023, 4:55am UTC](https://get-help.theconstruct.ai/t/not-found-home-user-ros2-ws-install-turtlebot3-node-share-turtlebot3-node-local-setup-bash/27891/2 "2023-12-17T04:55:01Z")

</div>

It seems, this question is duplicate of question from another thread,

> [@Real Robot: Issue with local\_setup.bash](https://get-help.robotigniteacademy.com/t/real-robot-issue-with-local-setup-bash/15026/2):
>
> 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:** ![s.r.narendran](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/s/eb9ed0/32.png) [@s.r.narendran](https://get-help.theconstruct.ai/u/s.r.narendran)\
**Post date:** [December 17, 2023, 8:39am UTC](https://get-help.theconstruct.ai/t/not-found-home-user-ros2-ws-install-turtlebot3-node-share-turtlebot3-node-local-setup-bash/27891/3 "2023-12-17T08:39:05Z")

</div>

Dear @OmarZainA ,

If you’re having trouble sourcing the local\_setup.bash file for the turtlebot3\_node, here’s what you can do:

1. Set Up ROS2 Correctly: Make sure you’ve sourced the ROS2 setup file properly. This is crucial for running ROS2 nodes.

2. Build Your Workspace Again: If you’ve added new packages or changed something, rebuild your workspace with colcon build.

3. Check the File Path: Sometimes the path might be different in The Construct’s environment. Double-check to make sure you’ve got the right path to the local\_setup.bash file.

4. Look for the File: Use the platform’s IDE or terminal to go to the folder and see if the file is actually there. A simple ls command should list all the files in the directory.

5. Match ROS2 Distributions: Ensure that the version of ROS2 you’re using (like Foxy or Galactic) is the same as the one needed for turtlebot3\_node.

6. Follow Course Instructions: If you’re doing a specific course on The Construct, stick closely to the instructions they provide.

7. Check the Simulation: Make sure the simulation and all graphical tools are running well. Problems here can affect running ROS nodes.

8. Try Restarting: Sometimes, just restarting your project environment on The Construct can fix these kinds of issues.

Hope that helps,

Best regards  
Naren

---

<div class="post-metadata">

**Author:** ![OmarZainA](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/o/e274bd/32.png) [@OmarZainA](https://get-help.theconstruct.ai/u/OmarZainA)\
**Post date:** [December 17, 2023, 6:26pm UTC](https://get-help.theconstruct.ai/t/not-found-home-user-ros2-ws-install-turtlebot3-node-share-turtlebot3-node-local-setup-bash/27891/4 "2023-12-17T18:26:00Z")

</div>

Hello there, looks like I can’t source any setup.bash file in any package. The setup.bash files do exist in the specified paths but for some reason when I run the source command in the terminal I get the no found error. You’re suggesting to colcon build the package before sourcing, but I thought we should source before anything. Thank you for your time.

---

<div class="post-metadata">

**Author:** ![EnzoGhisoni](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/enzoghisoni/32/7704_2.png) [@EnzoGhisoni](https://get-help.theconstruct.ai/u/EnzoGhisoni)\
**Post date:** [December 18, 2023, 10:40am UTC](https://get-help.theconstruct.ai/t/not-found-home-user-ros2-ws-install-turtlebot3-node-share-turtlebot3-node-local-setup-bash/27891/5 "2023-12-18T10:40:13Z")

</div>

Hello,  
You should source ros (source /opt/ros//setup.bash) before anything if it’s not already added in the bashrc but the source install/setup.bash is dependant of the colcon build execution as all the files in install folder are generated during the compilation.  
What you can try is to delete the folder generated by the compilation (all the folder in your ros2 workspace except src), colcon build again and try to source install/setup.bash again.

---

<div class="post-metadata">

**Author:** ![Sarah\_Emil22](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@Sarah\_Emil22](https://get-help.theconstruct.ai/u/Sarah_Emil22)\
**Post date:** [December 18, 2023, 12:30pm UTC](https://get-help.theconstruct.ai/t/not-found-home-user-ros2-ws-install-turtlebot3-node-share-turtlebot3-node-local-setup-bash/27891/6 "2023-12-18T12:30:05Z")

</div>

Hi @OmarZainA

This error implies that you are trying to source a workspace with an install setup that doesn’t exist, therefore there are missing install files (which are generated when the workspace is built) and you should `colcon build` your workspace before `source install/setup.bash` .

For future reference ,if you build and source, then set / change / unset any environment variable or make alterations that impact information stored in the `CMakeCache.txt`, and you need to build and source again.

Kind Regards,  
Sarah

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [December 23, 2023, 12:30pm UTC](https://get-help.theconstruct.ai/t/not-found-home-user-ros2-ws-install-turtlebot3-node-share-turtlebot3-node-local-setup-bash/27891/7 "2023-12-23T12:30:24Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
