Skip to content

Commit

Permalink
fix header timestamps in right image
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophTobler committed Jul 20, 2016
1 parent 8af7320 commit 84c9640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/uvc_ros_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ void uvcROSDriver::uvc_cb(uvc_frame_t *frame)
// time, so the image time stamp should be set to the first camera pair
msg_vio.header.stamp = frame_time_;
msg_vio.left_image.header.stamp = frame_time_;
msg_vio.left_image.header.stamp = frame_time_;
msg_vio.right_image.header.stamp = frame_time_;
// set frame_id on images
msg_vio.left_image.header.frame_id = "cam_2_optical_frame";
msg_vio.right_image.header.frame_id = "cam_3_optical_frame";
Expand All @@ -789,7 +789,7 @@ void uvcROSDriver::uvc_cb(uvc_frame_t *frame)
if (cam_id == 2 && frameCounter_ % modulo_ == 0) { // select_cam = 4 + 5
msg_vio.header.stamp = frame_time_;
msg_vio.left_image.header.stamp = frame_time_;
msg_vio.left_image.header.stamp = frame_time_;
msg_vio.right_image.header.stamp = frame_time_;
// set frame_id on images
msg_vio.left_image.header.frame_id = "cam_4_optical_frame";
msg_vio.right_image.header.frame_id = "cam_5_optical_frame";
Expand All @@ -816,7 +816,7 @@ void uvcROSDriver::uvc_cb(uvc_frame_t *frame)
if (cam_id == 3 && frameCounter_ % modulo_ == 0) { // select_cam = 6 + 7
msg_vio.header.stamp = frame_time_;
msg_vio.left_image.header.stamp = frame_time_;
msg_vio.left_image.header.stamp = frame_time_;
msg_vio.right_image.header.stamp = frame_time_;
// set frame_id on images
msg_vio.left_image.header.frame_id = "cam_6_optical_frame";
msg_vio.right_image.header.frame_id = "cam_7_optical_frame";
Expand All @@ -843,7 +843,7 @@ void uvcROSDriver::uvc_cb(uvc_frame_t *frame)
if (cam_id == 4 && frameCounter_ % modulo_ == 0) { // select_cam = 8 + 9
msg_vio.header.stamp = frame_time_;
msg_vio.left_image.header.stamp = frame_time_;
msg_vio.left_image.header.stamp = frame_time_;
msg_vio.right_image.header.stamp = frame_time_;
// set frame_id on images
msg_vio.left_image.header.frame_id = "cam_8_optical_frame";
msg_vio.right_image.header.frame_id = "cam_9_optical_frame";
Expand Down

0 comments on commit 84c9640

Please sign in to comment.