Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

ardrone_driver.cpp: ensure timestamps are consistent #14

Merged
merged 1 commit into from

2 participants

@tomh05

Calling ros::Time::now() doesn't guarantee timestamps are matched as
ros::Time::now() can change between calls. This fix sets the timestamps to be
equal, to ensure consistency.

This addresses issue #13.

@tomh05 tomh05 ardrone_driver.cpp: ensure timestamps are consistent
Calling ros::Time::now() doesn't guarantee timestamps are matched as
ros::Time::now() can change between calls. This fix sets the timestamps to be
equal, to ensure consistency.

This addresses issue #13.
9efbd40
@mani-monaj mani-monaj merged commit acc441e into from
@mani-monaj
Owner

Thank you very much for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 11, 2012
  1. @tomh05

    ardrone_driver.cpp: ensure timestamps are consistent

    tomh05 authored
    Calling ros::Time::now() doesn't guarantee timestamps are matched as
    ros::Time::now() can change between calls. This fix sets the timestamps to be
    equal, to ensure consistency.
    
    This addresses issue #13.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ardrone_driver.cpp
View
4 src/ardrone_driver.cpp
@@ -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)
{
Something went wrong with that request. Please try again.