Skip to content
Snippets Groups Projects
Commit a56465ac authored by Johann Freymuth's avatar Johann Freymuth Committed by Ken Tossell
Browse files

use libuvc timestamp correctly

parent b9e64431
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ void CameraDriver::ReconfigureCallback(UVCCameraConfig &new_config, uint32_t lev
}
void CameraDriver::ImageCallback(uvc_frame_t *frame) {
ros::Time timestamp = ros::Time(frame->capture_time.tv_sec, frame->capture_time.tv_usec);
ros::Time timestamp = ros::Time(frame->capture_time.tv_sec, frame->capture_time.tv_usec * 1000);
if ( timestamp == ros::Time(0) ) {
timestamp = ros::Time::now();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment