-
Notifications
You must be signed in to change notification settings - Fork 422
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
Nodes default to using ROS time if /clock is published #514
Comments
This was the original behavior in ROS. But it looks like it was updated circa 2010 to require the parameter to be set before startup of the node otherwise it won't subscribe to |
the use_sim_time solely is what determines if ROS time is active in #559. /clock subscription is only created if it is set to true. Parameter callbacks are used, so this subscription will be created if the parameter is set at any time during the lifetime of the node, and removed if the parameter is set to false. ros2/rclpy#240 tracks doing something similar in rclpy |
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
The presence of a publisher on the
/clock
topic causes nodes with unsetuse_sim_time
parameter value to start using sim time. See this test.I haven't found a discussion where we decided that should be the case, so wanted to highlight the current state of ROS time being "opt out" instead of "opt in" and verify it's what we want.
The text was updated successfully, but these errors were encountered: