Error when run "roslaunch rosbots_description spawn.launch"

Hi you!
I meet an error when run command: roslaunch rosbots_description spawn.launch

SpawnModel script started
[INFO] [1571398116.939260, 0.000000]: Loading model XML from ros parameter
[INFO] [1571398116.948210, 0.000000]: Waiting for service /gazebo/spawn_urdf_model
[INFO] [1571398116.954302, 0.000000]: Calling service /gazebo/spawn_urdf_model
Service call failed: service [/gazebo/spawn_urdf_model] responded with an error:
Unhandled exception in thread started by
sys.excepthook is missing
lost sys.stderr
[mybot_spawn-1] process has finished cleanly
log file: /home/user/.ros/log/dffd7500-f193-11e9-ba89-06df18f0947a/mybot_spawn-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor…
… shutting down processing monitor complete

Can anyone help me to solve?

Hello @vtiroslearning ,

Can you try to change to a different Unit (with a different Gazebo simulation), and then go back to this Unit, and check if it works? Let me know if the error still persists after this.

Best,

I executed also the command and worked: VIDEO DEMO

I created also a ROSject to test the launch file. Just launch any empty world and you are ready to go: ROSJECT-PlugAndPlay

Here you have a Github gist with the code if you just want to test it in robotignite academy: GIST ZIP Files

just do in a webshell:

cd /home/user/catkin_ws/src
git clone rosbots_description.zip · GitHub
cd b094bea3d70c693c171a4a33857ea8ff
unzip rosbots_description.zip; mv rosbots_description …/; cd …; rm -rf b094bea3d70c693c171a4a33857ea8ff
cd /home/user/catkin_ws; catkin_make; source devel/setup.bash; rospack profile
roslaunch rosbots_description spawn.launch

The error you experiences sometime shappens in Gazebo , when it has diesd for some reson ( normally you spawned previously something that wasn’t quite right and made it crash). So just restart the simulation by changing to a unit that the simulation changes.

Hmm , sorry i just followed your tips and instructions but it still error for me ,

process[mybot_spawn-1]: started with pid [7879]
the rosdep view is empty: call ‘sudo rosdep init’ and ‘rosdep update’
SpawnModel script started
[INFO] [1589255726.014590, 0.000000]: Loading model XML from ros parameter
[INFO] [1589255726.028245, 0.000000]: Waiting for service /gazebo/spawn_urdf_model
[INFO] [1589255726.033473, 0.000000]: Calling service /gazebo/spawn_urdf_model
Service call failed: service [/gazebo/spawn_urdf_model] responded with an error:
[mybot_spawn-1] process has finished cleanly
log file: /home/user/.ros/log/717967bc-93fd-11ea-887e-0691a20273f4/mybot_spawn-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor…
… shutting down processing monitor complete
done
Unhandled exception in thread started by
sys.excepthook is missing
lost sys.stderr

Can anyone help me please?

1 Like

I encountered the same issue when following the instruction to run “roslaunch rosbots_description spawn.launch”. Same error caused by service /gazebo/spawn_urdf_model.

Any solutions? Thanks!

Encountered this error today. Any troubleshooting steps I should follow?

EDIT: restarting the simulation by entering another unit fixed the first Gazebo error and now I’m facing another–the entities are spawning in but not correctly as shown by the photo.

Replacing the code with models found online works so I can only assume there’s an error in the Course code but as to which of the 400+ lines has a problem I haven’t a clue.

[/img]

Hi there,
I have the exact same problem

Hi,
Just fixed this issue, please check that it works for you. It should look something lie this: