ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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.


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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 55 times

Last updated: Feb 05 '20