Robotics StackExchange | Archived questions

Gazebo Spawn_model fails when issuing rosrun

Ubuntu 12.10 Graphics Card: NVIDIA GeForce GT 640M Gazebo Version: 1.7.11

In Tutorial: http://www.ros.org/wiki/simulator_gazebo/Tutorials/SpawningObjectInSimulation

After creating the urdf model as indicated and running the spawn command:

rosrun gazebo spawn_model -file `pwd`/object.urdf -urdf -z 1 -model my_object

I get an error message stating that liblapack3gf.so cannot be opened (it is installed in my system). Here is the whole message:

Traceback (most recent call last):
  File "/opt/ros/groovy/stacks/simulator_gazebo/gazebo/scripts/spawn_model", line 19, in <module>
    import tf.transformations as tft
  File "/opt/ros/groovy/lib/python2.7/dist-packages/tf/__init__.py", line 29, in <module>
    from listener import TransformListener, TransformerROS
  File "/opt/ros/groovy/lib/python2.7/dist-packages/tf/listener.py", line 34, in <module>
    from tf import transformations
  File "/opt/ros/groovy/lib/python2.7/dist-packages/tf/transformations.py", line 174, in <module>
    import numpy
  File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 137, in <module>
    import add_newdocs
  File "/usr/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 9, in <module>
    from numpy.lib import add_newdoc
  File "/usr/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 13, in <module>
    from polynomial import *
  File "/usr/lib/python2.7/dist-packages/numpy/lib/polynomial.py", line 17, in <module>
    from numpy.linalg import eigvals, lstsq
  File "/usr/lib/python2.7/dist-packages/numpy/linalg/__init__.py", line 48, in <module>
    from linalg import *
  File "/usr/lib/python2.7/dist-packages/numpy/linalg/linalg.py", line 23, in <module>
    from numpy.linalg import lapack_lite
ImportError: liblapack.so.3gf: cannot open shared object file: No such file or directory

The log file which captures the error state the following:

[roslaunch][INFO] 2013-03-22 22:02:42,526: process[spawn_table-1]: args[[u'/opt/ros/groovy/stacks/simulator_gazebo/gazebo/scripts/spawn_model', '-urdf', '-param', 'table_description', '-z', '0.01', '-model', 'table_model', u'__name:=spawn_table']]
[roslaunch][INFO] 2013-03-22 22:02:42,526: ... created process [spawn_table-1]
[roslaunch.pmon][INFO] 2013-03-22 22:02:42,526: ProcessMonitor.register[spawn_table-1]
[roslaunch.pmon][INFO] 2013-03-22 22:02:42,526: ProcessMonitor.register[spawn_table-1] complete
[roslaunch][INFO] 2013-03-22 22:02:42,526: ... registered process [spawn_table-1]
[roslaunch][INFO] 2013-03-22 22:02:42,526: process[spawn_table-1]: starting os process
[roslaunch][INFO] 2013-03-22 22:02:42,526: process[spawn_table-1]: start w/ args [[u'/opt/ros/groovy/stacks/simulator_gazebo/gazebo/scripts/spawn_model', '-urdf', '-param', 'table_description', '-z', '0.01', '-model', 'table_model', u'__name:=spawn_table', u'__log:=/home/vmrguser/.ros/log/7de63bb4-92f8-11e2-82c5-c48508b13bfe/spawn_table-1.log']]
[roslaunch][INFO] 2013-03-22 22:02:42,526: process[spawn_table-1]: cwd will be [/home/vmrguser/.ros]
[roslaunch][INFO] 2013-03-22 22:02:42,530: process[spawn_table-1]: started with pid [26469]
[roslaunch][INFO] 2013-03-22 22:02:42,530: ... successfully launched [spawn_table-1]
[roslaunch][INFO] 2013-03-22 22:02:42,530: ... launch_nodes complete
[roslaunch.pmon][INFO] 2013-03-22 22:02:42,531: registrations completed <ProcessMonitor(ProcessMonitor-1, started daemon 139938769590016)>
[roslaunch.parent][INFO] 2013-03-22 22:02:42,531: ... roslaunch parent running, waiting for process exit
[roslaunch][INFO] 2013-03-22 22:02:42,531: spin
[roslaunch][ERROR] 2013-03-22 22:02:44,793: [spawn_table-1] process has died [pid 26469, exit code 1, cmd /opt/ros/groovy/stacks/simulator_gazebo/gazebo/scripts/spawn_model -urdf -param table_description -z 0.01 -model table_model __name:=spawn_table __log:=/home/vmrguser/.ros/log/7de63bb4-92f8-11e2-82c5-c48508b13bfe/spawn_table-1.log].
log file: /home/vmrguser/.ros/log/7de63bb4-92f8-11e2-82c5-c48508b13bfe/spawn_table-1*.log
[roslaunch.pmon][INFO] 2013-03-22 22:02:44,793: ProcessMonitor.unregister[spawn_table-1] starting
[roslaunch.pmon][INFO] 2013-03-22 22:02:44,793: ProcessMonitor.unregister[spawn_table-1] complete
[roslaunch][INFO] 2013-03-22 22:02:44,793: all processes on machine have died, roslaunch will exit
[roslaunch.pmon][INFO] 2013-03-22 22:02:44,894: ProcessMonitor._post_run <ProcessMonitor(ProcessMonitor-1, started daemon 139938769590016)>
[roslaunch.pmon][INFO] 2013-03-22 22:02:44,894: ProcessMonitor._post_run <ProcessMonitor(ProcessMonitor-1, started daemon 139938769590016)>: remaining procs are []
[roslaunch.pmon][INFO] 2013-03-22 22:02:44,896: ProcessMonitor exit: cleaning up data structures and signals
[roslaunch.pmon][INFO] 2013-03-22 22:02:44,896: ProcessMonitor exit: pmon has shutdown
[roslaunch][INFO] 2013-03-22 22:02:44,934: process monitor is done spinning, initiating full shutdown
[roslaunch][INFO] 2013-03-22 22:02:44,935: runner.stop()
[roslaunch][INFO] 2013-03-22 22:02:44,935: shutting down processing monitor...
[roslaunch][INFO] 2013-03-22 22:02:44,935: shutting down processing monitor <ProcessMonitor(ProcessMonitor-1, stopped daemon 139938769590016)>
[roslaunch.pmon][INFO] 2013-03-22 22:02:44,935: ProcessMonitor.shutdown <ProcessMonitor(ProcessMonitor-1, stopped daemon 139938769590016)>
[roslaunch][INFO] 2013-03-22 22:02:44,935: ... shutting down processing monitor complete
[roslaunch][INFO] 2013-03-22 22:02:44,935: done
[roslaunch.pmon][INFO] 2013-03-22 22:02:44,936: ProcessMonitor.shutdown <ProcessMonitor(ProcessMonitor-1, stopped daemon 139938769590016)>
[rospy.core][INFO] 2013-03-22 22:02:44,936: signal_shutdown [atexit]

Not sure why?

Asked by Juan on 2013-03-22 00:56:24 UTC

Comments

Gazebo crashes regularly on my system, are you able to spawn other objects?

Asked by davinci on 2013-03-22 02:44:13 UTC

I cannot spawn other objects and I cannot launch any other world launch file. Only the empty world.

Asked by Juan on 2013-03-22 04:04:42 UTC

Answers