Allows user to receive in-flight video data from an ARDrone. Video data from the ARDrone is returned from either the front-facing, or the bottom-facing cameras.
How To Connect
Communication with the ARDrone's video interface takes place using a WiFi connection. The ARDrone is a WiFi access point, so it normally can be the only device you connect to, without some additional effort to reconfigure the drone itself to put it into infrastructure mode.
require 'artoo' connection :videodrone, :adaptor => :ardrone_video, :port => '192.168.1.1:5555' device :video, :driver => :ardrone_video, :connection => :videodrone
How To Use
Example of receiving video data from an ARDrone.
require 'artoo' connection :navigation, :adaptor => :ardrone_navigation, :port => '192.168.1.1:5554' device :nav, :driver => :ardrone_navigation, :connection => :navigation work do on video, :frame => :v_frame end def v_frame(*data) @count ||= 0 @count += 1 puts "Frame #" + @count puts data.size + " bytes" end
Starts the driver
Retrieves frame from video connection and publishes data to update and frame event topics.