PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.43k stars 13.48k forks source link

MicroRTPS bridge send rate #19081

Open dsix-ls2n opened 2 years ago

dsix-ls2n commented 2 years ago

Describe problem solved by the proposed feature With the current micro RTPS bridge, it is not possible to set the rate at which the topics are broadcast on the used port. With serial bandwidth, it can be an issue if too many topics are broadcast. However, some topics cast to ROS2 might not be necessary at the rate they are available on autopilot.

Describe your preferred solution Include a rate option in the yaml configuration file to choose the ratio between the uorb topic publication and the broadcast through the RTPS bridge.

If this feature is not in progress and has some interest for the community. I might provide a PR for it.

benjinne commented 2 years ago

This might be what you're looking for https://github.com/PX4/PX4-Autopilot/pull/18446

dsix-ls2n commented 2 years ago

Thank you for this information. This is a good start, but I would like to be able to specify each topic rate specifically. Because depending on the application, some topics might be needed at full rate, but some others might not.

TSC21 commented 2 years ago

Thank you for this information. This is a good start, but I would like to be able to specify each topic rate specifically. Because depending on the application, some topics might be needed at full rate, but some others might not.

That's not supported at this point. And it's not in progress specially because soon we will start the migration for micro XRCE-DDS.

dsix-ls2n commented 2 years ago

Ok, fine, it would be good to put this feature in the new protocol if possible. Since the serial bandwidth will still be an issue.