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.
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)