Skip to content

gnss_to_utm_pose

Helper node which converts GNSS messages (lat/lon/alt) to UTM pose messages.

The published UTM poses can be used as input to the slam node’s sub.absolute_position_topic.

ParameterMessage typeDefaultDescription
sub.gnss_topicNavSatFix or GPSFix""Input GNSS topic (required)
ParameterMessage typeDefaultDescription
pub.utmpose_topicgeometry_msgs/PoseWithCovarianceStamped""Output UTM pose (required)
ParameterTypeDefaultDescription
sub.gnss_topic_typestring""NavSatFix or GPSFix (required)
pub.utmpose_framestring""Frame ID for published pose (required)
process_only_each_nth_messageint1Process only each n-th subcribed message
min_distance_between_posesdouble0.0Minimum distance (m) between published poses
first_point_defines_shiftboolfalseUse first GNSS point to define UTM shift (i.e. origin of map frame)
shiftdouble[3][0, 0, 0]Manual UTM shift [easting, northing, altitude] (only used if first_point_defines_shift is false)
position_uncertaintiesdouble[3][-1, -1, -1]Override position uncertainties; -1 = use value from message
position_uncertainties_multiplierdouble1.0Multiplier for message uncertainties. Useful for scaling up overly optimistic uncertainty estimates.
max_uncertaintiesdouble[3][0, 0, 0]Maximum allowed uncertainties; 0 = no limit
Terminal window
ros2 run slamlab gnss_to_utm_pose --ros-args \
-p sub.gnss_topic:=/gps/fix \
-p sub.gnss_topic_type:=NavSatFix \
-p pub.utmpose_topic:=/gnss/utm_pose