Software
gps_umd
By Southwest Research Institute Robotics, from github.com/swri-robotics/gps_umd (opens in a new tab)
- Navigation and mapping
- Driver or SDK
- BSD-3-Clause
A ROS 2 package of GPS message types and tools that reads GPS receivers through the GPSd daemon and publishes their fixes as ROS messages.
Facts
- GitHub stars
- 106read on 28 Nov 2026
- Last update
- 7 Nov 2026Newest commit on ros2-devel
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- BSD-3-Clause (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 94d2b36 (opens in a new tab), on 14 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Publishes a condensed GPS fix as gps_msgs/GPSFix by default, or as sensor_msgs/NavSatFix.
- Can also publish the full GPSd data set as GPSDRaw messages named after the GPSd API version, optionally including raw JSON.
- Ships a lifecycle-managed client component alongside a plain node, so publishing can be started and stopped on demand.
- Includes fix_translator to convert between NavSatFix and GPSFix topics live, and bag_converter to convert recorded bags offline.
- Supports many GPSd API versions and reconnects automatically when the GPSd server is unreachable or restarts.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- BSD-3-Clause. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 7 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/swri-robotics/gps_umd (opens in a new tab)
- The version Robotheca read94d2b36 (opens in a new tab)
- Latest release3.1.1 (16 Aug 2026)
Robotheca read the repository at two versions: the summary at fc42843 and the facts and the README at 94d2b36 (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by Southwest Research Institute Robotics, at commit 94d2b36, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
gps_umd
This package contains messages for representing data from GPS devices and algorithms for manipulating it. It uses GPSd as the underlying method of reading data from GPS receivers.
GPSd Integration and Usage
By default, this package is built against the version of GPSd shipped with the Linux distribution the underlying ROS 2 software is built against. However, the gps_umd package supports building against arbitrary versions of GPSd and matching its behavior to the GPSd API version supplied by the library.
Depending on the GPS receiver, GPSd is capable of providing a great deal of information. By default, the package publishes a condensed version of this data as a gps_msgs/GPSFix message. Alternatively, the information may be published as a standard ROS 2 sensor_msgs/NavSatFix message. These messages provide the localization and error estimates that most robots need to operate in most conditions.
gps_umd can also publish the entire set of information provided by GPSd. These messages are in the gps_msgs package and published as GPSDRaw<MAJOR>v<MINOR> types, where <MAJOR> and <MINOR> correspond to the GPSd API version that provides the information. The table below lists the currently support set of GPSd and API versions the system is built and tested against.
Three GPSd API versions are not matched to a GPSd version. These GPSd versions are given as their commit hash instead. To add more version of the GPSd API, see: docs/adding-a-gpsd-api-version.md (opens in a new tab).
gpsd_client Parameters
Both gpsd_client components (see Managed (lifecycle) Node) accept the following parameters. Some are used to configure GPSd, and others are used to work around quirks of GPSd with certain hardware. In general, gps_umd attempts to retain the behavior of GPSd as much as possible, and deviate only to match ROS 2 conventions and robot needs.
| Parameter | Type | Default | Description |
|---|---|---|---|
host | string | localhost | Hostname or address of the GPSd server to connect to. |
port | int | 2947 | TCP port of the GPSd server. |
reconnect_interval | double | 1.0 | Seconds between attempts to reconnect when GPSd is unreachable or goes away, as when it restarts. The node keeps retrying at this interval and resumes publishing once GPSd is back. A managed node retries only while active. 0 or less disables reconnecting, as in earlier releases. |
frame_id | string | gps | frame_id set on the header of published GPSFix and NavSatFix messages. |
publish_rate | int | 10 | How often, in Hz, to poll GPSd and publish. Values <= 0 fall back to 1 Hz, and values above 1000 to 1000 Hz, with a warning. |
use_gps_time | bool | true | Stamp NavSatFix messages (fix) with the time reported by the GPS receiver instead of the current ROS time. Only fix is affected: extended_fix and gpsd_raw headers are always stamped with the ROS time the report was read, and GPSFix.time carries the receiver's time. |
check_fix_by_variance | bool | false | Discard fixes whose reported variances (epx/epy/epv) are not finite. GPSd reports a status of OK even when there is no current fix, as long as there was one previously; this rejects those stale results. |
override_augmentation_source | bool | false | When GPSd reports a DGPS fix, always report it as an SBAS fix, whether or not a satellite with an SBAS ID was used in the solution. Useful for receivers that apply SBAS corrections without listing the SBAS satellite in their skyview. Affects both NavSatFix and GPSFix status. |
uncertainty_to_sigma | double | 1.96 | What GPSd's position uncertainties (epx/epy/epv, in meters) are divided by to give a standard deviation, which is squared into the variance published in the position covariance of fix and extended_fix. GPSd doesn't say how confident its uncertainties are: its own estimates are meant as 95% figures, which the default of 1.96 follows, but some drivers pass through the receiver's own figure unscaled. Use 1.0 for a receiver that reports standard deviations, or for a conservative covariance. Values that are not finite and positive fall back to 1.96 with a warning. |
legacy_fix_semantics | bool | false | Publish as releases before this option did: fix's position covariance holds GPSd's uncertainties in meters, not variances, and extended_fix reports GPSd's dead-reckoned, simulated and time-only fixes as STATUS_FIX with a GPS source, rather than as STATUS_DR_FIX, STATUS_SIM_FIX and STATUS_TIME_FIX. extended_fix's covariance is unaffected. Logs a warning, and will be removed in a future release. |
publish_gpsd_raw | bool | false | Also publish a near-verbatim mirror of GPSd's gps_data_t on gpsd_raw, in a message named after the libgps API this package was built against. Off by default: the message is much larger than GPSFix, and neither the publisher nor its parser is created unless this is set. |
publish_gpsd_json | bool | false | Publish every report GPSd sends on gpsd_json, as the raw JSON line. This contains much more than the information published on gpsd_raw, such as RTCM and SUBFRAME data. Only AIS information from GPSd is intentionally omitted. |
These node defaults can be overriden by setting a parameter. The file gpsd_client/config/gpsd_client.yaml contains these parameters as well. The launch file gpsd_client-launch.py can load these YAML files for convenience.
Managed (lifecycle) Node
gpsd_client ships two components. They are the same client, take the same
parameters and publish the same topics; they differ only in when the node
connects to GPSd and starts publishing.
| Component | Node type | Behavior |
|---|---|---|
gpsd_client::GPSDClientComponent | rclcpp::Node | Connects and publishes as soon as it is constructed, until it is destroyed. This is the default behavior. |
gpsd_client::GPSDClientLifecycleComponent | rclcpp_lifecycle::LifecycleNode | Starts unconfigured and does nothing until something drives it through the managed node (opens in a new tab) transitions. |
The launch file picks one:
ros2 launch gpsd_client gpsd_client-launch.py # unmanaged
ros2 launch gpsd_client gpsd_client-launch.py use_lifecycle:=true # managed lifecycle
A managed node publishes nothing until it is told to. Nothing transitions it on its own, so either a lifecycle manager or a person has to:
ros2 lifecycle set /gpsd_client configure
ros2 lifecycle set /gpsd_client activate
The transitions follow the two phases libgps already has -- one call to connect, another to start the flow of reports.
| Transition | What it does |
|---|---|
configure | Reads the parameters, creates the parsers and publishers, and connects to GPSd (gps_open). An unreachable daemon fails this transition and leaves the node unconfigured, rather than leaving a node that exists but never publishes. |
activate | Asks GPSd to stream (gps_stream(WATCH_ENABLE)) and starts polling it. The publishers, which drop messages while inactive, begin publishing. While active, a lost connection is retried every reconnect_interval rather than failing the node; if the connection was lost while inactive, activating reconnects. |
deactivate | Stops polling and stops the stream, but holds the connection open so reactivating it does not force a reconnect. |
cleanup | Destroys the publishers and parsers and closes the connection (gps_close), returning the node to unconfigured. |
shutdown | Deactivates and cleans up, from whatever state the node is in. |
Parameters are declared when the node is constructed but read during
configure, so a parameter changed on a running node takes effect on the next
cleanup / configure cycle.
Raw GPSd Details
With publish_gpsd_raw set, gpsd_client publishes everything GPSd reports on
gpsd_raw, as close to verbatim as a ROS message allows. The type is named
after the GPSd C API the package compiled against —
gps_msgs/GPSDRaw<MAJOR>v<MINOR>. publish_gpsd_json adds gpsd_json, carrying every report as the raw JSON line generated by GPSd, including the RTCM and SUBFRAME information.
tools/generate_raw_msgs.py automatically converts the data structures in GPSd to these messages and their parsers.
These messages are complex due to the volume of information contained within them and how C structs and unions are mapped to ROS 2 message datatypes. There are also bugs and quirks in different GPSd versions that further complicate this translation. For more information, see the documentation in the following files.
- docs/gpsd-raw-message-structure.md (opens in a new tab) message layout and what changes between API versions
- docs/gpsd-quirks.md (opens in a new tab) — GPSd behaviours worth knowing before subscribing
NavSatFix vs. GPSFix
The node fix_translator converts sensor_msgs/NavSatFix (opens in a new tab) messages to gps_msgs/GPSFix (opens in a new tab) messages and vice versa. It reads NavSatFix on navsat_fix_in and publishes GPSFix on gps_fix_out, and reads GPSFix on gps_fix_in and publishes NavSatFix on navsat_fix_out. Remap whichever direction you need.
Translate from NavSatFix to GPSFix
ros2 run gps_tools fix_translator --ros-args \
-r navsat_fix_in:=YOUR_NAVSATFIX_TOPIC -r gps_fix_out:=YOUR_GPSFIX_TOPIC
Translate from GPSFix to NavSatFix
ros2 run gps_tools fix_translator --ros-args \
-r gps_fix_in:=YOUR_GPSFIX_TOPIC -r navsat_fix_out:=YOUR_NAVSATFIX_TOPIC
From a launch file
fix_translator.launch.py takes one launch argument per topic. By default it translates NavSatFix on fix to GPSFix on gps_fix:
ros2 launch gps_tools fix_translator.launch.py navsat_fix_in:=fix gps_fix_out:=gps_fix
Converting recorded bags
bag_converter does the same conversion offline. It writes a copy of a bag in which every NavSatFix topic is a GPSFix topic and every GPSFix topic a NavSatFix one, at the same timestamps. Every other topic is copied unchanged, and the input bag is never modified.
ros2 run gps_tools bag_converter INPUT_BAG OUTPUT_BAG
--topics converts only the named topics, and --storage-id (sqlite3 or mcap) picks the output format, which otherwise matches the input's.
Disclaimer
This project is not affiliated with the GPSd project. gps_umd utilizes the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.
Build Status
GPSd Parsers
| API | GPSd revision | Message | Status |
|---|---|---|---|
| 9.0 | 3.20 | GPSDRaw9v0 | (opens in a new tab) |
| 9.1 | e5279ef52 (unreleased) | GPSDRaw9v1 | (opens in a new tab) |
| 10.0 | 3.21 | GPSDRaw10v0 | (opens in a new tab) |
| 10.1 | 42f816d59 (unreleased) | GPSDRaw10v1 | (opens in a new tab) |
| 11.0 | 3.22 | GPSDRaw11v0 | (opens in a new tab) |
| 12.0 | 3.23.1 | GPSDRaw12v0 | (opens in a new tab) |
| 13.0 | 264e808c6 (unreleased) | GPSDRaw13v0 | (opens in a new tab) |
| 14.0 | 3.26.1 | GPSDRaw14v0 | (opens in a new tab) |
| 16.0 | 3.27.3 | GPSDRaw16v0 | (opens in a new tab) |
| 16.1 | 3.27.5 | GPSDRaw16v1 | (opens in a new tab) |
Branches
| Humble | Jazzy | Kilted | Lyrical | Rolling | |
|---|---|---|---|---|---|
| Branch | humble (opens in a new tab) | jazzy (opens in a new tab) | kilted (opens in a new tab) | lyrical (opens in a new tab) | rolling (opens in a new tab) |
Released Versions
| Humble | Jazzy | Kilted | Lyrical | Rolling | |
|---|---|---|---|---|---|
| Version | (opens in a new tab) | (opens in a new tab) | (opens in a new tab) | (opens in a new tab) | (opens in a new tab) |
CI
| Humble | Jazzy | Kilted | Lyrical | Rolling | |
|---|---|---|---|---|---|
| GitHub Actions | (opens in a new tab) | (opens in a new tab) | (opens in a new tab) | (opens in a new tab) | (opens in a new tab) |
amd64 dev
| Humble | Jazzy | Kilted | Lyrical | Rolling | |
|---|---|---|---|---|---|
gps_umd (opens in a new tab) | Image: dev (opens in a new tab) (opens in a new tab) | Image: dev (opens in a new tab) (opens in a new tab) | Image: dev (opens in a new tab) (opens in a new tab) | Image: dev (opens in a new tab) (opens in a new tab) | Image: dev (opens in a new tab) (opens in a new tab) |
amd64 bin
| Package | Humble | Jazzy | Kilted | Lyrical | Rolling |
|---|---|---|---|---|---|
gps_msgs (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) |
gps_tools (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) |
gpsd_client (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) |
arm64 bin
| Package | Humble | Jazzy | Kilted | Lyrical | Rolling |
|---|---|---|---|---|---|
gps_msgs (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) |
gps_tools (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) |
gpsd_client (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) | Image: bin (opens in a new tab) (opens in a new tab) |
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.