Commit f857081e authored by Michael Stypa's avatar Michael Stypa Committed by v4hn
Browse files

fixed missing timestamp in camera_info and image_raw

parent 0ab494b9
......@@ -159,6 +159,8 @@ void CameraDriver::ImageCallback(uvc_frame_t *frame) {
return;
}
ros::Time timestamp = ros::Time::now();
sensor_msgs::Image::Ptr image(new sensor_msgs::Image());
image->width = config_.width;
image->height = config_.height;
......@@ -174,6 +176,8 @@ void CameraDriver::ImageCallback(uvc_frame_t *frame) {
std_msgs::Header::Ptr cinfoheader(new std_msgs::Header());
imageheader->frame_id = config_.frame_id;
cinfoheader->frame_id = config_.frame_id;
imageheader->stamp = timestamp;
cinfoheader->stamp = timestamp;
image->header = *imageheader;
cinfo->header = *cinfoheader;
......
Supports Markdown
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