ardrone_autonomy, periodically reduced sampling frequency
Hi, I'm using ardrone_autonomy to read data from the Parrot AR Drone 2.0, with ROS on an Ubuntu system. Most of the time it works fine, with ROS receiving data at the ideal rate of around 180-200 Hz. However, once every 1-2 minutes, the sampling rate is reduced to around 8-20 Hz, which messes up for the closed loop control system I'm designing. This condition lasts for about 6 seconds at every occurrence. Does anyone have any idea what this might be because? I have tried two drones, both with the same error, so it's probably not due to the drone.
EDIT: Added the link below to the picture of a recorded .bag file visualized in rqt. Each blue line represents a received sample, while white spaces mean "no sample". A recording of the "ardrone/navdata" topic shows the same.
http://cubeupload.com/im/hS59vZ.jpg
(ALT) http://i.cubeupload.com/hS59vZ.jpg
Thanks in advance!
Asked by Milkbot on 2015-07-14 01:12:19 UTC
Comments
Have you tried running the driver on another computer? It might be due a network issue? Is the host computer a notebook? Are you using an internal wifi card?
Asked by Mani on 2015-08-06 20:18:31 UTC
I have not tried the driver on another machine, as I currently only have access to one. It's a laptop and yes, I'm using its internal wireless card for the connection.
Thanks for taking the time to comment! :)
Asked by Milkbot on 2015-08-07 00:29:40 UTC
It might be worth noting that as far as I've experienced, this does not seem to occur when connected to other networks, such as internet connections etc. Though this may simply be due to me failing to notice.
Asked by Milkbot on 2015-08-07 00:34:24 UTC