Help getting fixed time interval
What is the best way to get a fixed time interval for calculations? I've tried setting a timer with a call back and setting loop rate, but when i calculate dt from ros::Time or ros::WallTime they answer is not what it should be. Thanks for any help.