Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Image topic and Camera_info unsynchronized #17

Closed
JBosch opened this Issue · 3 comments

2 participants

@JBosch

Hi all,

The messages of the Image and Camera info are not synchronized and that can cause problems to people working with that images...
My suggestion is this little modification in ardrone_driver.cpp (line 452):

    sensor_msgs::Image image_msg;        
    sensor_msgs::Image::_data_type::iterator _it;

    // Image and info msg need the same time stamp.
    ros::Time camera_time = ros::Time::now();

    image_msg.header.stamp = camera_time;
    cinfo_msg_hori.header.stamp = camera_time;
    cinfo_msg_vert.header.stamp = camera_time;

    if (cam_state == ZAP_CHANNEL_HORI)

Thank you,

Josep Bosch
Ocean System Lab
Heriot-Watt University

@mani-monaj
Owner

Thank you for the patch, however this issue has been mentioned in #13 and #14. Necessary changes (similar to your patch) to fix that has been committed in acc441e .

Are you using the latest code?

@JBosch

You are totally right. After a git pull the modifications where there.

thanks!

@mani-monaj
Owner

You are welcome.

@mani-monaj mani-monaj closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.