[ros-users] [Discourse.ros.org] [Next Generation ROS] ROS 2 Time vs std::chrono

Sloretz ros.discourse at gmail.com
Mon Oct 8 18:36:24 UTC 2018



Is it important for your product to support being used by two nodes in the same process at the same time?

If `rclcpp` used [std::chrono](https://en.cppreference.com/w/cpp/named_req/Clock) then there could only be one clock per clock type per process. If a process with two nodes starts and a user sets `use_sim_time` to `true` on one node and `false` on the other then what time should `ros2_clock::now()` return?





---
[Visit Topic](https://discourse.ros.org/t/ros-2-time-vs-std-chrono/6293/4) or reply to this email to respond.




More information about the ros-users mailing list