abstract predictive tracking algorithm visual tracking of an unmanned aerial vehicle (uav) using gps...

1
-90 -85 -80 -75 -70 -65 -60 -55 -50 -45 -40 -35 -30 -25 -20 -15 -10 -5 0 110 115 120 125 130 135 140 145 150 155 160 165 170 175 180 Tim e (s) Tilt Angle TILT TILT P RE DICT 1 TILT PRE DICT 5 0 10 20 30 40 50 60 70 80 90 100 40 45 50 55 60 65 70 75 80 85 90 Tim e (s) Norm alizedPanAngle PAN PAN PREDICT 1 PA N P RE D IC T 5 ABSTRACT ABSTRACT PREDICTIVE TRACKING ALGORITHM PREDICTIVE TRACKING ALGORITHM Visual Visual Tracking of Tracking of an Unmanned an Unmanned Aerial Aerial Vehicle (UAV) Vehicle (UAV) Using GPS Using GPS Samuel S. Starr Samuel S. Starr Emir Tumen Emir Tumen Advisor: Dr. George Advisor: Dr. George Pappas Pappas Special Thanks: Ben Grocholsky, Jim Special Thanks: Ben Grocholsky, Jim Keller Keller SOFTWARE FLOWCHART SOFTWARE FLOWCHART The project provides a tracking system The project provides a tracking system for Unmanned Aerial Vehicles (UAVs), for Unmanned Aerial Vehicles (UAVs), which are used for research and which are used for research and security purposes and require real security purposes and require real time control. Giving the camera the time control. Giving the camera the ability to follow an object, and ability to follow an object, and limiting the margin of error in the limiting the margin of error in the visual tracking output, the project visual tracking output, the project aims to satisfy the need of an aims to satisfy the need of an automated surveillance for UAVs at the automated surveillance for UAVs at the University of Pennsylvania. In the University of Pennsylvania. In the chosen approach, the GPS information chosen approach, the GPS information from the UAV is collected and stored from the UAV is collected and stored in the ground base station PC. The GPS in the ground base station PC. The GPS data is then fed to the Pan-Tilt data is then fed to the Pan-Tilt unit’s control PC, which processes unit’s control PC, which processes this information and converts it to this information and converts it to pan and tilt values by using a pan and tilt values by using a geometrically based algorithm. geometrically based algorithm. Finally, two servomotors which accept Finally, two servomotors which accept these pan and tilt values adjust to these pan and tilt values adjust to point the camera in the UAV’s point the camera in the UAV’s direction. The current implementation direction. The current implementation of the system is well suited to any of the system is well suited to any visual output device such as monitors, visual output device such as monitors, televisions or webcams for network televisions or webcams for network sharing, and for real-time visual sharing, and for real-time visual tracking of any GPS transmitting tracking of any GPS transmitting object in a 360° field. object in a 360° field. Group #6 UAV G PS D ata Feed GPS location of Cam era B ase Synchonized at Beginning RS-435 or802.11 connection O utputto R obotic P T M echanism via Serial Cable (R S-232) MicrosoftVisualC++ C oding ofTracking A lgorithm (Sim ple orPredictive) PTU Tracker.D LL (Unm anaged D LL File) PTUW rapper.DLL (Interface w ith R O CIm odule) RO C IInterface (A ccess to allG PS/Position feeds G R A SP Lab has) C onversion to U niversalTransverse M ercator(UTM)Perform ed RO CIM odule Demo Times: Demo Times: 1030h, 1100h, 1130h, 1030h, 1100h, 1130h, 1300h 1300h PENN UAV HARDWARE OVERVIEW PENN UAV HARDWARE OVERVIEW CloudCap Piccolo Onboard Avionics CloudCap Piccolo Onboard Avionics (10 Hz GPS, 100Hz IMU) (10 Hz GPS, 100Hz IMU) ¼ Scale Piper J3 Cub UAVs ¼ Scale Piper J3 Cub UAVs Position D ifferences C alculated dLat,dLong,dA lt Scales into Pan and TiltC om m ands forR obotic PT M echanism M ultiplies D egree calculations by 19.44445 C alculation ofPan A ngle atan(sqrt(C Lat 2 + C Long 2 )/C A lt) C alculation ofTilt A ngle atan(C Lat/C Long) Prediction A lgorithm U sing Position and Velocity D ata to PredictFuture Location ofU A V U A V Position & Velocity D ata Feed Prediction O ffsetC alculated Vlat/Freq,Vlong/Freq, Valt/Freq C alculate C ontrol/Predicted Position Vector C Lat= dLat+ Vlat/(k*Freq),C Long = dLong + Vlong/ (k*Freq),C A lt= dA lt+ Valt/(k*Freq) Look-Ahead Time = LAT = 1/(k*Freq of Data) Assuming No System Delay : k=1 LAT = 1/Freq For Our System : LAT = Approximate Net System Delay (1 second) SYSTEM FLOWCHART SYSTEM FLOWCHART Provide a live visual video output of an object that provides three-dimensional GPS position and velocity data. Operate in a look-ahead fashion in which the system will anticipate where the vehicle is located in the one-second future. Interface the camera output with any type of visual display (both IN and OUT) Provide output visible throughout the entire operation of the UAV. (max. 30 minutes) Tracking algorithm is compatible with the maximum velocity of a UAV. (20 meters/second) SYSTEM SPECIFICATIONS SYSTEM SPECIFICATIONS The Predictive Tracking Algorithm was originally derived using vector theory. While this approach could have worked, it proved unnecessarily complex. An alternative was a geocentric approach, which proved to be too sensitive to any changes in latitude and longitude. The simple geometric approach adopted eliminates substantial sensitivity errors, but is limited in that it works best in close range and only once GPS is converted to UTM. It is the conversion to UTM that allows any geometric algorithm to work precisely. The Look Ahead Time can be adjusted to predict the position of the moving object within the delay time. Error in N orm alized P an A ngles (A ctualvs.P redicted) -100 -90 -80 -70 -60 -50 -40 -30 -20 -10 0 10 20 30 40 50 60 70 80 90 100 0 15 30 45 60 75 90 105 120 135 150 165 180 195 210 225 240 255 270 285 300 Tim e (s) N orm alized P an A ngle PAN P A N PR E D IC T 1 P A N P R E D IC T 5 Error in TiltA ngles (A ctualvs.P redicted) -90 -85 -80 -75 -70 -65 -60 -55 -50 -45 -40 -35 -30 -25 -20 -15 -10 -5 0 0 15 30 45 60 75 90 105 120 135 150 165 180 195 210 225 240 255 270 285 300 Tim e (s) TiltA ngle TILT TILT PR ED IC T 1 TILT P REDIC T 5 Sources of Predictive Error Increase in UAV Velocity • Increase in System Delay • Quality of GPS Data • Mechanical System Limitations SIMULATION TESTING OF ALGORITHM ERROR SIMULATION TESTING OF ALGORITHM ERROR UAV DATA G EO M ETR IC ALG O RITH M [lat d ,long d ,alt d ], [lat v ,long v ,alt v ] [P d , T d ] Video Output [P f , T f ] [lat p ,long p ,alt p ] U p to 10 H z Look Ahead Time [LAT] (sec.) Error% 0.2 1 5 PAN 0.8900 4.3860 35.9149 TILT 0.2828 1.4425 7.6173 Based on the above graphs, and Based on the above graphs, and the adjacent chart, the the adjacent chart, the algorithm that minimizes error algorithm that minimizes error for system delay and is less for system delay and is less sensitive to changes in UAV sensitive to changes in UAV velocity is when LAT is set velocity is when LAT is set equal to the delay on the order equal to the delay on the order of 1 second. of 1 second.

Upload: bathsheba-wheeler

Post on 20-Jan-2016

246 views

Category:

Documents


11 download

TRANSCRIPT

Page 1: ABSTRACT PREDICTIVE TRACKING ALGORITHM Visual Tracking of an Unmanned Aerial Vehicle (UAV) Using GPS Samuel S. Starr Emir Tumen Advisor: Dr. George Pappas

Error in Tilt Angles (Actual vs. Predicted)

-90

-85

-80

-75

-70

-65

-60

-55

-50

-45

-40

-35

-30

-25

-20

-15

-10

-5

0

110 115 120 125 130 135 140 145 150 155 160 165 170 175 180

Time (s)

Tilt

Ang

le

TILT TILT PREDICT 1 TILT PREDICT 5

Error in Normalized Pan Angles (Actual vs. Predicted)

0

10

20

30

40

50

60

70

80

90

100

40 45 50 55 60 65 70 75 80 85 90

Time (s)

Nor

mal

ized

Pan

Ang

le

PAN PAN PREDICT 1 PAN PREDICT 5

ABSTRACTABSTRACT

PREDICTIVE TRACKING ALGORITHMPREDICTIVE TRACKING ALGORITHM

Visual Visual Tracking of an Tracking of an

Unmanned Unmanned Aerial Vehicle Aerial Vehicle (UAV) Using (UAV) Using

GPSGPSSamuel S. StarrSamuel S. Starr

Emir TumenEmir Tumen

Advisor: Dr. George PappasAdvisor: Dr. George PappasSpecial Thanks: Ben Grocholsky, Jim KellerSpecial Thanks: Ben Grocholsky, Jim Keller

SOFTWARE FLOWCHARTSOFTWARE FLOWCHART

The project provides a tracking system for The project provides a tracking system for Unmanned Aerial Vehicles (UAVs), which are Unmanned Aerial Vehicles (UAVs), which are used for research and security purposes and used for research and security purposes and require real time control. Giving the camera the require real time control. Giving the camera the ability to follow an object, and limiting the ability to follow an object, and limiting the margin of error in the visual tracking output, the margin of error in the visual tracking output, the project aims to satisfy the need of an automated project aims to satisfy the need of an automated surveillance for UAVs at the University of surveillance for UAVs at the University of Pennsylvania. In the chosen approach, the GPS Pennsylvania. In the chosen approach, the GPS information from the UAV is collected and information from the UAV is collected and stored in the ground base station PC. The GPS stored in the ground base station PC. The GPS data is then fed to the Pan-Tilt unit’s control PC, data is then fed to the Pan-Tilt unit’s control PC, which processes this information and converts which processes this information and converts it to pan and tilt values by using a geometrically it to pan and tilt values by using a geometrically based algorithm. Finally, two servomotors based algorithm. Finally, two servomotors which accept these pan and tilt values adjust to which accept these pan and tilt values adjust to point the camera in the UAV’s direction. The point the camera in the UAV’s direction. The current implementation of the system is well current implementation of the system is well suited to any visual output device such as suited to any visual output device such as monitors, televisions or webcams for network monitors, televisions or webcams for network sharing, and for real-time visual tracking of any sharing, and for real-time visual tracking of any GPS transmitting object in a 360° field.GPS transmitting object in a 360° field.

Group #6

UAV GPS DataFeed

GPSlocation of

CameraBase

Synchonizedat

BeginningRS-435 or 802.11 connection

Output to Robotic PT Mechanism via SerialCable (RS-232)

Microsoft Visual C++Coding of Tracking

Algorithm(Simple or Predictive)

PTUTracker.DLL(Unmanaged DLL File)

PTUWrapper.DLL(Interface with ROCI module)

ROCI Interface (Access to all GPS/Position feeds GRASP Lab has)

Conversion to Universal Transverse Mercator (UTM) Performed

ROCI Module

UAV GPS DataFeed

GPSlocation of

CameraBase

Synchonizedat

BeginningRS-435 or 802.11 connection

Output to Robotic PT Mechanism via SerialCable (RS-232)

Microsoft Visual C++Coding of Tracking

Algorithm(Simple or Predictive)

PTUTracker.DLL(Unmanaged DLL File)

PTUWrapper.DLL(Interface with ROCI module)

ROCI Interface (Access to all GPS/Position feeds GRASP Lab has)

Conversion to Universal Transverse Mercator (UTM) Performed

ROCI Module

Demo Times:Demo Times: 1030h, 1100h, 1130h, 1300h1030h, 1100h, 1130h, 1300h

PENN UAV HARDWARE OVERVIEWPENN UAV HARDWARE OVERVIEW

CloudCap Piccolo Onboard AvionicsCloudCap Piccolo Onboard Avionics (10 Hz GPS, 100Hz IMU)(10 Hz GPS, 100Hz IMU)

¼ Scale Piper J3 Cub UAVs¼ Scale Piper J3 Cub UAVs

Position DifferencesCalculated

dLat, dLong, dAlt

Scales into Pan and Tilt Commands for RoboticPT Mechanism

Multiplies Degree calculations by 19.44445

Calculation of PanAngle

atan(sqrt(CLat2 +CLong2)/CAlt)

Calculation of TiltAngle

atan(CLat/CLong)

Prediction AlgorithmUsing Position and Velocity Data to

Predict Future Location of UAV

UAV Position & VelocityData Feed

Prediction Offset Calculated

Vlat/Freq, Vlong/Freq,Valt/Freq

Calculate Control/Predicted Position VectorCLat = dLat + Vlat/(k*Freq), CLong = dLong + Vlong/

(k*Freq), CAlt = dAlt + Valt/(k*Freq)

Look-Ahead Time = LAT = 1/(k*Freq of Data)

Assuming No System Delay: k=1 LAT = 1/FreqFor Our System: LAT = Approximate Net System Delay

(1 second)

SYSTEM FLOWCHARTSYSTEM FLOWCHART

• Provide a live visual video output of an object that provides three-dimensional GPS position and velocity data.• Operate in a look-ahead fashion in which the system will anticipate where the vehicle is located in the one-second future.• Interface the camera output with any type of visual display (both IN and OUT)• Provide output visible throughout the entire operation of the UAV. (max. 30 minutes)• Tracking algorithm is compatible with the maximum velocity of a UAV. (20 meters/second)

SYSTEM SPECIFICATIONSSYSTEM SPECIFICATIONS

The Predictive Tracking Algorithm was originally derived using vector theory. While this approach could have worked, it proved unnecessarily complex. An alternative was a geocentric approach, which proved to be too sensitive to any changes in latitude and longitude. The simple geometric approach adopted eliminates substantial sensitivity

errors, but is limited in that it works best in close range and only once GPS is

converted to UTM. It is the conversion to UTM that allows any geometric algorithm to work precisely. The Look Ahead Time can be adjusted to predict the position of the

moving object within the delay time.

Error in Normalized Pan Angles (Actual vs. Predicted)

-100

-90

-80

-70

-60

-50

-40

-30

-20

-10

0

10

20

30

40

50

60

70

80

90

100

0 15 30 45 60 75 90 105 120 135 150 165 180 195 210 225 240 255 270 285 300

Time (s)

No

rma

lize

d P

an

An

gle

PAN PAN PREDICT 1 PAN PREDICT 5

Error in Tilt Angles (Actual vs. Predicted)

-90

-85

-80

-75

-70

-65

-60

-55

-50

-45

-40

-35

-30

-25

-20

-15

-10

-5

0

0 15 30 45 60 75 90 105 120 135 150 165 180 195 210 225 240 255 270 285 300

Time (s)

Tilt

An

gle

TILT TILT PREDICT 1 TILT PREDICT 5

Sources of Predictive Error

• Increase in UAV Velocity• Increase in System Delay

• Quality of GPS Data• Mechanical System

Limitations

SIMULATION TESTING OF ALGORITHM ERRORSIMULATION TESTING OF ALGORITHM ERROR

UAV DATA

GEOMETRICALGORITHM

[latd, longd, altd],[latv, longv, altv]

[Pd, Td]

VideoOutput

[Pf, Tf][latp, longp, altp]

Up to10 Hz

Look Ahead Time [LAT] (sec.)

Error% 0.2 1 5

PAN 0.8900 4.3860 35.9149

TILT 0.2828 1.4425 7.6173

Based on the above graphs, and the Based on the above graphs, and the adjacent chart, the algorithm that adjacent chart, the algorithm that

minimizes error for system delay and is minimizes error for system delay and is less sensitive to changes in UAV velocity is less sensitive to changes in UAV velocity is when LAT is set equal to the delay on the when LAT is set equal to the delay on the

order of 1 second.order of 1 second.