Hey team! I’m wondering if you have an existing docker image with necessary libraries especially stretch_ros built in? I’m trying to install it in a ubuntu 22.04 ros2 humble image, following this instruction: Updating your ROS Workspace - Stretch Docs . However, I saw a lot of weird errors and after spending >1 hour trying to solve some of the error, it still not working and shows something like this:
I also tried to install following this Simulation Tutorial - Stretch Docs , but got stuck when I run the last step: (where I have tried my best to remove sudo commands but it still raises error).
❯ chmod +x /tmp/stretch_create_ament_workspace.sh
❯ /tmp/stretch_create_ament_workspace.sh
Please run this script without sudo.
Is there any way to help me get out of this installation hell? Thank you very much!
Sorry you’re running into these setup issues. Quick question first:
Do you have a physical Stretch robot, or are you setting this up purely for simulation on a non-robot machine?
From your description, it sounds like you’re on an Ubuntu 22.04 + ROS 2 Humble Docker environment without a Stretch robot. The Stretch install instructions are intended to be run directly on a Stretch robot, which is why you’re likely running into these issues.
Hi Jason, thanks for the quick response, appreciate that. Yes I want to be able to develop without the robot, so I’m trying to get stretch_ros2 packages installed on my computer. My laptop is with Nvidia 5060 GPU and shows severe incompatibility with Ubuntu 22.04 so I have to use Docker. My laptop is currently with Ubuntu 24.04 and ROS2 Jazzy.
I don’t even have to run simulation, I just want to have stretch_ros2 packages successfully “import” in my python scripts while writing the code. Is there any simpler way to achieve this? I just checked your Docker setup link, seems still need Ubuntu 22.04 as prerequiste?
Following the installation instructions in Simulation Tutorial - Stretch Docs is the right way to go when you are trying to install stretch_ros2 on a non-robot computer. This setup script creates dummy environment variables that are normally on a standard robot install.
stretch_ros2 should be able to run on Ubuntu 24.04, but it’s not well tested, so we recommend sticking to Ubuntu 22.04 for your development. If you are using Docker with the NVidia Container Toolkit, then the Docker container would run Ubuntu 22.04.
Could you try to run bash /tmp/stretch_create_ament_workspace.sh without sudo to get around the Please run this script without sudo. error? Please let me know if this works for you!