gzserver: Symbol look up error in 'libgazebo_ros_control' results in exit code 127
Hello
I am using ros_control, gazebo and URDF to set up a simulation for a mobile robot. The urdf can be correctly shown in gazebo.
My system config is:
Ubuntu 13.04-i386 with ros-hydro
gazebo version: 1.9.5
ros-hydro-rosconsole version: 1.10.10
ros-hydro-ros-control / ros-hydro-ros-controllers version: 0.7.2
ros-hydro-gazebo-ros-control version: 2.3.5
Everything goes on well until I added libgazebo_ros_control plugin to it by:
<gazebo>
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
<robotNamespace>/MYROBOT</robotNamespace>
</plugin>
</gazebo>
and launch gazebo again. In this case, symbol look up error / exit code 127 happens:
[ INFO] [1404324642.777868664, 0.011000000]: gazebo_ros_control plugin is waiting for model URDF in parameter [/robot_description] on the ROS param server.
gzserver: symbol lookup error: /opt/ros/hydro/lib/libgazebo_ros_control.so: undefined symbol: _ZN3ros7package10getPluginsERKSsS2_RSt6vectorISsSaISsEEb
[gazebo-1] process has died [pid 3164, exit code 127, cmd /opt/ros/hydro/lib/gazebo_ros/gzserver /home/altrouge/catkin_ws/src/gazebo_ros_demos/rrbot_gazebo/worlds/rrbot.world __name:=gazebo __log:=/home/altrouge/.ros/log/250502be-0214-11e4-a398-000c29cc235d/gazebo-1.log].
log file: /home/altrouge/.ros/log/250502be-0214-11e4-a398-000c29cc235d/gazebo-1*.log
By GCC demangler, I can get:
undefined symbol: ros::package::getPlugins(std::string const&, std::string const&, std::vector<std::string, std::allocator<std::string> >&, bool)
For checking I git clone the RRbot demo from gazebo_ros tutorial ( http://gazebosim.org/wiki/Tutorials/1... ), the same problem occurs.
If I remove the libgazebo_ros_control.so plugin in URDF file, everything returns right. With some googles I could find somebody suggests update rosconsole , but it doesn't work.
Would anybody know what's wrong? Thank you!