Skip to content

Commit 1425261

Browse files
docs: uxrce_dds rate_limit option
1 parent 44cd403 commit 1425261

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/en/middleware/uxrce_dds.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,11 @@ publications:
428428
429429
- topic: /fmu/out/vehicle_odometry
430430
type: px4_msgs::msg::VehicleOdometry
431+
rate_limit: 150.
431432
432433
- topic: /fmu/out/vehicle_status
433434
type: px4_msgs::msg::VehicleStatus
435+
rate_limit: 50.
434436
435437
- topic: /fmu/out/vehicle_trajectory_waypoint_desired
436438
type: px4_msgs::msg::VehicleTrajectoryWaypoint
@@ -465,6 +467,8 @@ Each (`topic`,`type`) pairs defines:
465467
- `/fmu/out/` for topics that are _published_ by PX4.
466468
- `/fmu/in/` for topics that are _subscribed_ by PX4.
467469
4. The message type (`VehicleOdometry`, `VehicleStatus`, `OffboardControlMode`, etc.) and the ROS 2 package (`px4_msgs`) that is expected to provide the message definition.
470+
5. **(Optional)**: An additional `rate_limit` field (only for publication entries), which specifies the maximum rate (Hz) at which messages will be published on this topic by PX4 to ROS 2.
471+
If left unspecified, the maximum publication rate limit is set to 100 Hz.
468472

469473
`subscriptions` and `subscriptions_multi` allow us to choose the uORB topic instance that ROS 2 topics are routed to: either a shared instance that may also be getting updates from internal PX4 uORB publishers, or a separate instance that is reserved for ROS2 publications, respectively.
470474
Without this mechanism all ROS 2 messages would be routed to the _same_ uORB topic instance (because ROS 2 does not have the concept of [multiple topic instances](../middleware/uorb.md#multi-instance)), and it would not be possible for PX4 subscribers to differentiate between streams from ROS 2 or PX4 publishers.

0 commit comments

Comments
 (0)