# ROS workspace install error

**URL:** <https://forum.hello-robot.com/t/ros-workspace-install-error/818>\
**Category:** Ask\
**Created:** [September 30, 2023, 6:55pm UTC](https://forum.hello-robot.com/t/ros-workspace-install-error/818 "2023-09-30T18:55:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![keshavshankar](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@keshavshankar](https://forum.hello-robot.com/u/keshavshankar)\
**Post date:** [September 30, 2023, 6:55pm UTC](https://forum.hello-robot.com/t/ros-workspace-install-error/818/1 "2023-09-30T18:55:29Z")

</div>

I’m following the [directions](https://github.com/hello-robot/stretch_install/blob/master/docs/ros_workspace.md) on setting up Stretch in simulation on my m1 MacBook pro with ubuntu running in parallels. After I clone the stretch\_install repo and pull from github, I attempt to run the command “./factory/22.04/stretch\_create\_ament\_workspace.sh”; however, my output shows the following:

"  
###########################################  
CREATING HUMBLE AMENT WORKSPACE at /home/parallels/ament\_ws  
###########################################  
Ensuring correct version of ROS is sourced…  
./factory/22.04/stretch\_create\_ament\_workspace.sh: line 26: ROS\_DISTRO: unbound variable  
"

Looking at this, line 26 in the sh file has something wrong, but I’m not quite sure what.

Any helps and tips would be appreciated!

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [October 1, 2023, 4:48am UTC](https://forum.hello-robot.com/t/ros-workspace-install-error/818/2 "2023-10-01T04:48:32Z")

</div>

Hi @keshavshankar, the `unbounded error` refers to a environment variable not being set. ROS\_DISTRO being unset likely means that ROS isn’t sourced or installed in your virtual machine.

Also, since you’re running the Ament workspace script, I wanted to make sure you knew that a ROS2 simulation doesn’t exist for Stretch yet. It is on our roadmap, but only a Gazebo Classic ROS1 simulation exists at the moment.

---

<div class="post-metadata">

**Author:** ![keshavshankar](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@keshavshankar](https://forum.hello-robot.com/u/keshavshankar)\
**Post date:** [October 3, 2023, 6:42pm UTC](https://forum.hello-robot.com/t/ros-workspace-install-error/818/3 "2023-10-03T18:42:46Z")

</div>

Hi @bshah. So I wanted a stretch simulation, so I went ahead and repeated this process on ubuntu 20.04. In ubuntu, I also installed ROS Noetic using [this](http://wiki.ros.org/noetic/Installation/Ubuntu).

Now, when I run the command “./factory/20.04/stretch\_create\_catkin\_workspace.sh”, I get the error  
“./factory/20.04/stretch\_create\_catkin\_workspace.sh: line 54: /home/keshavshankar/stretch\_user/log/stretch\_create\_catkin\_workspace.202310031810\_redirected.txt: No such file or directory”

I do have a “catkin\_ws” folder with a “src” folder inside of it, however, this source folder has nothing inside of it.

I don’t have physical access to the robot yet, and just want to simulate for now. I assume this error has something to do with ROS Noetic not linked correctly to stretch but I’m not sure how to fix it. I would appreciate any help or tools to walk me through the process.

---

<div class="post-metadata">

**Author:** ![keshavshankar](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@keshavshankar](https://forum.hello-robot.com/u/keshavshankar)\
**Post date:** [October 3, 2023, 6:47pm UTC](https://forum.hello-robot.com/t/ros-workspace-install-error/818/4 "2023-10-03T18:47:04Z")

</div>

Hey @bshah , so I went ahead and repeated the steps with ubuntu 20.04 and installed ROS noetic this time, as I don’t have physical access to the stretch robot yet, and mainly want to simulate it in 3d.

Now, when I go to create a workspace using “./factory/20.04/stretch\_create\_catkin\_workspace.sh”, I get the error “./factory/20.04/stretch\_create\_catkin\_workspace.202310031810\_redirected.txt: No such file directory”. I can confirm that I have a “catkin\_ws \> src” directory, so I assume the issue has to do with no files in the src directory or ROS Noetic not being linked correctly. I would appreciate any help and resources you can direct me to to help me solve this issue. Thanks!

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [October 12, 2023, 5:59pm UTC](https://forum.hello-robot.com/t/ros-workspace-install-error/818/5 "2023-10-12T17:59:57Z")

</div>

Hi @keshavshankar, I believe the “No such file or directory” issue stems from the workspace creation script expecting a “~/stretch\_user/log” directory to exist. Since you’re running the script on your personal machine, you likely don’t have the directory. I’m going to add a fix to the script to avoid this issue in the future. In the meantime, you can create “~/stretch\_user/log” using `mkdir -p ~/stretch_user/log` and rerun the script to get it to run correctly.

---

<div class="post-metadata">

**Author:** ![iibuan](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/iibuan/32/644_2.png) [@iibuan](https://forum.hello-robot.com/u/iibuan)\
**Post date:** [January 22, 2024, 3:37pm UTC](https://forum.hello-robot.com/t/ros-workspace-install-error/818/6 "2024-01-22T15:37:38Z")

</div>

I also encountered this error but was fixed by manually creating the folder as you mentioned. But then a new error has appeared saying hello-robot.conf is not found. How do I get this file? I am only trying the simulator and don’t have the physical robot yet.

---

<div class="post-metadata">

**Author:** ![bshah](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/bshah/32/55_2.png) [@bshah](https://forum.hello-robot.com/u/bshah)\
**Post date:** [January 22, 2024, 7:03pm UTC](https://forum.hello-robot.com/t/ros-workspace-install-error/818/7 "2024-01-22T19:03:34Z")

</div>

Hi @iibuan, good question. Would you mind opening a new thread to cover it?

---

<div class="post-metadata">

**Author:** ![iibuan](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/iibuan/32/644_2.png) [@iibuan](https://forum.hello-robot.com/u/iibuan)\
**Post date:** [January 23, 2024, 11:55am UTC](https://forum.hello-robot.com/t/ros-workspace-install-error/818/9 "2024-01-23T11:55:41Z")

</div>

I’ve opened a [new thread.](https://forum.hello-robot.com/t/create-workspace-for-using-gazebo-simulator/897)
