ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Is there some ROS function that returns the execution duration of a ROS service?
Not that I know of (as in: this specifically).
Or is the easiest way to get the execution duration to
ros::Time::now()
before and after the service is called and then finding the difference?
That could certainly work.
Another approach would be to use a profiler, perhaps something like swri-robotics/swri_profiler (but there are of course more).