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.
Subscribed topics
Section titled “Subscribed topics”| Parameter | Message type | Default | Description |
|---|---|---|---|
sub.gnss_topic | NavSatFix or GPSFix | "" | Input GNSS topic (required) |
Published topics
Section titled “Published topics”| Parameter | Message type | Default | Description |
|---|---|---|---|
pub.utmpose_topic | geometry_msgs/PoseWithCovarianceStamped | "" | Output UTM pose (required) |
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
sub.gnss_topic_type | string | "" | NavSatFix or GPSFix (required) |
pub.utmpose_frame | string | "" | Frame ID for published pose (required) |
process_only_each_nth_message | int | 1 | Process only each n-th subcribed message |
min_distance_between_poses | double | 0.0 | Minimum distance (m) between published poses |
first_point_defines_shift | bool | false | Use first GNSS point to define UTM shift (i.e. origin of map frame) |
shift | double[3] | [0, 0, 0] | Manual UTM shift [easting, northing, altitude] (only used if first_point_defines_shift is false) |
position_uncertainties | double[3] | [-1, -1, -1] | Override position uncertainties; -1 = use value from message |
position_uncertainties_multiplier | double | 1.0 | Multiplier for message uncertainties. Useful for scaling up overly optimistic uncertainty estimates. |
max_uncertainties | double[3] | [0, 0, 0] | Maximum allowed uncertainties; 0 = no limit |
Launch
Section titled “Launch”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