Ask Your Question

Cannot start gazebo??

asked 2011-08-04 22:48:34 -0500

SAK gravatar image

updated 2014-01-28 17:10:10 -0500

ngrennan gravatar image

I have downloaded the code using

  • source /opt/ros/diamondback/setup.bash
  • sudo apt-get install python-setuptools
  • sudo easy_install rosinstall
  • mkdir -p ~/ros-gazebo/workspace
  • rosinstall ~/ros-gazebo /opt/ros/diamondback ~/ros-gazebo/workspace
  • cd ~/ros-gazebo/workspace
  • svn co simulator_gazebo
  • source ~/ros-gazebo/setup.bash
  • rosmake gazebo

The same procedure is also described in this post.

Now when i use 'roslaunch gazebo_worlds wg_world.launch' it gives me the following error.

/home/student/ros-gazebo/workspace/simulator_gazebo/gazebo/build/gazebo/build/server/gazebo: error while loading shared libraries: cannot open shared object file: No such file or directory

Any idea how to fix this problem??

PS: i have one instalation in /opt/ros. and this installation is in /home/ros-gazebo/workspace/simulator_gazebo/...

edit retag flag offensive close merge delete


For me, these steps were working. I just tried. Did you do anything else? Is your gazebo checkout maby dirty? (roscd gazebo; svn st, then check if something is marked with M for modified). If so, make a backup, delete the directory ~/ros-gazebo and try again.
Lorenz gravatar image Lorenz  ( 2011-08-05 00:19:22 -0500 )edit
Is parallel_quickstep installed and on your ROS_PACKAGE_PATH?
Dan Lazewatsky gravatar image Dan Lazewatsky  ( 2011-08-05 04:05:21 -0500 )edit
by the way, might be a typo, 'roslaunch gazebo_world wg_world.launch' should be 'roslaunch gazebo_worlds wg_world.launch'?
hsu gravatar image hsu  ( 2011-08-07 19:42:13 -0500 )edit
No i am writing the correct command, now i am making with rosmake gazebo_worlds and see what is the outcome..
SAK gravatar image SAK  ( 2011-08-07 19:49:57 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2011-08-07 19:37:27 -0500

hsu gravatar image

updated 2011-08-07 19:39:53 -0500

Did rosmake gazebo return any errors? If the build was successful, when you roslaunch any gazebo world launch files, it should have invoked the following binary:




This seems to suggest the build did not complete. Can you verify and check the console output of the rosmake command?

The version of the gazebo binary referenced in your original question will not have the correct link paths setup, hence you see the error with not finding the library.

edit flag offensive delete link more


When i try to roslaunch with my original path /opt/ros/diamondback.... it works but when i try with path ~/ros-gazebo/workspace/diamondback..:$ROS_PACKAGE_PATH then the roslaunch gives me an error
SAK gravatar image SAK  ( 2011-08-07 19:52:59 -0500 )edit
After rosmake gazebo_worlds,, the error disappeared but when i try to 'make' ~/ros-gazebo/workspace/simulator_gazebo/gazebo/build/gazebo/build,,, here ,, the error comes again. As i want to change the file, because the GetIRCount function in this file is not working. so i did make here.
SAK gravatar image SAK  ( 2011-08-07 20:09:24 -0500 )edit
What happens when you do, 'roscd gazebo; rm installed; make;'? Also, what is full path of the file ( that you patched? Lastly, can you post the patch? Thanks.
hsu gravatar image hsu  ( 2011-08-07 20:15:35 -0500 )edit
/home/student/ros-gazebo/workspace/simulator_gazebo/gazebo/build/gazebo/server/sensors/ir is the full path to the, or from the website is the same. btw i didn't patch anything yet. i want to patch the
SAK gravatar image SAK  ( 2011-08-07 20:20:55 -0500 )edit
Please make from within ' ~/ros-gazebo/workspace/simulator_gazebo/gazebo/' to make sure the correct gazebo binary is installed. Performing make in ' ~/ros-gazebo/workspace/simulator_gazebo/gazebo/build/gazebo/build' is not sufficient. What happens when you do, 'roscd gazebo; rm installed; make;'?
hsu gravatar image hsu  ( 2011-08-07 20:51:35 -0500 )edit
after applying the steps it gives no error and the system now works... thanks for the help.. but i want to know that rm installed removes the previous installation or what it is doing.
SAK gravatar image SAK  ( 2011-08-07 22:47:13 -0500 )edit
removing the file called 'installed' simply forces make to do a recompile + install in case the previous installs left system in a bad state.
hsu gravatar image hsu  ( 2011-08-08 08:37:31 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2011-08-04 22:48:34 -0500

Seen: 694 times

Last updated: Aug 07 '11