distance sensors: sound, light and vision · structure motivation distance sensors sound light...

39
Distance Sensors: Sound, Light and Vision THOMAS MAIER SEMINAR: INTELLIGENT ROBOTICS DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 1

Upload: lehuong

Post on 18-Aug-2019

230 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors: Sound, Light and VisionTHOMAS MAIER

SEMINAR: INTELLIGENT ROBOTICS

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 1

Page 2: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

StructureMotivation

Distance SensorsSoundLightVision

Common Applications

Limitations

Conclusion

Sources

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 2

Page 3: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

MotivationDistance-SensorsUsed in Cars

Parking assistant

Autonomous driving

Used by different Robots

To detect obstacles and avoid crashes

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 3

Page 4: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - SoundUltrasonic sensor

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 4

Obstacle

Transmitter

Receiver

ReceiverSensor

Ultrasonic wave

Reflection of wave

Source: [1]

Page 5: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - SoundTime of Flight measurementTime between transmission and detection

Distance (c is velocity, approx. 340 m/s)

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 5

T

R

Time of flight t

𝐷 =𝑡

2𝑐

Page 6: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Soundlow sensitivity to environmental conditionsSpeed of sound depends on temperature+0.17% / °C 0.578m/s / °C

Can operate in dusty and dirty environments

Measurement range 0-2.5 Meters with precision of 3cm

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 6

Page 7: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 7

infrared LED

phototransistor

reflection

Infrared sensor

Page 8: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 8

Three steps for Measuring Distance

1. Determine reflecting properties of obstacles

2. Determine angle of obstacle relative to the sensor

3. Compute the distance using informations of step 1 and 2

Page 9: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 9

Determine reflecting properties of obstacles

Phong ModellSurfaces scatter, absorb and reflect light in different portions

Simplification of these effects

Intensity of reflection 𝐼 = 𝐶0 𝜇𝑠 ∙ 𝜇𝑛 + 𝐶1 𝜇𝑟 ∙ 𝜇𝑣𝑛 + 𝐶2

Page 10: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 10

Intensity of reflection 𝐼 = 𝐶0 𝜇𝑠 ∙ 𝜇𝑛 + 𝐶1 𝜇𝑟 ∙ 𝜇𝑣𝑛 + 𝐶2

Four constants 𝐶0, 𝐶1, 𝐶2 and 𝑛

Four vectors

Light source: 𝜇𝑠Normal vector: 𝜇𝑛Reflected light: 𝜇𝑟Viewing vector: 𝜇𝑣

Source: [4]

Page 11: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

𝜇𝑟𝜇𝑠

𝜇𝑛

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 11

Intensity of reflection 𝐼 = 𝐶0 𝜇𝑠 ∙ 𝜇𝑛 + 𝐶1 𝜇𝑟 ∙ 𝜇𝑣𝑛 + 𝐶2

Asume: reveiver and transmitter are in the same position⇒ 𝐼 = 𝐶0cos(𝛼) + 𝐶1 cos

𝑛 2𝛼 + 𝐶2

Traveled distance 2𝑙expressed in terms of 𝑑, 𝛼 and radius of the sensor (𝑟)

𝑙 =𝑑

cos 𝛼+ 𝑟

1

cos 𝛼− 1

Source: [4]

infrared LED + phototransistor

𝑙

Page 12: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

𝜇𝑟𝜇𝑠

𝜇𝑛

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 12

Energy E absorbed by the phototransistor depends onIntensity of reflection 𝐼

Traveled light distance 2𝑙

Area of the sensor 𝐴

𝐸 =𝐼𝐴

2𝑙 2

Source: [4]

infrared LED + phototransistor

𝑙

Page 13: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

𝜇𝑟𝜇𝑠

𝜇𝑛

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 13

𝐸 =𝐼𝐴

2𝑙 2

𝐼 = 𝐶0cos(𝛼) + 𝐶1 cos𝑛 2𝛼 + 𝐶2

𝑙 =𝑑

cos 𝛼+ 𝑟

1

cos 𝛼− 1

Assume that 𝐶2 = 0, 𝑛 = 1 and 𝐴 is constant

⇒ 𝐸 =𝐶0 cos 𝛼 +𝐶1 cos 2𝛼

𝑑

cos 𝛼+𝑟

1

cos 𝛼−1

2

Source: [4]

infrared LED + phototransistor

𝑙

Page 14: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 14

⇒ 𝐸 =𝐶0 cos 𝛼 +𝐶1 cos 2𝛼

𝑑

cos 𝛼+𝑟

1

cos 𝛼−1

2

𝐶0 and 𝐶1 indicate the infrared characteristics of an obstacle

Determine by taking infrared reading at known distances(𝑑) and angles 𝛼

Page 15: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 15

Determine angle of obstacle relative to the sensorMaximum reading 𝐸 will occur at 𝛼 = 0

Source: [4]

E.g. Data collected from a flat surface 10 cm from sensor atdifferent angles

Page 16: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 16

Compute the distance using informations of step 1 and 2

𝐸 =𝐶0 cos 𝛼 +𝐶1 cos 2𝛼

𝑑

cos 𝛼+𝑟

1

cos 𝛼−1

2

⇔ 𝑑 = 𝑟 cos 𝛼 − 1 + cos 𝛼𝐶0 cos 𝛼 +𝐶1 cos 2𝛼

𝐸

Page 17: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 17

Faster response times than ultrasonic

Dependence on the reflectance of surrounding objects

Measurement range 5cm – 10m

Precision less than 1cm (measurement range up to 6m)

Page 18: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionKinect 1People are able to interact in a game with their body

Reconstructed a 3D Model of the environment

Interprets movements

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 18

Source: [IMG1]

Page 19: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionContains a RGB camera

Depth sensorInfrared projector

Infrared camera

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 19

Source: [6]

Page 20: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionTechnique of structured light

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 20

Source: [6]

Page 21: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionTechnique of structured light

The sensor knowsRelative geometry between IR projector and IR camera

Dot pattern

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 21

Source: [6]

Page 22: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Vision

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 22

Source: [IMG4]

IF Camera IF Projector

A single frame

Page 23: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionDepth image

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 23

Source: [6]

Page 24: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionKinect 2

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 24

Source: [IMG2]

Page 25: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionKinect 2Uses Time of Flight

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 25

Source: [IMG3]

Page 26: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionParanormal ActivityKinect can see imaginary friends

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 26

Source: [IMG3]

Page 27: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Common ApplicationsUltrasonic sensorsCarsMedicineUnderwater

Infrared sensorsNight Vision DevicesAstronomy

KinectVirtual Realitiy Interactions3D Scans

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 27

Page 28: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

LimitationsUltrasonic sensorsUseless in space

requires a minimum target surface area

Targets of low density may be difficult to sense

Infrared sensorsNeeds clear area between sufrace and phototransistor

KinectSimilar to infrared

Cant use in dark environments

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 28

Page 29: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

ConclusionUltrasonic sensorslow sensitivity to environmental conditions

Infrared sensorsFaster than ultrasonic sensorsHigher dependency on environmentNeeds calibration

KinectState-of-the-artUsed in gaming and for 3D-ScansIs able to detect movements

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 29

Page 30: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Literature[1] Title: Ultrasonic Distance Measurement for Linear and Angular Position Control, Author: Daniele Marioli, Emilio Sardini, Andrea

Taroni, published by: IEEE Transactions on Instrumentation and Measurement. Vol. 37 No. 4, Dec 1988

[2]Title: Ultrasonic Distance Measurement, Author: Ju Yangyan, published by: XX International conference for students and young scientists <<MODERN TECHNIQUE AND TECHNOLOGIES>>. Section 2

[3]Title: Using infrared sensors for distance measurement in mobile robots, Author: G.Benet, F. Blanes, J.E. Simó, P. Pérez, published by Robotics and Autonomous Systems 1006 (2002) 1–12, Mar 2002

[4]Title: Using Ultrasonic and Infrared Sensors for Distance Measurement, Author: Tarek Mohammad, published by: International Journal of Mechanical, Aerospace, Industrial, Mechatronic and Manufacturing Engineering Vol:3, No:3, 2009

[5]Title: Distance measuring based on stereoscopic pictures, Author: Jernej Mrovlje, Damir Vrancic, published by 9th International PhD Workshop on Systems and Control: Young Generation Viewpoint, Oct 2003

[6]Title: Microsoft Kinect Sensor and Its Effect, Author: Zhengyou Zhang, published by IEEE MultiMedia Volume 19, Apr 2012

[7] http://www.ab.com/en/epub/catalogs/12772/6543185/12041221/12041229/Ultrasonic-Advantages-and-Disadvantages.html(09.11.2016)

[8] http://www.hongkiat.com/blog/innovative-uses-kinect/ (09.11.2016)

[9] http://www.azosensors.com/article.aspx?ArticleID=339 (09.11.2016)

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 30

Page 31: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Images/videos[IMG1] https://de.wikipedia.org/wiki/Kinect#/media/File:Xbox-360-Kinect-Standalone.png(09.11.2016)

[IMG2] https://www.extremetech.com/wp-content/uploads/2013/09/Kinect-640x353.png(09.11.2016)

[IMG3] https://social.msdn.microsoft.com/Forums/getfile/500812 (09.11.2016)

[IMG4] http://lau.engineering.uky.edu/files/2013/11/Slide2.jpg (09.11.2016)

[VID1] https://www.youtube.com/watch?v=kDgWm8xJ-As (09.11.2016)

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 31

Page 32: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionStereoscopyTwo cameras

Create an illusion of depth (3D Images)

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 32

Source: [5]

Page 33: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionStereoscopy

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 33

Source: [5]

Page 34: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Vision𝜑0 horizontal angle of view

𝜑1,𝜑2angle between optical achsis and object

Distance between cameras𝐵 = 𝐵1 + 𝐵2𝐵 = 𝐷 tan 𝜑1 + 𝐷 tan 𝜑2

Distance between cameras and object

𝐷 =𝐵

tan 𝜑1 +tan 𝜑2

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 34

Source: [5]

Page 35: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionNumber of horizontal pixels 𝑥0

𝑥1𝑥02

=tan 𝜑1

tan(𝜑02)⇔ tan 𝜑1 =

2𝑥1 tan𝜙02

𝑥0

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 35

Source: [5]

Page 36: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionNumber of horizontal pixels 𝑥0

𝑥1𝑥02

=tan 𝜑1

tan(𝜑02)⇔ tan 𝜑1 =

2𝑥1 tan𝜙02

𝑥0

−𝑥2𝑥02

=tan 𝜑2

tan(𝜑02)⇔ tan 𝜑2 =

−2𝑥2 tan𝜙02

𝑥0

𝐷 =𝐵

tan 𝜑1 +tan 𝜑2=

𝐵𝑥0

2 tan𝜑02

∙(𝑥1−𝑥2)

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 36

Source: [5]

Page 37: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - Vision𝐷 =

𝐵𝑥0

2 tan𝜑02

∙(𝑥1−𝑥2)

To compute 𝐷 we needDistance 𝐵

Number of horizontal pixels 𝑥0Diff. between object in both pictures (𝑥1 − 𝑥2)

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 37

Source: [5]

Page 38: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionAccuracy

Marker at 10m, 20m, …, 60m

Distance 𝐵 = 0.7𝑚

Measured at 4 different locations

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 38

Source: [5]

Page 39: Distance Sensors: Sound, Light and Vision · Structure Motivation Distance Sensors Sound Light Vision Common Applications Limitations Conclusion Sources DISTANCE SENSORS: SOUND, LIGHT

Distance Sensors - VisionAccuracy

DISTANCE SENSORS: SOUND, LIGHT AND VISION - THOMAS MAIER 39

Source: [5]

Location 1 Location 2 Location 3 Location 4 Avg. Distance

Market at

10,18m 9,84m 9,96m 10,13m 10,03m 10m

20,44m 20,41m 20,41m 19,86m 20,28m 20m

30,74m 30,33m 31,25m 30,71m 30,76m 30m

41,12m 40,84m 39,73m 40,05m 40,44m 40m

52,30m 52,05m 53,85m 50,07m 52,07m 50m

61,57m 61,40m 61,75m 60,55m 61,32m 60m