ROS C++ Gazebo Service Call Error
Steps to reproduce:
- running ros melodic and Gazebo version 9.0.0 on pop!_os 18.04
- Open gazebo with a model.
- clone this in the ros_answers checkout into a catkin workspace.
catkin build
source devel/setup.bash
roslaunch navigation robot.launch
rosrun navigation field_analyzer
The command above runs the this code
Then the code outputs:
/home/utah/catkin/devel/lib/navigation/field_analyzer
[ INFO] [1599709089.522237099]: starting robot_controller
[ERROR] [1599710112.780605996]: Call to service [/gazebo/get_model_state] with md5sum [4c515e936d3319c9610c559c60bfc3d4] does not match md5sum when the handle was created ([5717f7bd34ed990fa80e28b3015027a3])
The problem comes from calling the service gazebo/get_model_state
demonstrated here. Any ideas as to why this happens would be very helpful.
A possible problem would be a warning I get with catkin build
:
Warnings << navigation:symlink /home/utah/catkin/logs/navigation/build.symlink.013.log
Warning: Cannot symlink from /home/utah/catkin/devel/.private/navigation/lib/pkgconfig/navigation.pc to existing file /home/utah/catkin/devel/lib/pkgconfig/navigation.pc
Warning: Source hash: 26a7a4760a3de602e59fd96a7ab6cb6f
Warning: Dest hash: 3fef930f321dd6336b16c9efb68d4334
Warning: Cannot symlink from /home/utah/catkin/devel/.private/navigation/lib/navigation/move_base_client to existing file /home/utah/catkin/devel/lib/navigation/move_base_client