Ask Your Question
0

Get time from video_stream.cpp

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

ARM 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

Fetullah Atas gravatar image

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

Stats

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

Seen: 28 times

Last updated: Feb 05 '20