-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLOCK_REALTIME vs CLOCK_MONOTONIC #78
Comments
not with the pkgs in this repository, but with another driver that did not take the As On one system where I used that driver -- before patching it so that it used TF broadcasts with timestamps in the 1970s result in the same problem. |
In the 1970s haha.. thanks for your input @gavanderhoorn Ok, I get that... so as far as I understand, the time is only used to stamp the state messages of controllers when publishing to ROS. Tweaking my question: Why are we passing the point in time in the controller manager update call then? I mean, wouldn't it be better for each controller to stamp the messages they are publishing using their own time at the moment of computing/publishing the command/state, like for instance using Is there any example where |
In #46 , @miguelprada raised a comment about what would be the best thing to do when updating the controllers.
In an email discussion with him, the suggestion kind of makes sense, which is how it is done currently in the
ur_modern_driver
and in theros_control_boilerplate
template. In both of them, they passros::Time::now()
(computed with CLOCK_REALTIME) and the elapsed time computed with CLOCK_MONOTONIC, so the elapsed time is always positive, to thecontroller_manager
instance. The reasoning is to keep the controllers in sync with the rest of the ROS system.What makes me open the issue is because I remember not having any problems with the current setup, where
now
and elapsed time are computed using CLOCK_MONOTONIC, while using thejoint_trajectory_controller
mostly, but it might be that I never really took it to any extreme cases or so.Does anybody have an example where this leads to a non-expected behavior?
The text was updated successfully, but these errors were encountered: