Hector GPS fix status not setting
Working with http://wiki.ros.org/hector_gazebo_plu... .
Everything is working fine except for the fix status, and I can't make heads or tails of it. I have the plugin configured as so
<plugin name="gazebo_gnss" filename="libhector_gazebo_ros_gps.so">
<updateRate>50</updateRate>
<bodyName>base_link</bodyName>
<topicName>fix</topicName>
<velocityTopicName>vel</velocityTopicName>
<referenceLatitude>REMOVED</referenceLatitude>
<referenceLongitude>REMOVED</referenceLongitude>
<referenceAltitude>REMOVED</referenceAltitude>
<status>2</status>
<service>8</service>
</plugin>
With these settings I'm getting an msg of
header:
seq: 7633
stamp:
secs: 152
nsecs: 780000000
frame_id: /world
status:
status: 50
service: 8
latitude:
longitude:
altitude:
position_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
position_covariance_type: 2
I don't know how the 50
came about. What is odd is if I set the config to <status>1</status>
I get a different output
---
header:
seq: 212
stamp:
secs: 4
nsecs: 560000000
frame_id: /world
status:
status: 49
service: 8
latitude:
longitude:
altitude:
position_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
Thinking it was some type of casting I set <status>2.0</status>
and I get a status: 0
.
I have looked over the source and found the param set, https://github.com/tu-darmstadt-ros-p... . Also found some other operations but finding nothing that would offset by 48.