The error when using the example of gym-gazebo

asked 2022-02-04 19:41:45 -0500

kankanzheli gravatar image

updated 2022-02-07 10:42:23 -0500

osilva gravatar image

I'm very sorry to ask this question here. I have a question about gym gazebo. My running environment is as follows: Ubuntu18.04 ROS-Melodic python: python2.7 gym0.16.0 gazebo9.0.0 Using

The installation process was quite smooth. But when I runned the example of gym-gazebo(, the following error occured:

[ERROR] [1643889037.781025, 146.790000]: Spawn service failed. Exiting.
[spawn_turtlebot_model-3] process has died [pid 10199, exit code 1, cmd /home/zhaowentao/ROS/gym-gazebo/gym_gazebo/envs/installation/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros/scripts/spawn_model -unpause -urdf -param robot_description -model mobile_base __name:=spawn_turtlebot_model __log:=/home/zhaowentao/.ros/log/7f7bce36-84e7-11ec-84f6-02429b0b1025/spawn_turtlebot_model-3.log].
log file: /home/zhaowentao/.ros/log/7f7bce36-84e7-11ec-84f6-02429b0b1025/spawn_turtlebot_model-3*.log

How to solve that problem???

edit retag flag offensive close merge delete


Hi @kankanzheli can you send a link to file you are referring to.

Also please tell us the steps you are following, the error that you posted doesn't have an obvious relationship with gym-gazebo, it looks more problems with spawning

osilva gravatar image osilva  ( 2022-02-07 10:47:55 -0500 )edit is located in

What I have done is the following step: sudo apt-get install ros-melodic-joint-state-controller sudo pip install gym pip install gym sudo apt-get install python-skimage pip install h5py pip install keras git clone cd gym-gazebo sudo pip install -e . sudo apt-get install libusb-dev sudo apt-get install ros-melodic-sophus sudo apt-get install ros-melodic-ar-track-alvar-msgs sudo apt-get install ros-melodic-rqt-joint-trajectory-controller cd gym-gazebo/gym_gazebo/envs/installation bash setup_melodic.bash cd gym-gazebo/gym_gazebo/envs/installation/ bash turtlebot_setup.bash pip install keras pip install gym python bash turtlebot_setup.bash cd ROS cd gym-gazebo/examples/turtlebot python

Maybe this is because I using the python2?

kankanzheli gravatar image kankanzheli  ( 2022-02-08 03:14:23 -0500 )edit