Top Banner
Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009
56

Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Jun 21, 2018

Download

Documents

dangdan
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Autonomous Navigation of a Quadrotor Helicopter Using

GPS and Vision Control

Group 1

December 10, 2009

Page 2: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Project TasksFly helicopter to a predetermined location using GPS feedbackTake pictures at this locationFly a planned path along GPS coordinatesTake pictures along the reference pathUse GPS and camera feedback to visually servo to and land on a marked target

Page 3: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Practical ApplicationsAny process involved with the discovery and inspection of small objectsUAV refueling midflightLand mine detection by autonomous ground robotsLanding of an AUV or parking an autonomous ground vehicle at a certain location based on object recognition

Page 4: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Quadrotor SpecificationsWeighs 1.25 kg200 g maximum payload23 minute battery life (hovering)12 minute battery life (with max load)

Photo of the Ascending Technologies Hummingbird Autopilot Quadrocopter removed due to copyright restrictions.

Page 5: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Quadrotor DynamicsIndependent thrust, pitch, roll and yaw.Quadrotor able to make precise maneuvers.Can move one of two ways

Pitch/Yaw Pitch/RollOperates in random environment (wind)

Page 6: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Main BatteryCompassCompass XBeeGPSGPS XBeeQuadrotor XBeePower Circuit

Current Hardware Layout

Page 7: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Electrical and Signal Flow Schematic

Compass

GPS

12V Battery

PowerCircuit

Quadrotor

XBee

XBee

XBee

XBee

XBee

XBee

inv

9V Battery

Page 8: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Block DiagramActual

PositionController Quadrotor

Sensors

ErrorDesired Position +

_

Commands

Observed Position

Disturbances

Page 9: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Controller:

• Point and go control strategy

• Needs to be robust against sensor noise and wind gusts

• Written in MATLAB

Controller Quadrotor

Sensors

Page 10: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

• Controllable pitch, roll, thrust, and yaw-rate.

• Low drag

• Internal stabilizing controls

Controller Quadrotor

Sensors

Quadrotor:

Page 11: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Sensors:

• GPS

• Compass

• Camera

• Quadrotor’s internal sensors

• Communicate wirelessly

Controller Quadrotor

Sensors

Page 12: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Compass, Power Circuit, and Anemometer

Student A

Page 13: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Compass

Wireless serial connection

Sends data to the laptop via XBee.

SIGNAL FROM THE COMPASS MUST BE INVERTED BEFORE IT IS FED TO THE XBEE

Mounted on the vehicle

Inverting Op-Amp

www.digi.com

www.ocean-server.com Images from the OpenClipArt Library and mangonha on Flickr.

Page 14: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Vehicle

CompassThe heading is saved directly to a variable in MATLAB. (Using a C++mex function called “compmat”).

CompassMATLAB

Heading Data

Commands

Page 15: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Power Board Circuit

5 V out

3 V out

12 V in

Big, but more reliable

Photo by Ed Halley.

Page 16: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

A small AC generator. The output voltage increases linearly to the wind speed.

Anemometer

Coded the Arduino so it could read the analog signal

www.nrgsystems.com

www.arduino.cc

Photo by Ed Halley.

Page 17: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Windy Environment

The data was collected on a windy day, within the same hour.

Page 18: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Rough SimulationPath of the vehicle

Wind direction is assumed to vary within this angle

Desired Position

Page 19: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Rough Simulation

Ideal path with no wind

Actual path due to wind

Command: Move to (10,-10).

The effect is quite significant –

This should be considered if we want to land on a small target

Page 20: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

GPS Hardware and Integration

Students C and E

Page 21: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

GPS Hardware

XBee CommunicationBack-up Battery

Retains configuration settingsQuadrotor Integration

5V from power circuit

Page 22: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Current GPS Set-up

PowerCircuit

3.3VWatch Battery

Diode

Images from the OpenClipArt Library and mangonha on Flickr.

Page 23: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

GPS Accuracy Tests (Stationary)

GPS Only ± 15mWAAS Enabled GPS ± 5m

http://www.gpsvisualizer.com/map?output_home

0 50 100 150 200 250 300-30

-20

-10

0

10

20

Time (sec)

X E

rror (

met

ers)

Error in X

0 50 100 150 200 250 300-20

-10

0

10

20

Time (sec)

Y E

rror (

met

ers)

Error in Y

GPS aloneGPS w/ WAAS

10m

Page 24: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Walk with GPS and Mock Controller

0 100 200 300 400 500 600-5

0

5

Timesteps

Roll

0 100 200 300 400 500 600-5

0

5

Timesteps

Pitch

10m

Right

Left

Forward

Back

http://www.gpsvisualizer.com/map?output_home

Page 25: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

10m

Proposed Region for Switch to Vision Control

http://www.gpsvisualizer.com/map?output_home

Page 26: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Waypoint Testing

Combines compass and GPSAdds heading

Use GPS to pick waypointsWalk quadrotor by following commands from controllerCheck for arrival at destinations

Page 27: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Waypoint Testing

http://www.gpsvisualizer.com/map?output_home

10m

Page 28: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

GPS on Flying Quadrotor

10m

Start

T=50 sec

http://www.gpsvisualizer.com/map?output_home

Page 29: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

The Next Step:

Read GPS signal through XBee communication

Maintain GPS settings using a watch battery

Integrate GPS hardware with Quadrotor

Transmit GPS signal from Quadrotor

Send GPS data to flight controller

Control quadrotor with GPS feedback

Accomplished:

Page 30: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Control System

Student B

Page 31: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Deliverables

Demonstrate closed loop control on a LTI model of the quadrotorDemonstrate closed loop control of the quadrotor

Page 32: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Control System DesignStrategy: Point and goHeading is set initially and is staticControlled variables

Yaw rate: points at the targetRoll: keeps on line to targetPitch: determines speed forward or backwardsThrust: offsets gravity and brings rotor to correct height

Measured variablesHeading: compassLatitude, Longitude positions: GPSHeight: internal pressure sensor

PD control

Page 33: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Model AssumptionsLinear Time InvariantSmall angle pitch and roll (less than 5 deg)Max, Min thrust = 1.25mg and 0.75mgRate of system: 4 HzAdded random noise to position data: +/- 5m Gaussian error in X,Y+/- 1m Gaussian error in height+/- 10 Gaussian error degree for heading

Page 34: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

FeaturesSimulation mode and communication modeWaypoints enabledMid-run user-activated terminateMid-run user-activated hover toggleFlight data written to a fileRecalculates route when overshoots

Page 35: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Future WorkDesign against bad data-packetsTune gains for the real quadrotor

Page 36: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

0 200 400 600 800 1000 1200-50

0

50

100

150

200

250

300

350Position in X,Y

X (m)

Y (m

) 0 200 400 600-500

0

500

1000Heading

Time (s)

Ang

le (d

egre

es)

0 200 400 600-5

0

5

10x 10-4 Pitch

Time (s)

Ang

le (d

egre

es)

0 200 400 600-4

-2

0

2

4x 10-5 Roll

Time (s)

Ang

le (d

egre

es)

0 200 400 600-10

0

10

20Height

Time (s)

Hei

ght (

m)

Simulator Performance

Page 37: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Simulator Performance

-200 0 200 400 600 800 1000 1200 1400-50

0

50

100

150

200

250

300

350

400

450Position in X,Y

X (m)

Y (m

) 0 1000 2000 3000-400

-200

0

200Heading

Time (s)

Ang

le (d

egre

es)

0 1000 2000 3000-1

-0.5

0

0.5

1x 10-3 Pitch

Time (s)

Ang

le (d

egre

es)

0 1000 2000 3000-10

-5

0

5x 10-5 Roll

Time (s)

Ang

le (d

egre

es)

0 1000 2000 3000-10

0

10

20Height

Time (s)

Hei

ght (

m)

Page 38: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

To Do Differently

Use a Cartesian coordinate control system instead of radialStart with a control system that only uses GPS

Page 39: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Yaw Test

Disturbed Quadrotor manuallyString contributed a restoring forceInternal controls prevented fast movements

Set-up:

quadrotor

compass

USB cable

ceilingstring

Image from the OpenClipArt Library.

Page 40: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Data

0 50 100 150 200 250 300 350 400-200

-150

-100

-50

0

50

100

150

200Heading

Time (s)

Hea

ding

(deg

rees

)

Page 41: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Results

Steady state errorGains too lowSteady disturbance from the string

30 second settling time

Page 42: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Arduino Microcontroller and Communication

Student D

Page 43: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Mega ArduinoOn board controlNo need for XBeesSuccessful compass communicationSuccessful camera communication

Courtesy of Arduino.cc. Used with permission.

Page 44: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Helped with CMUCam communicationFailed to successfully communicate with quadrotorHelped others with programming

Other Work

Page 45: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Next StepsContinue work with Mega ArduinoRead more about serial communication

What Could’ve Been Done Differently

Research more early onBetter use of available resources (mentors)

Page 46: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

CMUCam and Image Processing

Student F

Page 47: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Image Processing Goals

Take pictures of a predetermined location and also along a reference flight pathTrack a landing target at a known locationVisually servo to the target using feedback from the image

Page 48: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009
Page 49: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Finding Distances in X, Y, and Z

Find target size as fraction of pixels in the image at known rangesWith a target of known size, we can find a parameter that converts pixels to distance at a known range

Page 50: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009
Page 51: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009
Page 52: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

T Packets

T 84 132 4 1 172 250 255 12

Indicates a color tracking data packet

Centroid of tracked data

Bounding box coordinates

Number of pixels that match the tracked color Confidence

Page 53: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

What Went Wrong

Neither CMUCam is ideal for our missionWireless communication never really worked

XBee drops too many packetsGPS waypoint tracking did not workRan out of time

Page 54: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

What We Could Have Done DifferentlyProblem

Worked independently—not the most effectiveSolution

Weekly group meetingsProblem

Strategy depended on all hardware components workingSolution

Design a simpler, more independent systemProblem

InexperienceSolution

Take more advantage of our resources

Page 55: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

Questions?

Page 56: Group 1: Autonomous Navigation of a Quadrotor Helicopter ... · Autonomous Navigation of a Quadrotor Helicopter Using GPS and Vision Control Group 1 December 10, 2009

MIT OpenCourseWarehttp://ocw.mit.edu

2.017J Design of Electromechanical Robotic Systems Fall 2009

For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.