Skip to content

Commit 96c302a

Browse files
authored
Support null speed on ReferenceTarget (#11)
* Add a sentinel value for ReferenceTarget::measured_speed_m_s that indicates no measurement is available, so no value is provided * Update to NO_MEASUREMENT and add usage instructions
1 parent 92a3e79 commit 96c302a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

msg/ReferenceTarget.msg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Constant representing that the value in question couldn't be measured
2+
# This often applied speed or heading/yaw for example in single-antenna GPS
3+
# For orientation, use NO_MEASUREMENT as the `w` value of the quaternion
4+
# This value is arbitrary and should be used by name rather than by value, but it's chosen to be exactly-representable in a float32 so there aren't floating point comparison issues
5+
float32 NO_MEASUREMENT = -9999.5
6+
17
# PoseStamped data for reference target pose
28
geographic_msgs/GeoPoseStamped pose
39

0 commit comments

Comments
 (0)