Create Workspace for using Gazebo Simulator

I created stretch_user/log then executed I’m getting an error that hello-robot.conf is not found. I don’t have access yet to the physical robot, so I just want to create a workspace that will work for using the simulator.

Hi @iibuan, the script is meant to be run on a Stretch robot. The script is looking for calibration data unique to the robot to set up other parts of the ROS workspace. Since you’re only interested in getting the Gazebo simulation running, I’ve put together the following instructions for you. It’ll create a ROS workspace that includes everything you need to run the Gazebo simulation of Stretch. These instructions are meant to be run on a Linux system with ROS Noetic already installed.

source /opt/ros/noetic/setup.bash
mkdir -p ~/simulation_ws/src/
cd ~/simulation_ws/src/
git clone
git clone -b melodic-devel
git clone -b 2.3.2
cd ~/simulation_ws/
source ~/simulation_ws/devel/setup.bash
# Done! You may wish to add the source commands to your bashrc

roslaunch stretch_gazebo gazebo.launch
rosrun stretch_gazebo keyboard_teleop_gazebo

Also, I’d also recommend that you look through the Differences in Gazebo vs. Stretch. The code you write for the simulated Stretch won’t work directly with the real Stretch.

1 Like