Skip to content

A tiny ROS(2)-less tool for the conversion of ROS(2) NavSatFix messages to .gpx.

Notifications You must be signed in to change notification settings

juliangaal/rosgpx

Repository files navigation

rosgpx

A tiny ROS(2)-less tool for the conversion of ROS(2) NavSatFix messages to .gpx.

(I also needed an excuse to test uv)

Install

uv pip install git+https://github.com/juliangaal/rosgpx

Run

usage: rosgpx [-h] --bag BAG [--output OUTPUT] --topic TOPIC [--min-valid-state MIN_VALID_STATE] [--stuff | --no-stuff]
              [--force | --no-force] [--frame-id FRAME_ID]

A tiny ROS(2)-less tool for the conversion of ROS(2) NavSatFix messages to .gpx

options:
  -h, --help            show this help message and exit
  --bag BAG             Path to the input ROS 2 bag file (default: None)
  --output OUTPUT       Path to the output GPX file (default: None)
  --topic TOPIC         The topic name to filter (default: None)
  --min-valid-state MIN_VALID_STATE
                        The topic name to filter (default: 0)
  --stuff, --no-stuff   Stuff the output GPX file into the rosbag directory (Only supported in ros2) (default: None)
  --force, --no-force   Force overwriting existing output GPX file (default: None)
  --frame-id FRAME_ID   Frame ID to filter by (default: None)

with uv: uv run rosgpx

GPX

Visualize the gpx in, e.g., https://evrignaud.github.io/gpx-viewer/

Acknowlegments

Thanks to rosbags for parsing and gpxpy for handling the xml part.

About

A tiny ROS(2)-less tool for the conversion of ROS(2) NavSatFix messages to .gpx.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages