Commit 0f8aba0d authored by Kei Okada's avatar Kei Okada
Browse files

set ros::Time::now() because libuvc does not set capture_time...

set ros::Time::now() because libuvc does not set capture_time (https://github.com/ktossell/libuvc/blob/master/src/stream.c#L1100)
parent 0f943d6b
......@@ -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::now();
boost::recursive_mutex::scoped_lock(mutex_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment