tu-darmstadt-ros-pkg / hector_gazebo

hector_gazebo provides packages related to the simulation of robots using gazebo (gazebo plugins, world files etc.).
http://www.ros.org/wiki/hector_gazebo
184 stars 157 forks source link

gps plugin can not change default latitud, longitud #91

Closed dantenoguera closed 3 years ago

dantenoguera commented 3 years ago

The xml parameters referenceLatitud, referenceLongitud do not seem to change the default values. I am using ros-noetic and gazebo-11.

  <gazebo>
    <plugin name="hector_gps_controller" filename="libhector_gazebo_ros_gps.so">
      <updateRate>500.0</updateRate>
      <bodyName>gps_link</bodyName>
      <frameId>/gps_link</frameId>
      <referenceLatitud>-75</referenceLatitud>
      <referenceLongitud>-20</referenceLongitud>
    </plugin>
  </gazebo>

header: seq: 3415 stamp: secs: 6 nsecs: 932000000 frame_id: "/gps_link" status: status: 0 service: 0 latitude: 49.90000000296801 longitude: 8.900000000012934 altitude: -4.438688558927595e-07 position_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] position_covariance_type: 2