ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The problem is the use of std::clock(). The nodes themselves were single-threaded, but the nodelet manager is multithreaded, which throws off std::clock() by a lot.
Switched to std::chrono::high_resolution_clock::now(), and the problem no longer appears.
Thanks, gvdhoorn!