Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
humble

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
jazzy

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
kilted

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
lyrical

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
rolling

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

No version for distro ardent showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
humble

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

No version for distro bouncy showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
humble

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

No version for distro crystal showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
humble

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

No version for distro eloquent showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
humble

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

No version for distro dashing showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
humble

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

No version for distro galactic showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
humble

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

No version for distro foxy showing humble. Known supported distros are highlighted in the buttons above.
Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
humble

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_msgs gps_tools gps_umd gpsd_client

ROS Distro
iron

Package Summary

Version 3.1.1
License BSD
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version ros2-devel
Last Updated 2026-12-02
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Connects to a GPSd server and broadcasts GPS fixes using the NavSatFix or GPSFix messages

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • P. J. Reed
  • Ken Tossell
  • Rob Thomson

gpsd_client

gpsd_client connects to a GPSd server and publishes the fixes it reports as sensor_msgs/NavSatFix and gps_msgs/GPSFix messages. It can also publish everything GPSd reports, decoded into a gps_msgs/GPSDRaw<MAJOR>v<MINOR> message or as GPSd’s raw JSON.

By default it is built against the libgps shipped with the Linux distribution, but it can be built against other GPSd releases as well. The gps_umd README lists the GPSd versions it is built and tested against.

ros2 launch gpsd_client gpsd_client-launch.py

The launch file loads the parameters in config/gpsd_client.yaml. It runs the client in a component container alongside gps_tools::UtmOdometryComponent, which converts fix into UTM odometry on odom.

Components

gpsd_client ships two components. They are the same client, take the same parameters and publish the same topics. The only difference is 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 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

Managed (lifecycle) node

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.

Published Topics

Topic Type Description
fix sensor_msgs/NavSatFix The current fix, with its position covariance.
extended_fix gps_msgs/GPSFix The current fix, with what NavSatFix cannot carry: track, speed and climb, the dilutions of precision, GPSd’s uncertainty estimates, the receiver’s time, and the satellites used and visible.
gpsd_raw gps_msgs/GPSDRaw<MAJOR>v<MINOR> Only with publish_gpsd_raw. A near-verbatim mirror of GPSd’s gps_data_t, in the message for the libgps API the package was built against.
gpsd_json gps_msgs/GPSDJson Only with publish_gpsd_json. Every report GPSd sends, as the raw JSON line.

Parameters

Both components 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, gpsd_client 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 uncertainties are not finite: epx and epy for a 2D fix, and epv as well for a 3D one. GPSd reports a status of OK even when there is no current fix, as long as there was one previously, and this rejects those stale results. Whether or not this is set, a fix whose covariance is published as known carries every uncertainty it needs. The one exception is a 2D fix’s vertical variance, which is NaN, like its altitude.
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 v4.0.0 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 overridden by setting a parameter. The file config/gpsd_client.yaml contains these parameters as well, and the launch file gpsd_client-launch.py loads it.

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.

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:

Disclaimer

This project is not affiliated with the GPSd project. gpsd_client uses the GPSd library as an interface to GPS receivers but is not a part of the GPSd project itself.

CHANGELOG

Changelog for package gpsd_client

3.1.1 (2026-08-15)

  • Improved check for constant definition, and adding dependency on pkg-config to find gpsd (#128)
  • Contributors: David Anthony

3.1.0 (2026-07-22)

  • Cleaning up unreachable code from include guards (#125)

  • Added user ability to override correction source (#124)

    • Adding flag to override augmentation source of corrections
    • Adding parameters to readme. Also making sure the default yaml and code defaults match each other
  • Implement Version Specific GPSd Parsers (#120)

    * Implementing parsing functionality as version specific parsers rather than conditionally compiling code. ---------Co-authored-by: DangitBen <<30333928+DangitBen@users.noreply.github.com>>

  • Contributors: David Anthony

2.2.0 (2026-07-08)

  • gpsd_client: fix GPS status mapping and satellite PRN reporting (#119) Restore corrected-fix status handling that was accidentally broken during the gpsd API 10 migration. The DGPS/SBAS/RTK status checks now have real bodies again and update GPSFix.status.status instead of falling through to the next statement. This allows GPSFix to report SBAS, DGPS, RTK fixed, and RTK float states instead of always publishing a plain fix. Update NavSatFix status handling to use fix mode as the validity gate and gpsd status as the correction-quality qualifier. This prevents valid 2D/3D fixes with unrecognized or newer gpsd status values from being reported as NO_FIX, while still mapping SBAS/DGPS/RTK corrections to the closest NavSatStatus values. Fix satellite_used_prn population for newer gpsd APIs by collecting the PRN from each used skyview entry. The previous code stored the boolean "used" flag instead of the satellite PRN and assumed the first satellites_used skyview entries were the used satellites. Also harden startup by avoiding timer creation when gpsd fails to open and guarding against invalid publish_rate values before computing the timer period.
  • Contributors: engnfrc

2.1.2 (2026-03-13)

  • Fixing time conversion (#117)
  • Contributors: David Anthony

2.1.1 (2025-07-07)

2.1.0 (2025-05-27)

  • Update deprecated call to ament_target_dependencies (#110)
  • Contributors: David V. Lu!!, David Anthony

2.0.5 (2025-05-20)

  • Removing all ament_target_dependencies() calls (#111)
  • Changing hard coded default port value and improving string allocation (#101)
  • Updating package search (#99)
    • Updating package search
    • Removing pkg_check_modules call
  • Check mode Field (#100)
    • Switching to use mode of fix instead of status to be more robust to changes in API
    • Making altitude NaN if in 2D fix mode
  • Port of https://github.com/swri-robotics/gps_umd/pull/74 (#98)
  • Contributors: David Anthony

2.0.4 (2024-05-07)

  • Fix queue build up issue in gpsd_client (#89)
  • Updating CI process (#85)
  • Contributors: David Anthony, Erik Botö

2.0.3 (2023-09-06)

  • Fix uninitialized parameter exception in gpsd_client (#83)

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_common gps_umd gpsd_client

ROS Distro
lunar

Package Summary

Version 0.3.4
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version master
Last Updated 2024-05-15
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

connects to a GPSd server and broadcasts GPS fixes using the NavSatFix message

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • Ken Tossell
  • Rob Thomson
  • Timo Roehling
  • P. J. Reed
README
No README found. See repository README.
CHANGELOG

Changelog for package gpsd_client

0.3.4 (2023-06-14)

  • GPSD API v12 Compatibility (#78)
  • Contributors: MariuszSzczepanikSpyrosoft

0.3.3 (2022-11-28)

  • Adding better debugging output to help diagnose corner case (#59)

    * Adding better debugging output to help diagnose corner case DISTRIBUTION A. Approved for public release; distribution unlimited. OPSEC #4584

  • Merge pull request #39 from shr-project/jansa/gpsd Fix build with gpsd-3.21

  • Fix build with gpsd-3.21 Adapt to changes from this commit: https://gitlab.com/gpsd/gpsd/-/commit/29991d6ffeb41ecfc8297db68bb68be0128c8514

  • Contributors: David Anthony, Martin Jansa

0.3.2 (2020-05-25)

  • Fix build with gpsd 3.20 (#28)
  • Contributors: P. J. Reed

0.3.1 (2020-03-05)

  • Fix for gpsd-3.19 compatibility (#26)
  • Contributors: P. J. Reed

0.3.0 (2019-10-03)

0.2.0 (2017-11-16)

  • Add include for <cmath> in gpsd_client
  • Add parameter to set frame_id.
  • Contributors: Kris Kozak, P. J. Reed

0.1.9 (2017-05-08)

0.1.8 (2016-10-31)

  • Use pre-processor defines to handle different libgps API versions Fixes #1
  • Contributors: P. J. Reed

0.1.7 (2014-05-08)

  • Fix a segfault when there is no GPS fix: time will be NaN which causes the ROS timestamp message to throw a Boost rounding exception.
  • Contributors: Stuart Alldritt

0.1.6

  • Initial catkin release

Package Dependencies

System Dependencies

Dependant Packages

Name Deps
gps_umd

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_common gps_umd gpsd_client

ROS Distro
jade

Package Summary

Version 0.3.4
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version master
Last Updated 2024-05-15
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

connects to a GPSd server and broadcasts GPS fixes using the NavSatFix message

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • Ken Tossell
  • Rob Thomson
  • Timo Roehling
  • P. J. Reed
README
No README found. See repository README.
CHANGELOG

Changelog for package gpsd_client

0.3.4 (2023-06-14)

  • GPSD API v12 Compatibility (#78)
  • Contributors: MariuszSzczepanikSpyrosoft

0.3.3 (2022-11-28)

  • Adding better debugging output to help diagnose corner case (#59)

    * Adding better debugging output to help diagnose corner case DISTRIBUTION A. Approved for public release; distribution unlimited. OPSEC #4584

  • Merge pull request #39 from shr-project/jansa/gpsd Fix build with gpsd-3.21

  • Fix build with gpsd-3.21 Adapt to changes from this commit: https://gitlab.com/gpsd/gpsd/-/commit/29991d6ffeb41ecfc8297db68bb68be0128c8514

  • Contributors: David Anthony, Martin Jansa

0.3.2 (2020-05-25)

  • Fix build with gpsd 3.20 (#28)
  • Contributors: P. J. Reed

0.3.1 (2020-03-05)

  • Fix for gpsd-3.19 compatibility (#26)
  • Contributors: P. J. Reed

0.3.0 (2019-10-03)

0.2.0 (2017-11-16)

  • Add include for <cmath> in gpsd_client
  • Add parameter to set frame_id.
  • Contributors: Kris Kozak, P. J. Reed

0.1.9 (2017-05-08)

0.1.8 (2016-10-31)

  • Use pre-processor defines to handle different libgps API versions Fixes #1
  • Contributors: P. J. Reed

0.1.7 (2014-05-08)

  • Fix a segfault when there is no GPS fix: time will be NaN which causes the ROS timestamp message to throw a Boost rounding exception.
  • Contributors: Stuart Alldritt

0.1.6

  • Initial catkin release

Package Dependencies

System Dependencies

Dependant Packages

Name Deps
gps_umd

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_common gps_umd gpsd_client

ROS Distro
indigo

Package Summary

Version 0.3.4
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version master
Last Updated 2024-05-15
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

connects to a GPSd server and broadcasts GPS fixes using the NavSatFix message

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • Ken Tossell
  • Rob Thomson
  • Timo Roehling
  • P. J. Reed
README
No README found. See repository README.
CHANGELOG

Changelog for package gpsd_client

0.3.4 (2023-06-14)

  • GPSD API v12 Compatibility (#78)
  • Contributors: MariuszSzczepanikSpyrosoft

0.3.3 (2022-11-28)

  • Adding better debugging output to help diagnose corner case (#59)

    * Adding better debugging output to help diagnose corner case DISTRIBUTION A. Approved for public release; distribution unlimited. OPSEC #4584

  • Merge pull request #39 from shr-project/jansa/gpsd Fix build with gpsd-3.21

  • Fix build with gpsd-3.21 Adapt to changes from this commit: https://gitlab.com/gpsd/gpsd/-/commit/29991d6ffeb41ecfc8297db68bb68be0128c8514

  • Contributors: David Anthony, Martin Jansa

0.3.2 (2020-05-25)

  • Fix build with gpsd 3.20 (#28)
  • Contributors: P. J. Reed

0.3.1 (2020-03-05)

  • Fix for gpsd-3.19 compatibility (#26)
  • Contributors: P. J. Reed

0.3.0 (2019-10-03)

0.2.0 (2017-11-16)

  • Add include for <cmath> in gpsd_client
  • Add parameter to set frame_id.
  • Contributors: Kris Kozak, P. J. Reed

0.1.9 (2017-05-08)

0.1.8 (2016-10-31)

  • Use pre-processor defines to handle different libgps API versions Fixes #1
  • Contributors: P. J. Reed

0.1.7 (2014-05-08)

  • Fix a segfault when there is no GPS fix: time will be NaN which causes the ROS timestamp message to throw a Boost rounding exception.
  • Contributors: Stuart Alldritt

0.1.6

  • Initial catkin release

Package Dependencies

System Dependencies

Dependant Packages

Name Deps
gps_umd

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_common gps_umd gpsd_client

ROS Distro
hydro

Package Summary

Version 0.1.7
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/ktossell/gps_umd.git
VCS Type git
VCS Version master
Last Updated 2014-06-20
Dev Status UNMAINTAINED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

connects to a GPSd server and broadcasts GPS fixes using the NavSatFix message

Additional Links

Maintainers

  • Timo Roehling

Authors

  • Ken Tossell
  • Rob Thomson
README
No README found. No README in repository either.
CHANGELOG

Changelog for package gpsd_client

0.1.7 (2014-05-08)

  • Fix a segfault when there is no GPS fix: time will be NaN which causes the ROS timestamp message to throw a Boost rounding exception.
  • Contributors: Stuart Alldritt

0.1.6

  • Initial catkin release

Package Dependencies

System Dependencies

Dependant Packages

Name Deps
gps_umd

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_common gps_umd gpsd_client

ROS Distro
kinetic

Package Summary

Version 0.3.4
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version master
Last Updated 2024-05-15
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

connects to a GPSd server and broadcasts GPS fixes using the NavSatFix message

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • Ken Tossell
  • Rob Thomson
  • Timo Roehling
  • P. J. Reed
README
No README found. See repository README.
CHANGELOG

Changelog for package gpsd_client

0.3.4 (2023-06-14)

  • GPSD API v12 Compatibility (#78)
  • Contributors: MariuszSzczepanikSpyrosoft

0.3.3 (2022-11-28)

  • Adding better debugging output to help diagnose corner case (#59)

    * Adding better debugging output to help diagnose corner case DISTRIBUTION A. Approved for public release; distribution unlimited. OPSEC #4584

  • Merge pull request #39 from shr-project/jansa/gpsd Fix build with gpsd-3.21

  • Fix build with gpsd-3.21 Adapt to changes from this commit: https://gitlab.com/gpsd/gpsd/-/commit/29991d6ffeb41ecfc8297db68bb68be0128c8514

  • Contributors: David Anthony, Martin Jansa

0.3.2 (2020-05-25)

  • Fix build with gpsd 3.20 (#28)
  • Contributors: P. J. Reed

0.3.1 (2020-03-05)

  • Fix for gpsd-3.19 compatibility (#26)
  • Contributors: P. J. Reed

0.3.0 (2019-10-03)

0.2.0 (2017-11-16)

  • Add include for <cmath> in gpsd_client
  • Add parameter to set frame_id.
  • Contributors: Kris Kozak, P. J. Reed

0.1.9 (2017-05-08)

0.1.8 (2016-10-31)

  • Use pre-processor defines to handle different libgps API versions Fixes #1
  • Contributors: P. J. Reed

0.1.7 (2014-05-08)

  • Fix a segfault when there is no GPS fix: time will be NaN which causes the ROS timestamp message to throw a Boost rounding exception.
  • Contributors: Stuart Alldritt

0.1.6

  • Initial catkin release

Package Dependencies

System Dependencies

Dependant Packages

Name Deps
gps_umd

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_common gps_umd gpsd_client

ROS Distro
melodic

Package Summary

Version 0.3.4
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version master
Last Updated 2024-05-15
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

connects to a GPSd server and broadcasts GPS fixes using the NavSatFix message

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • Ken Tossell
  • Rob Thomson
  • Timo Roehling
  • P. J. Reed
README
No README found. See repository README.
CHANGELOG

Changelog for package gpsd_client

0.3.4 (2023-06-14)

  • GPSD API v12 Compatibility (#78)
  • Contributors: MariuszSzczepanikSpyrosoft

0.3.3 (2022-11-28)

  • Adding better debugging output to help diagnose corner case (#59)

    * Adding better debugging output to help diagnose corner case DISTRIBUTION A. Approved for public release; distribution unlimited. OPSEC #4584

  • Merge pull request #39 from shr-project/jansa/gpsd Fix build with gpsd-3.21

  • Fix build with gpsd-3.21 Adapt to changes from this commit: https://gitlab.com/gpsd/gpsd/-/commit/29991d6ffeb41ecfc8297db68bb68be0128c8514

  • Contributors: David Anthony, Martin Jansa

0.3.2 (2020-05-25)

  • Fix build with gpsd 3.20 (#28)
  • Contributors: P. J. Reed

0.3.1 (2020-03-05)

  • Fix for gpsd-3.19 compatibility (#26)
  • Contributors: P. J. Reed

0.3.0 (2019-10-03)

0.2.0 (2017-11-16)

  • Add include for <cmath> in gpsd_client
  • Add parameter to set frame_id.
  • Contributors: Kris Kozak, P. J. Reed

0.1.9 (2017-05-08)

0.1.8 (2016-10-31)

  • Use pre-processor defines to handle different libgps API versions Fixes #1
  • Contributors: P. J. Reed

0.1.7 (2014-05-08)

  • Fix a segfault when there is no GPS fix: time will be NaN which causes the ROS timestamp message to throw a Boost rounding exception.
  • Contributors: Stuart Alldritt

0.1.6

  • Initial catkin release

Package Dependencies

System Dependencies

Dependant Packages

Name Deps
gps_umd

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange

Package symbol

gpsd_client package from gps_umd repo

gps_common gps_umd gpsd_client

ROS Distro
noetic

Package Summary

Version 0.3.4
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/swri-robotics/gps_umd.git
VCS Type git
VCS Version master
Last Updated 2024-05-15
Dev Status DEVELOPED
Released RELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

connects to a GPSd server and broadcasts GPS fixes using the NavSatFix message

Additional Links

Maintainers

  • Southwest Research Institute

Authors

  • Ken Tossell
  • Rob Thomson
  • Timo Roehling
  • P. J. Reed
README
No README found. See repository README.
CHANGELOG

Changelog for package gpsd_client

0.3.4 (2023-06-14)

  • GPSD API v12 Compatibility (#78)
  • Contributors: MariuszSzczepanikSpyrosoft

0.3.3 (2022-11-28)

  • Adding better debugging output to help diagnose corner case (#59)

    * Adding better debugging output to help diagnose corner case DISTRIBUTION A. Approved for public release; distribution unlimited. OPSEC #4584

  • Merge pull request #39 from shr-project/jansa/gpsd Fix build with gpsd-3.21

  • Fix build with gpsd-3.21 Adapt to changes from this commit: https://gitlab.com/gpsd/gpsd/-/commit/29991d6ffeb41ecfc8297db68bb68be0128c8514

  • Contributors: David Anthony, Martin Jansa

0.3.2 (2020-05-25)

  • Fix build with gpsd 3.20 (#28)
  • Contributors: P. J. Reed

0.3.1 (2020-03-05)

  • Fix for gpsd-3.19 compatibility (#26)
  • Contributors: P. J. Reed

0.3.0 (2019-10-03)

0.2.0 (2017-11-16)

  • Add include for <cmath> in gpsd_client
  • Add parameter to set frame_id.
  • Contributors: Kris Kozak, P. J. Reed

0.1.9 (2017-05-08)

0.1.8 (2016-10-31)

  • Use pre-processor defines to handle different libgps API versions Fixes #1
  • Contributors: P. J. Reed

0.1.7 (2014-05-08)

  • Fix a segfault when there is no GPS fix: time will be NaN which causes the ROS timestamp message to throw a Boost rounding exception.
  • Contributors: Stuart Alldritt

0.1.6

  • Initial catkin release

Package Dependencies

System Dependencies

Dependant Packages

Name Deps
gps_umd

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged gpsd_client at Robotics Stack Exchange