tf2_web_republisher icon indicating copy to clipboard operation
tf2_web_republisher copied to clipboard

Suggestion: Minimum publishing rate

Open jorgenfb opened this issue 3 years ago • 1 comments

Use case: I have a transform that stays stationary for longer periods when my robot stays in the same place. I want to limit messages in this case, but have a high rate of updates when it eventually starts moving. I can solve this by using angularThres and transThres.

Next, I want to detect when this frame stops updating (and notify the user that the data can't be trusted anymore). This is not possible, since I can't distinguish between no movement and no tf updates.

My proposed solution to this would be to add a minimum publishing rate that would force the latest received frame to be published (or republished) if the stamp of the last published frame is older that the minimum threshold.

I'm happy to create a PR if this sounds useful. Any thoughts?

jorgenfb avatar May 05 '21 11:05 jorgenfb

I have worked on something similar. I wrote a package which can select only primary tf values and publish them to clients. I have noticed that even with no movement there are redundant tf updates. You can take a look on my package https://github.com/MerAARIZOU/py_tf2_web and the client side scripts that I modified https://github.com/MerAARIZOU/optimal_ros_lib_3d

MerAARIZOU avatar May 08 '21 16:05 MerAARIZOU