How to drop message rate? Unable to load topic_throttle.
I have a topic published by baxter robot "/robot/digital_io/torso_left_itb_button0/state"
that publishes at 100 Hz.
As I am running a loop in the subscriber call back, my loop keeps running for 100 times. I want it to receive only one message/per second and hence process that loop only once. For some reason, I am not able to load the page of ros_topic throttle to take a look on how it works.
Can you please tell me how to do it via throttle or srop or any other tool that will drop the number of messages published?
Thanks!