AutonomyLab / ardrone_autonomy

ROS driver for Parrot AR-Drone 1.0 and 2.0 quadrocopters
http://wiki.ros.org/ardrone_autonomy
BSD 3-Clause "New" or "Revised" License
356 stars 226 forks source link

Extracting stamp info #198

Closed cyberphantom closed 7 years ago

cyberphantom commented 7 years ago

Hi, I'm using ardrone_autonomy and tum_ardrone to get /ardrone/image_raw and /ardrone/predictedPose and record the fields of these topics to a bag file. Then I extracted the frames to a folder using

rosrun image_view extract_images _sec_per_frame:=0.01 image:=/ardrone/image_raw

and then I extracted the Positions using

rostopic echo -b flight.bag -p /artdrone/predictedPose> predictedPose.txt

Now I want to match the positions with their closest frames. The problem is I can't get the stamp of the header of the image_raw topic. It says the header info in stamp field. can anyone please give a solution on matching the records of these two topics?

Thanks

mani-monaj commented 7 years ago

I suggest that you post this question to ROS Answers: Open Source Q&A Forum

mani-monaj commented 7 years ago

@cyberphantom Any update on this issue?

cyberphantom commented 7 years ago

Yes, It seams that if you tried to read the header information by executing ROS command, you can't reach to timestamp info, but if you use any sort of python or cpp coding to access the header information you can get the timestamp header info.

Thanks for following up!

mani-monaj commented 7 years ago

Thanks for the update. I will close this issue then.