ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I tried hector gps too but i had some errors. But when i simply added this plugin in my URDF:
<!-- GPS Sensor -->
<gazebo>
<plugin name="novatel_gps_sim" filename="libhector_gazebo_ros_gps.so">
<alwaysOn>1</alwaysOn>
<updateRate>10.0</updateRate>
<bodyName>base_footprint</bodyName>
<topicName>fix</topicName>
<velocityTopicName>fix_velocity</velocityTopicName>
<drift>5.0 5.0 5.0</drift>
<gaussianNoise>0.1 0.1 0.1</gaussianNoise>
<velocityDrift>0 0 0</velocityDrift>
<velocityGaussianNoise>0.1 0.1 0.1</velocityGaussianNoise>
</plugin>
</gazebo>
my problem solved. Base_footprint is a link that the gps is attached to in this users URDF file. Hope this helps.