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

how to install gazebo from source in ROS fuerte?

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

joseescobar60 gravatar image

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

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?

EDIT.........

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/

SUMMARY
========

PARAMETERS
 * /rosdistro
 * /rosversion
 * /use_sim_time

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

ROS_MASTER_URI=http://localhost:11311

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/empty.world __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
done
edit retag flag offensive close merge delete

Comments

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

Lorenz gravatar image Lorenz  ( 2012-11-29 03:44:23 -0600 )edit

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

joseescobar60 gravatar image joseescobar60  ( 2012-11-29 03:51:57 -0600 )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 image joseescobar60  ( 2012-11-29 03:57:14 -0600 )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 image Lorenz  ( 2012-11-29 03:59:36 -0600 )edit

i have to do the rosmake again???

joseescobar60 gravatar image joseescobar60  ( 2012-11-29 04:00:43 -0600 )edit

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

Lorenz gravatar image Lorenz  ( 2012-11-29 04:01:52 -0600 )edit

1 Answer

Sort by » oldest newest most voted
2

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

Lorenz gravatar image

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

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 https://code.ros.org/svn/ros-pkg/stacks/simulator_gazebo/trunk
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

Comments

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 image joseescobar60  ( 2012-11-29 03:04:28 -0600 )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 image Lorenz  ( 2012-11-29 03:06:21 -0600 )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 image joseescobar60  ( 2012-11-29 03:18:46 -0600 )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 image Lorenz  ( 2012-11-29 03:23:23 -0600 )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 image joseescobar60  ( 2012-11-29 23:21:54 -0600 )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 image Lorenz  ( 2012-11-29 23:38:19 -0600 )edit

what version is the most estable??

joseescobar60 gravatar image joseescobar60  ( 2012-11-29 23:39:45 -0600 )edit

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

Lorenz gravatar image Lorenz  ( 2012-11-29 23:42:16 -0600 )edit

Question Tools

4 followers

Stats

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

Seen: 1,620 times

Last updated: Nov 29 '12