ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Get time from video_stream.cpp

asked 2018-04-24 06:13:07 -0500

ARM gravatar image

updated 2022-06-12 19:44:29 -0500

lucasw gravatar image

Hello everyone,

I am working on a project and have a requirement to record image processing timestamp.

Reference:

http://docs.ros.org/jade/api/video_st...

The following returns only the publishing time:

pub.publish(*msg, cam_info_msg, ros::Time::now());

How can I get the time when it receives image (before processing)?

Best, ARM

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-05 23:20:14 -0500

Hi, you can call ros::Time::now() to capture clock right after you receive image,

ros::Time begin = ros::Time::now();

you can have more detailed look at Ros Time here

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-04-24 06:13:07 -0500

Seen: 81 times

Last updated: Feb 05 '20