Merge pull request #14 from tomh05/bugfix-timestamp

Ensure timestamps are consistent for camera image and info. Fixes #13
Esse commit está contido em:
Mani Monajjemi
2012-10-11 17:08:40 -07:00
+2 -2
Ver Arquivo
@@ -450,8 +450,8 @@ void ARDroneDriver::publish_video()
sensor_msgs::Image::_data_type::iterator _it;
image_msg.header.stamp = ros::Time::now();
cinfo_msg_hori.header.stamp = ros::Time::now();
cinfo_msg_vert.header.stamp = ros::Time::now();
cinfo_msg_hori.header.stamp = image_msg.header.stamp;
cinfo_msg_vert.header.stamp = image_msg.header.stamp;
if (cam_state == ZAP_CHANNEL_HORI)
{