Is it possible to increase the publishing rate of a topic inside a launch file?
This is my situation,
I am subscribing to a topic which publishes messages at a rate of 5 Hz and I want to increase the rate to 100 Hz. A way to achieve that, is creating a node and republish the incoming messages to a higher frequency, however I am wondering if there is already a ROS tool able to perform such task and that can be defined inside a launch file.
PD: Sorry for my poor English grammar.
So you basically want to repeat each message 20x? This doesn't sound right. Could you comment why you want to do this?
The question is: Why would you want to do that? The message stays the same in between the 5Hz updates. So there is nothing gained by increasing the frequency in this way. Could you explain in more detail why you want to do that and what you hope to gain?
There are some tools to easily deal with topics in the topic_tools package, but not for your use case.
The reason is because I am implementing a control system whose plant publishes messages of the current states at 5 Hz which seems to me a low speed. For this reason, I decided to somehow increase the frequency no matter what intermediate values are repeated.