Robotics StackExchange | Archived questions

Timer vs Sleep

Hello everybody, I am implementing a controller over ros and I need to force the rates of two nested loops as precisely as possible.

I usually use the timer function with a callback, but I was wandering if there is a bettere way. Is there a difference of performance and precision between the timer function and the sleep function?

What do you thin I should use?

Thank you very much Andrea

Asked by Mago Nick on 2015-02-16 06:51:03 UTC

Comments

Answers