Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture...

42
1 Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal Kothari Department of Aerospace Engineering Indian Institute of Technology Kanpur Kanpur 208016 [email protected] 9460255282 Class Timing: M-12:00-13:15 T-09:00-10:15 TA: Mr. Aalap A Saha

Transcript of Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture...

Page 1: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

1

Department of Aerospace Engineering

IIT Kanpur, India

Autonomous Navigation

Mangal Kothari

Department of Aerospace Engineering

Indian Institute of Technology Kanpur

Kanpur – 208016

[email protected]

9460255282

Class Timing: M-12:00-13:15

T-09:00-10:15

TA: Mr. Aalap A Saha

Page 2: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

2

Autonomous Navigation

Page 3: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

3

Course Content

• Introduction: practical examples and challenges –

IGVC, SAVe, Mehar Baba competition

• ROS and state estimation (Bayesian filter-Kalman

Filter, Extended Kalman Filter, Unscented Kalman

Filter), Nonparametric filter (particle filter),

Localization, SLAM, Cooperative localization

• Path planning algorithms: Deterministic and

probabilistic algorithms, Task allocation algorithms

• Vision and communication systems

• Topics can be added and removed based on

feedback!!!

Page 4: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

4

Reference

• Probabilistic Robotics. Sebastian Thrun, Wolfram

Burgard and Dieter Fox. MIT press, 2005.

• Principles of Robot Motion: Theory, Algorithms and

Implementations, Howie Choset et al.. MIT Press,

2005.

• State Estimation for Robotics: Timothy D. Barfoot.

Cambridge University Press, 2017.

• A Gentle Introduction to ROS: Jason M. O’Kane.

2013.

Page 5: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

5

Evaluation

• Assignment – 40%

• Project (maximum 3 students) – 40%

• Midterm exam – 10%

• Quizzes (after midsem) – 10%

• Plagiarism – de-register/failed

Page 6: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

6

Problem Statement

Page 7: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

7

Specifications

• Length: Min 3 feet, Max 7 feet

• Width: Min 2 feet, Max 4 feet

• Height: Max 6 feet

• Propulsion: Battery powered

• Average speed: 1 mph

• Minimum speed: 1 mph for the first 44 feet

• Maximum speed: 5 mph

• Mechanical E stop: Hardware base

• Wireless stop: Effective with in 100 feet

• Safety light: Must be on when vehicle is on

• Payload: 20 pounds, 18”x8”x8”

Page 8: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

8

Qualification

• Mechanical stop and E stop evaluation

• Lane following (with U turn)

• Obstacle avoidance

• Waypoint following

Page 9: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

9

Intelligent Ground Vehicle

Competition (IGVC)

IGVC 2018 GPS Waypoints

North 42.6791159989 -83.1949250546Midpoint 42.6789603912 -83.1951132036South 42.6788151958 -83.1949093082

Practice1 42.6783260449 -83.1946867275Practice2 42.6781974127 -83.1949338822

Qualification1 42.6782191223 -83.1955080989 Qualification2 42.6778987274 -83.1954820799

Page 10: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

10

Vehicle Model

• Compact design

• Switchable vehicle design

• Spring based suspension system

• Height and angle adjustable camera mount

Page 11: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

11

System Architecture

Page 12: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

12

Robot Operating Systems

• A meta operating system for robot

• A collection of packaging, software building tools

• An architecture for distributed interprocess/ inter-

machine communication and configuration

• A language-independent architecture (C++,

python, lisp, java, and more)

Page 13: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

13

ROS Communication Layer:

ROS Core

• ROS master

– Centralized communication server based on XML and

RPC

– Registers and looks up names for ROS graph resources

• Nodes

– Distributed process over the network (executable runs a

separate thread)

– Serve as source and sink for data

• Topics

– Asynchronous many-to-many communication

– Publish and subscribe structure

Page 14: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

14

Asynchronous Distributed

Communication

ROS Master

Manage communication among nodes

Every node register when at start up with the master

$ roscore

Page 15: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

15

ROS Package

Page 16: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

16

Software Architecture

Page 17: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

17

Lane Detection: Computer

Vision

Page 18: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

18

Pinhole Camera Model

Page 19: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

19

Inverse Perspective

Transformation

Lane following transformation

𝑋𝑓, 𝑌𝑓 , 𝑍𝑓 ≡𝑥𝑓

𝑠,𝑦𝑓

𝑠, 0

𝑋𝑜, 𝑌𝑜 , 𝑍𝑜 ≡ 𝑋𝑓 − 𝑂𝑋, 𝑌𝑓−𝑂𝑌, 𝑍𝑓

𝑋𝑐, 𝑌𝑐 , 𝑍𝑐≡ ൫𝑋𝑜, ሺ𝐻 + 𝑍𝑜) cos 𝜃 + 𝑌

𝑜si nሺ 𝜃), ሺ𝐻

𝑥𝑐 , 𝑦𝑐 ≡𝑋𝑐𝑍𝑐

𝑓𝑥 + 𝑐𝑥,𝑌𝑐𝑍𝑐

𝑓𝑦 + 𝑐𝑦

Page 20: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

20

Top View Transformation

𝑥𝑐 , 𝑦𝑐 ≡

𝑥𝑓𝑠−𝑂𝑋

𝐻 sin 𝜃 −𝑦𝑓𝑠−𝑂𝑌 cos 𝜃

𝑓𝑥 + 𝑐𝑥,ቁ𝐻 cos 𝜃 +

𝑦𝑓𝑠−𝑂𝑌 si nሺ 𝜃

𝐻 sin 𝜃 −𝑦𝑓𝑠−𝑂𝑌 cos 𝜃

𝑓𝑦 + 𝑐𝑦

OpenCV implementation

ThiRef: https://docs.opencv.org/2.4/modules/imgproc/doc/geometric_transformations.html#warpperspective

Page 21: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

21

Super-Pixel Segmentation

Reducing the dimensionality of data without loss of important information

Page 22: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

22

Super-Pixel Segmentation

Performing an unsupervied algorithm for image

clustering

Using an open Source and GPU acclerated

implementation of SLIC (Simple Linear Iterative

Clustering )

SLIC divides the image into segments based on

5 dimensional distance

Three dimensions are for RGB colors and 2

dimensions are for XY coordinates

Page 23: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

23

Lane Detection

Page 24: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

24

Obstacle Detection

Obstacle detection is done using the depth from

stereo camera

Alternatively, Lidar is used for avoidance

Page 25: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

25

Indoor Navigation

Page 26: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

26

Simultaneous Localization and Mapping

Page 27: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

27

Simultaneous Localization and Mapping

UKF

Cartographer

Odometry

Page 28: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

28

Motion Planning and Control

Page 29: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

29

Sampling-based Algorithm

Path planning using modified RRT

Page 30: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

30

Chance constrained RRT (CC-RRT)

Algorithm

• Grow a tree of state distributions for a given time

• sample reference path (similar to waypoint selection)

• generate trajectory for the sampled path (use a control/guidance law to generate trajectory)

• evaluate the feasibility of the generated trajectory (using chance constraint)

• include the path in the existing tree if it is feasible

CC-RRT: Tree expansion

Closed-loop prediction (a priori distribution)

30

Page 31: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

31

Robust:ACL@MIT

Page 32: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

32

Kinematic Model: Ackerman Steering

Explicit steering vehicle model

Page 33: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

33

Skid Steering Model

Page 34: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

34

Path Following Problem

• Calculate lateral acceleration

Page 35: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

35

kinematic model

Path following law: pursuit and LOS components

Error dynamics

Mathematical Formulation

Page 36: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

36

Straight Line following

Page 37: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

37

Circle following

Page 38: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

38

SLAM and Motion Planning

Page 39: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

39

Vision based Autonomous

Tracking and Landing

Page 40: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

40

Acknowledgement

• IGVC Team

• Harsh Sinha, Shubh Gupta, Swati Gupta, Deepak

Gangwar

• Aalap Saha, Hemanth Bollamreddi, Abhishek

Yadav, Vaibhav Agarwal, Vardhan Gupta

Page 41: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal

41

Thanks

Page 42: Department of Aerospace Engineering IIT Kanpur, … › assets › winter18 › slides › Lecture 1...Department of Aerospace Engineering IIT Kanpur, India Autonomous Navigation Mangal