ros::Rate object- setting different loop_rates after instantiation
Hello,
I wrote a while loop and I want to change loop rates while running. The problem is , ros::Rate can only set frequency in constructor. After creating the object I can not change frequency.
How can I handle this problem.
Any help will be appreciated..
Would constructing a new one and assigning it to the same variable not work?
I have 4 different loop_freq changing according to some conditions. will I create 4 different ros::Rate objects?