Create Workspace for using Gazebo Simulator

I created stretch_user/log then executed stretch_create_catkin_workspace.sh. 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 stretch_create_catkin_workspace.sh 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 https://github.com/hello-robot/stretch_ros.git
git clone https://github.com/pal-robotics/realsense_gazebo_plugin/ -b melodic-devel
git clone https://github.com/IntelRealSense/realsense-ros.git -b 2.3.2
cd ~/simulation_ws/
catkin_make
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