Home | Tutorials | Wiki | Issues
Ask Your Question
0

gazebo-2.0 is called when I want to execute gazebo-5.0.0

asked 2015-05-21 22:36:46 -0500

Zheng yo chen gravatar image

updated 2015-06-04 20:09:42 -0500

Given that I had two version of gazebo now ,2.0 and 5.0.

When I want to execute gazebo-5.0.0 (typing : ./usr/local/gazebo5/bin/gazebo-5.0.0) ,it turned out that gazebo-2.0 is called

But if I execute gzserver and gzclient separately, correct version ( aka gzserver-5.0 and gzclient 5.0)are called.

"which" command output https://www.dropbox.com/s/1gnjq42j3p18ibk/rjIevpxFHLAxL-xlucwk_0z6laQFKI3zUz4ddXuA0og.png?dl=0

I have checked the shared library linked to gazebo-5.0.0,and their version are correct.

How can I deal with this problem? Thank you!

ldd gazebo-5.0.0 | grep gazebo

libgazebo_common.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_common.so.5 (0x00007f194247c000)
libgazebo_util.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_util.so.5 (0x00007f194221f000)
libgazebo_transport.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_transport.so.5 (0x00007f1941fb1000)
libgazebo_physics.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_physics.so.5 (0x00007f1941c2e000)
libgazebo_sensors.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_sensors.so.5 (0x00007f1941978000)
libgazebo_msgs.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_msgs.so.5 (0x00007f19415d0000)
libgazebo_math.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_math.so.5 (0x00007f1940798000)
libgazebo_physics_ode.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_physics_ode.so.5 (0x00007f193e022000)
libgazebo_rendering.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_rendering.so.5 (0x00007f193d985000)
libgazebo_ode.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_ode.so.5 (0x00007f193a468000)
libgazebo_skyx.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_skyx.so.5 (0x00007f1939b03000)
libgazebo_selection_buffer.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_selection_buffer.so.5 (0x00007f19398f4000)
libgazebo_rendering_deferred.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_rendering_deferred.so.5 (0x00007f1938893000)
libgazebo_opcode.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_opcode.so.5 (0x00007f1935d24000)
libgazebo_opende_ou.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_opende_ou.so.5 (0x00007f1935b1f000)
libgazebo_ccd.so.5 => /usr/local/gazebo5/lib/x86_64-linux-gnu/libgazebo_ccd.so.5 (0x00007f1935914000)

hello, here is my output

https://www.dropbox.com/s/5rcterv2jz05iln/02.png?dl=0

Thank you, this line does work!

https://www.dropbox.com/s/yhwaolnmevew0n1/01.png?dl=0

https://www.dropbox.com/s/wryeosvfpek1osh/03.png?dl=0

but, I don't understand when I simply change into /usr/local/gazebo/bin and entering "./gazebo", I can't make a success?

edit retag flag offensive close merge delete

Comments

Could you please edit the question and include the output of: which gazebo, which gzserver, which gzclient. ldd output is not really useful in this case.

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2015-05-23 18:39:08 -0500 )edit

Looks like you have many installation of gazebo present in your system. I'm assuming that you have gazebo2 installed from packages, into /usr, and gazebo5 into /usr/local/gazebo5. Why do you have gazebo executables into /usr/local/bin? Could you please attach also: find /usr -name 'gz*' -o -name 'gazebo'. Also, what happen if you run: PATH="/usr/local/gazebo5/bin:${PATH}" gazebo?

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2015-06-02 17:27:09 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-05-23 18:40:59 -0500

Jose Luis Rivero gravatar image

When installing gazebo in non default paths (looks like yours is /usr/local/gazebo5) it is necessary to source the correct setup.sh, so environment variables are modified according to work with non default paths.

Did you run:

source /usr/local/gazebo5/share/setup.sh

before running gazebo?

edit flag offensive delete link more

Comments

Thank you~ ,I did ,but doesn't work :(

Zheng yo chen gravatar imageZheng yo chen ( 2015-05-26 00:53:57 -0500 )edit

Could you please edit the question and include the output of: `which gazebo`, `which gzserver`, `which gzclient`.

Jose Luis Rivero gravatar imageJose Luis Rivero ( 2015-05-26 11:19:56 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

Asked: 2015-05-21 22:36:46 -0500

Seen: 104 times

Last updated: Jun 04 '15