Right now, I'm trying to simulate a GPS sensor. I noticed that this has only been implemented in Gazebo 2.0, so I decided to build it from source.
The gazebo packages seemed to have compiled. However when I run the unit tests, a whole bunch of components fail, including the GPS sensor.
Error [Plugin.hh:150] Failed to resolve RegisterPlugin: /home/jamie/Documents/Redblade/src/redblade_description/build/devel/lib/libgps.so: undefined symbol: RegisterPlugin[ INFO] [1384470501.730233031, 0.001000000]: GazeboRosSkidSteerDrive Plugin (ns = /redblade/) missing <broadcastTF>, defaults to false.
[ INFO] [1384470501.730729529, 0.001000000]: Starting GazeboRosSkidSteerDrive Plugin (ns = /redblade/)!
[ INFO] [1384470501.774774168, 0.022000000]: waitForService: Service [/gazebo/set_physics_properties] is now available.
[ INFO] [1384470501.861474086, 0.069000000]: Physics dynamic reconfigure ready.
I'm really not sure what to make of this error. My best guess is it is linked with the failed unit test.
I just built your code using catkin\_make and was able to launch the simulation successfully. I sourced devel/setup.bash before running. Is the folder with libgps.so in your LD\_LIBRARY_PATH?
A part from the unit test problem, it sounds to me like a bad setup on the software. If you are going to use gazebo from source, you will also need to recompile rosgazebopkgs from source. If you only need gazebo2.0 and rosgazebopkgs (no other ros packages build on top of it) you could use gazebo-current and rosgazebopkgs from the OSRF repository (versions > 2.4.1).
That is probably it. I have the LD\_LIBRARY\_PATH setup correctly, so the library is found. However, I didn't realize that I also needed to compile ros\_gazebo\_pkgs from source also. Thanks!
I didn't compile ros_gazebo_pkgs from source, but it worked for me.