ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

care-o-bot simulator crashing gazebo

asked 2011-09-14 14:24:54 -0600

Paul0nc gravatar image

updated 2011-09-14 14:31:13 -0600

hsu gravatar image

When I'm trying to run the care-o-bot simulation, the gazebo simulator briefly appears, then crashes with the error below. I'm running ubuntu 10.4 with electric.

Any assistance would be appreciated.

Paul.

/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/controllers/ControllerFactory.cc:99 : Exception: Failed to load libgazebo_ros_factory.so: libgazebo_ros_factory.so: cannot open shared object file: No such file or directory

/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/Simulator.cc:326 : Exception: Failed to load the World
/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/controllers/ControllerFactory.cc:99 : Exception: Failed to load libgazebo_ros_factory.so: libgazebo_ros_factory.so: cannot open shared object file: No such file or directory


Error Loading Gazebo
/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/Simulator.cc:326 : Exception: Failed to load the World
/tmp/buildd/ros-electric-simulator-gazebo-1.4.3/debian/ros-electric-simulator-gazebo/opt/ros/electric/stacks/simulator_gazebo/gazebo/build/gazebo/server/controllers/ControllerFactory.cc:99 : Exception: Failed to load libgazebo_ros_factory.so: libgazebo_ros_factory.so: cannot open shared object file: No such file or directory


[gazebo-2] process has died [pid 12992, exit code -11].
log files: /home/myname/.ros/log/556b4bbc-df3e-11e0-ac48-0026c7674548/gazebo-2*.log
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-09-14 14:30:08 -0600

hsu gravatar image

updated 2011-09-15 09:04:28 -0600

Hi Paul, this is the same issue for libgazebo_ros_factory.so reported here.

If you are doing:

export ROBOT=cob3-1
export ROBOT_ENV=ipa-kitchen
roslaunch cob_bringup sim.launch

effectively launching gazebo with cob_gazebo_worlds/common/worlds/empty.world.

The released electric debs for cob_gazebo_worlds under cob_simulation stack contains references to the libgazebo_ros_factory.so plugins at the time of this post. So if you have done

sudo apt-get install ros-electric-cob-*
source /opt/ros/electric/setup.bash

To setup your ros environment, then this error applies. The deprecated plugins have indeed been removed from the world files in the development trunk, the fix will probably propagate out into the debs soon. I would check the cob wiki or ping the stack maintainer to double check the release schedule. Or in the meantime, you can run from an overlay of cob_simulation stack.

Also, I've changed gazebo's behavior such that it does not throw and exit if a controller plugin library is missing. This change is released with simulator_gazebo 1.4.5.

John

edit flag offensive delete link more

Comments

Thanks Hsu. I'll give the reported solution a try. To launch my simulation, I'm going through the sequence found at http://www.care-o-bot-research.org/software/tutorials/move-the-robot-in-simulation. The command that finally elicits the error is: roslaunch cob_bringup sim.launch
Paul0nc gravatar image Paul0nc  ( 2011-09-14 14:36:25 -0600 )edit
Hi John. I installed the cob stack this evening. When I look at cob_simulation/cob_gazebo_worlds/common/worlds, the .world files there all have libgazebo_ros_factor in them. However, when I removed it (as suggested in your link above) from the ipa-kitchen.world, I get the same error results. I'm not sure if that's the correct .world file however.
Paul0nc gravatar image Paul0nc  ( 2011-09-14 15:13:05 -0600 )edit
John - regarding the git repository: would I not have the most current repository I need given how recently I installed cob? Also, I <re>installed electric from scratch this evening. What other repository could be out of date? Thanks. -Paul.
Paul0nc gravatar image Paul0nc  ( 2011-09-14 15:16:27 -0600 )edit
@PaulOnc, I updated my answer above, is it possible you are running from the debian packages? (I.e. if "rospack find cob_simulation" points to "/opt/ros/electric/stacks/cob_simulation").
hsu gravatar image hsu  ( 2011-09-15 06:14:13 -0600 )edit
Thanks John. I'll try this fix.
Paul0nc gravatar image Paul0nc  ( 2011-09-15 12:48:26 -0600 )edit
1

answered 2011-10-04 19:15:45 -0600

weisshardt gravatar image

Hi, the fix is in the new release which ich now available in the debian sources of electric, too.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2011-09-14 14:24:54 -0600

Seen: 589 times

Last updated: Oct 04 '11