Sensors Previous Lecture

4 downloads 1814 Views 2MB Size Report
22. Problems. Other Usages: NavBelt ... GuideCane. Page 24. 24. GuideCane. Machine Vision. ▫ Problem: determine the objects in the. ▫ Problem: determine ...
Sensors CSCI545 Introduction to Robotics Hadi Moradi

Previous Lecture „

DC motors „ „ „ „ „ „ „ „ „

Inefficient Operating voltage Operating current Stall current Stall torque Gearing up and down Gear ratios PWM Servo motors vs. stepper motors

1

Sensors „

Perception through sensors „

Contact: bump, switch

„

Distance: Ultrasound, radar, infra red

„

Light level: photo cells, cameras

„

Sound level: microphone

Sensors „

Perception through sensors „

Strain: strain gauge

„

Rotation: encoders

„

Magnetism: compasses

„

Smell: chemical

2

Sensors „

Perception through sensors „

Temperature: thermal, infra red

„

Inclination: inclinometers, gyroscopes

„

Pressure: pressure gauges

„ „

Altitude: altimeters …

Sensors „

Simple „

Contact switch

complex human retina

3

The General Question „

„

Given the sensory reading what was the world like?

Example: Skin

Levels of Processing „

A switch: „ „

open = 0 volts Closed = 5 volts

„

A digital scale:

„

Microphone:

„

Camera:

4

Proprioception „

„

Sensing information „

Proprioception:

„

Exteroception:

Examples of proprioception

Sensor Fusion „

Combining multiple sensors Difficulties:

„

E Example: l Human H brain b i

„

5

Magnetic Field Sensor of Baby Loggerhead Sea Turtles „ „ „

Field Inclination Angle Field Intensity Neuron sensors in the brain?

http://faculty.washington.edu /chudler/magtur.html http://news.nationalgeographic.com/news/ 2001/10/1012_TVanimalnavigation.html

Magnetic Field Sensor of Baby Loggerhead Sea Turtles

http://www.unc.edu/depts/oceanweb/turtles/ Research by Dr. Kenneth Lohmann

6

Ohm’s Law „

V= IR „ „ „

V =voltage I =current R = resistance

(volts) (Amps) (Ohms)

Switch Sensors „

Open vs vs. closed

7

Light Sensors „

A variable resistor that changes based on the light. Brighter light => low resistance darker light => Higher resistance

The Importance of shielding „

Note: Shielding, position, and directionality of the photocells are important.

8

Resistive Position Sensors „

Originally developed for video game control.

Bend Sensor

9

Potentiometers „ „

Volume control in your stereo Typically called pots

Example

10

Example

Reflective Opto-sensors „ „

Emitter and detector Emitter: „

„

LED

Detector: „ „

Photodiode Phototransistor

11

Photodiode vs. Photoresistor „ „

Photoresistor: Photodiode/phototransistor: „

Phototransistor vs. Photodiode:

Applications „ „ „

„ „

object presence detection object distance detection surface feature detection (finding/following markers/tape) wall/boundary tracking rotational shaft encoding

12

Sensor limitations „

Light g reflectivity: y „

Surface color

„

Texture Ambient light: How to overcome the ambient light?

„

Sensor calibration

„

=> Partially observable

„

Break Beam Sensors

„

Any pair of compatible emitterdetector devices can be used to make a break-beam sensor Examples:

„

Where have you seen these?

„

13

Shaft Encoding „

Measure angular rotation

„

Example: „ „

„

Speedometer: p speed p of rotation Odometer: number of rotations

Q: What happens if there is only one notch in the disk?

An Example

14

Quadrature Shaft Encoder

„

Clockwise rotation signal

Output Signal

cw ccw

15

Modulation and Demodulation of Light „ „

„ „

Problem: Ambient light Solution: Example: Home remote control Usage: g

Modulation and Demodulation of Light

16

Proximity Sensing „

The distance to a nearby object „

Just the return of signal

Distance Sensing

17

Infra Red (IR) Sensors „ „

„

Infra red part of the spectrum Used like break beam and reflectance sensors Advantage

Time of Flight „

„

„

Emitter: send a chirp Collector: Receives the bounce back Elapsed time „

„

1.12 feet/ms

Called

echolocation

18

Bats

Man Made Example „

Used to map undersea surface

19

Undersea Mapping

Picture from Bluefin Robotics

20

Problem 1: Multiple Reflections „

„

Which reflection gets back earlier? Which reflection should be used for calculation?

Object 2

Object 1 Sonar

Problem 2: Specular Reflection „

Graze the surface and bounce off

Object 2

Object 1 Sonar

21

Problems

Other Usages: NavBelt

http://www.engin.umich.edu/research/mrl/00MoRob_19.html

22

Navchair

http://www.engin.umich.edu/research/mrl/00MoRob_19.html

GuideCane

23

GuideCane

Machine Vision „

„

Problem: determine the objects in the environment (Understand the environment). Example: RoboCup

24

The Physics of Vision

„ „

Light goes through the iris Impinges retina

Camera Light Processing

A very simple processing: convert the image to a normal image

25

Image Reconstruction „

Reconstruction: what was the world like that produced this image?

„

Pixelizing the Image Plane „

pixels: picture cells „

„ „

Each picture divided into small cells

Typical camera: 512 X 512 pixels Human eye: „

120 x 10^6 rods

„

6 x 10^6 cones

26

Image Brightness „

„

Brightness: B i h proportional i l to the h amount off light directed toward the camera Brightness depends on: „

Patch Brightness „

Th brightness The bi h depends d d on: „ „

specular (bounce off the surface) diffuse (re-emitted)

„

27

First Steps of Early Vision „

Example: „ „

„

„

b&w camera 512 x 512 pixel image plane. intensity level between white and black

Question: „ „

Do we know if there is an object? How do we find an object in the image?

An Example

28

Edge Detection „

„

„

Edges: curves in the image plane with significant change in the brightness level

A simple approach: to look for sharp brightness changes:

Problem:

Example: Human Body Project

29

Smoothing of Noise „ „

Noise: Small picks in differentiated image. image Eliminating noise: „

Finding Objects „

Step 2: Find objects among all those edges. edges Segmentation:

„

Q Questions: ti

„

„

„

How do we know which lines correspond to which objects, What makes an object?

„

30

Finding Objects „

Use clues to detect objects. The math is hard...

Clues for Segmentation (1) „

Use stored models (model (model-based based vision) „

31

Clues for Segmentation (1) „

MAKRO 1.1 drives to a T-shaped junction, measures its width, drives back, performs a turn, stops, drives back and performs a turn back into the main pipe. Second run, different point of view

Clues for Segmentation(2) „

Use motion (motion vision) „

32

Clues for Segmentation(3) „

Use binocular stereopsis

(stereo vision) „

Clues for Segmentation(4)

Left image

Right image

Image after disparity

33

Clues for Segmentation(5) „

Use texture

„

Use shading shading, contours, … „

recover shape in a similar way as from texture

Complexity of Vision Sensing „

„

Reconstruction:

If no need for reconstruction: „

„

Si lif vision Simplify i i processing i

Q: What are some ways of doing that?

34

Simplifying Vision „

Use color

„

Use a smaller image plane (e.g., a line)

„

Use other sensors to complement vision

„

Use task-specific information

Question: Determine the object in this image

35

Structured Light Vision „

„

Project a light on a mirror and scan the area. You may avoid rotating motor and scan with a full surface.

Images courtesy of http://www.caligari.com/

Structured Light Vision „

Any object in the environment cuts the light.

Images courtesy of http://www.caligari.com/

36

Structured Light Vision

A) The whole scene, B) The object w/o laser light, C) the difference

Images courtesy of http://www.caligari.com/

Structured Light Vision „

„

„

Y= projection of the laser on the image plane H= height of the camera Question: How do you calculate r?

Images courtesy of http://www.caligari.com/

37