Ask Your Question

how to install gazebo from source in ROS fuerte?

asked 2012-11-29 02:39:51 -0500

joseescobar60 gravatar image

updated 2012-11-29 03:42:19 -0500

Hello, i need to update my gazebo version because the one that fuerte has don't works with the colission sensors...

Can anybody halp me?


Well, i did what @Lorenz say but when i run the new gazebo i obtain this error:

jose@ubuntu:~/fuerte_workspace$ roslaunch gazebo_worlds empty_world.launch
... logging to /home/jose/.ros/log/db94fb8e-3a37-11e2-aee9-e0ca942b6aa6/roslaunch-ubuntu-6598.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://ubuntu:45513/


 * /rosdistro
 * /rosversion
 * /use_sim_time

    gazebo (gazebo/gazebo)
    gazebo_gui (gazebo/gui)


core service [/rosout] found
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
process[gazebo-1]: started with pid [6618]
/home/jose/fuerte_workspace/simulator_gazebo/gazebo/scripts/gazebo: 16: /home/jose/fuerte_workspace/simulator_gazebo/gazebo/scripts/gazebo: /home/jose/fuerte_workspace/simulator_gazebo/gazebo/gazebo/bin/gzserver: not found
[gazebo-1] process has died [pid 6618, exit code 127, cmd /home/jose/fuerte_workspace/simulator_gazebo/gazebo/scripts/gazebo /home/jose/fuerte_workspace/simulator_gazebo/gazebo_worlds/worlds/ __name:=gazebo __log:=/home/jose/.ros/log/db94fb8e-3a37-11e2-aee9-e0ca942b6aa6/gazebo-1.log].
log file: /home/jose/.ros/log/db94fb8e-3a37-11e2-aee9-e0ca942b6aa6/gazebo-1*.log
Exception AttributeError: AttributeError("'_DummyThread' object has no attribute '_Thread__block'",) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored
process[gazebo_gui-2]: started with pid [6625]
/home/jose/fuerte_workspace/simulator_gazebo/gazebo/scripts/gui: línea 2: /home/jose/fuerte_workspace/simulator_gazebo/gazebo/gazebo/bin/gzclient: No existe el archivo o el directorio
[gazebo_gui-2] process has died [pid 6625, exit code 127, cmd /home/jose/fuerte_workspace/simulator_gazebo/gazebo/scripts/gui __name:=gazebo_gui __log:=/home/jose/.ros/log/db94fb8e-3a37-11e2-aee9-e0ca942b6aa6/gazebo_gui-2.log].
log file: /home/jose/.ros/log/db94fb8e-3a37-11e2-aee9-e0ca942b6aa6/gazebo_gui-2*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete
edit retag flag offensive close merge delete


The binary doesn't seem to be present. Are you sure you built it using rosmake?

Lorenz gravatar imageLorenz ( 2012-11-29 03:44:23 -0500 )edit

no, i'm making it... Thank you!

joseescobar60 gravatar imagejoseescobar60 ( 2012-11-29 03:51:57 -0500 )edit

i get this error:
-- BUILD ERRORS: These must be resolved before compiling. -- Missing: Google Protobuf (libprotobuf-dev) -- Missing: Google Protobuf Compiler Library (libprotoc-dev) -- Missing: libtar -- END BUILD ERRORS

joseescobar60 gravatar imagejoseescobar60 ( 2012-11-29 03:57:14 -0500 )edit

The error tells you that it could not find some libraries. Just install them: sudo apt-get install libprotoc-dev libtar-dev libprotobuf-dev libcegui-mk2-dev

Lorenz gravatar imageLorenz ( 2012-11-29 03:59:36 -0500 )edit

i have to do the rosmake again???

joseescobar60 gravatar imagejoseescobar60 ( 2012-11-29 04:00:43 -0500 )edit

Sure. If the build failed you need to fix the problem and rebuild.

Lorenz gravatar imageLorenz ( 2012-11-29 04:01:52 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2012-11-29 02:45:38 -0500

Lorenz gravatar image

updated 2012-11-29 03:23:39 -0500

First you'll have to check out the ROS stack for gazebo and put it into your ros workspace (instructions for setting up a workspace):

rosws set --svn simulator_gazebo
rosws update

Then just build the stack with rosmake:

rosmake simulator_gazebo

If I'm reading the Gazebo CMakeLists.txt file correctly, it will use the development version from mercurial by default.

edit flag offensive delete link more


hello, i did what you say but how can i know which version of gazebo i have installed o where is installed this nwe version

joseescobar60 gravatar imagejoseescobar60 ( 2012-11-29 03:04:28 -0500 )edit

The new version is installed right in the ros package. roscd gazebo will jump to the gazebo package that is used and rospack find gazebo will show you the path. Note that you might need to re-compile gazebo plugins if there were ABI changes in the dev version of gazebo.

Lorenz gravatar imageLorenz ( 2012-11-29 03:06:21 -0500 )edit

i run gazebo but is the same version in the cmakelist file i have this: rosbuild_make_distribution(1.6.16), and the problem with the contact sensors is not fixed

joseescobar60 gravatar imagejoseescobar60 ( 2012-11-29 03:18:46 -0500 )edit

Sorry. I had a little mistake in my rosws command. Please edit the file $ROS_WORKSPACE/.rosinstall and fix the url of the gazebo repository. It should be the last line in that file. Then run rosws update and open a new terminal or re-source the setup.bash file in your overlay.

Lorenz gravatar imageLorenz ( 2012-11-29 03:23:23 -0500 )edit

hello, i have a question, can i install any gazebo version for my ros fuerte?, because the version that i installed yesterday don't works very well and is too heavy for my hardware especifications...

joseescobar60 gravatar imagejoseescobar60 ( 2012-11-29 23:21:54 -0500 )edit

You can install whatever version you want. You just need to change the CMakeLists.txt file and the makefile that is used for downloading gazebo's source code manually.

Lorenz gravatar imageLorenz ( 2012-11-29 23:38:19 -0500 )edit

what version is the most estable??

joseescobar60 gravatar imagejoseescobar60 ( 2012-11-29 23:39:45 -0500 )edit

That I don't know. For me the default ROS gazebo in fuerte always worked perfectly fine.

Lorenz gravatar imageLorenz ( 2012-11-29 23:42:16 -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



Asked: 2012-11-29 02:39:51 -0500

Seen: 1,095 times

Last updated: Nov 29 '12