-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP_DDS: Add support for NavSatFix publishing from AP #23277
Comments
I'm hoping some additional fields can be added in time for ROS2 Iron. If the changes are accepted, this means ArduPilot will have to figure out how to support multiple ROS 2 versions. |
I always viewed As it's appropriate here, I'll mention the option of using the |
Yep, as mentioned in the issue |
Completed by #23533 |
As part of the MVP API for DDS, one commonly used message is NavSatFix.
It is the lat-lon-altitude version of position in WGS-84 coordinate system, which is commonly used to publish GPS data (before fusion).
It can be consumed by visualization tools like Foxglove to show the vehicle on a map.
The publish rate should match the fix rate of the GPS sensor, and the timestamp should match the timestamp from the GPS receiver, not when it's published by DDS. This may require changes in the GPS code to add a callback. Be careful about adding circular dependencies in the code between AP_DDS and AP_GPS.
Tridge: In AP_GPS, look at last_update_time (uint32 ms). If timestamp is different, publish and update. Poll at 1Khz. It may be 5Hz, it may be at 10Hz. Timestamp comparison is cheap.
last_fix_time_ms
Test this in SIM_GPS_* to test
GPS can set
num_instances
Original intent of NavSatFix can be found here: https://wiki.ros.org/sensor_msgs/Reviews/2010-05-31%20GPS%20Proposal_API_Review?highlight=%28PackageReviewCategory%29
The text was updated successfully, but these errors were encountered: