02 Sensors and Variables Estimation
02 Sensors and Variables Estimation
Gilles TAGNE
[email protected]
1 1
Sensors and variables estimation
Summary:
2 2
Sensors and variables estimation
Purpose:
3 3
Sensors for mobile robots
We have two class of sensors:
4 4
Sensors for mobile robots
Classification example:
5 5
Sensors for mobile robots
Sensors for position measurement:
▪ Odometry sensors:
Use encoders to measure the rotation of the wheels and/or
steering angles.
Pros: proprioceptive sensor → always able to give an
estimation of the position.
Cons: accumulation of error.
▪ Orientation sensors:
Use gyroscopes or accelerometers to measure speed of rotation
or accelerations.
Pros: proprioceptive sensor.
Cons: drift over time (error integration)
6 6
Sensors for mobile robots
Odometry sensors
Measurement of wheel speed rotation
➔ Estimation of the robot's displacement
Most common daily use: dead-reckoning (estimation of the
position of your car in a tunnel into which you can’t receive GPS)
7 7
Sensors for mobile robots
Optical encoders
8 8
Sensors for mobile robots
Relative optical encoders
Those encoders usually measure the speed of rotation from which we can
easily retrieve the position.
Same principle than the previous example but with two engraved tracks
shifted by 1/4th of the period → allow to get the direction of rotation and to
improve the resolution therefore the precision. (2 tracks = resolution x4)
9 9
Sensors for mobile robots
Relative optical encoders
10 10
Sensors for mobile robots
Relative optical encoders
Pros:
- Low cost (but price increase with the resolution)
- Few cables (usually 5)
- Small size
Cons:
- No absolute position → need a recalibration procedure!
11 11
Sensors for mobile robots
Absolute optical encoders
Same use of light through a wheel, but with an engraved binary code.
12 12
Sensors for mobile robots
Absolute optical encoders
Be careful about which kind of encoder wheel you have!
13 13
Sensors for mobile robots
Absolute optical encoders
Be careful about which kind of encoder wheel you have!
14 14
Sensors for mobile robots
Absolute optical encoders
Each position is on Nbits ➔ Sensor resolution = 2N
Pros:
- Absolute position
Cons:
- More expensive (price increasing with resolution)
- Slightly bigger component
- More cables (one for each track + power)
15 15
Sensors for mobile robots
Resume: Optical encoders for odometry
Pros:
- Low cost
- Easy to integrate
Cons:
- We never know exactly the diameter of the wheel (tire
pressure, ground condition…)
- Wheel drift on accelerations/brakings
17 17
Sensors for mobile robots
Resume: Optical encoders for odometry
18 18
Sensors for mobile robots
19 19
Sensors for mobile robots
20 20
Sensors for mobile robots
Gyroscopes:
➔Gives angular velocity in degrees/s or rad/s.
➔Has constant bias which is affected by temperature.
➔Bias changes over time (bias stability).
21 21
Sensors for mobile robots
Accelerometer:
➔Gives acceleration in m/s2 or g.
➔At rest an accelerometer measures the gravity vector pointing up.
➔Accurate long term (no drift) but not short term (noise).
22 22
Sensors for mobile robots
Gyroscope:
➔Measures magnetic field strength on each axis in Gauss (unit
of magnetic flux) or µT (unit of magnetic field strength).
➔Points generally towards magnetic north.
➔Can be distorted by nearby metals or electronics.
23 23
Sensors for mobile robots
24 24
Sensors for mobile robots
Telemetry:
Principle: To measure the time of flight to get the distance.
Transmitter and receiver are close so we measure the echo.
25 25
Sensors for mobile robots
Sonar / Ultrasonic sensors:
Proximity and distance measurement
Sound waves that reflect on the obstacles Advantages: Precision,
low cost
Drawbacks: Maximum
frequency of
measurements, cone
angle of opening
➔ Check min and max
range!
26 26
Sensors for mobile robots
Sonar / Ultrasonic sensors:
28 10
28
Sensors for mobile robots
Infrared telemeter
Proximity and distance optical measurement
Example (characteristics):
30 30
Sensors for mobile robots
LIDAR
Can provide 2D or 3D data in an array of
data or in a point cloud
➔ Depends on the need and the
computational power available (need
to apply a transform to each point to
get their absolute position)
➔ Laser can be problematic with
some surfaces (mirrors, windows…)
➔ Depending on the need there is a
choice to be made between the
frequency of acquisition and the
precision (resolution)
31 31
Sensors for mobile robots
LIDAR
32 32
Sensors for mobile robots
Cameras (Vision)
2D Cameras important features:
- Resolution
- RBG // BW or Grayscale // IR (need
infrared light emitters for night vision or a very
sensitive sensor for thermal vision)
- Frame rate (FPS)
- Apperture & Sensitivity
- Fixed / Adjustable focal length
- Rolling or global shutter
- Connectivity (USB? CSI? Other?)
- CMOS / CCD
- Horizontal & Vertical FOV
33 33
Sensors for mobile robots
Cameras (Vision)
2D Cameras important features:
≠
34 34
Sensors for mobile robots
Cameras (Vision)
2D Cameras variation: Omnidirectional camera
- Use of optical lenses or shaped mirrors to get a 360° picture.
➔ Nice idea but need to use time-consuming computer vision
algorithm to compensate the optical deformation before any
processing of the image…
35 35
Sensors for mobile robots
Cameras (Vision)
2D Cameras variation: Stereovision
➔ Two 2D cameras used to get precisous depth information
= cheap 3D camera!
➔ Based on how our eyes work with our brain
→ The distance between the cameras must be
known precisely!
36 36
Sensors for mobile robots
Cameras (Vision)
2D Cameras variation: Stereovision
37 37
Sensors for mobile robots
Cameras (Vision)
3D Cameras:
Time of Flight (TOF) cameras = TOF sensor matrix
= Infrared telemeter marix
➔ Low resolution, often short range but good precision
➔ The higher the resolution or range, the higher the price!
➔ More and more integration into new smartphones
so it might become cheaper and better in a near future…
38 38
Sensors for mobile robots
Cameras (Vision)
3D Cameras:
Structured IR light = projection of an infrared pattern
➔ The distortion of the pattern show the depth variations
➔ Good precision and resolution
➔ Quite unexpensive
➔ The data fusion with a RGB camera gives a RGB-D camera
39 39
Sensors for mobile robots
Cameras (Vision)
3D Cameras:
Structured IR light = Example of the D415 and D435
Intel RealSense cameras
40 40
Sensors for mobile robots
Cameras (Vision)
41 41
Sensors for mobile robots
Cameras (Vision systems)
Advantages:
• Usually cheap and easy to use
• Allows customed 2D/3D data depending on the need
• Combined with computer vision algorithms it can give a lot of
information about the environment around the robot and allow it to
achieve many tasks (tracking a target, recognize object or faces,
detect patterns…)
Drawbacks:
• The form factor of some camera may not be easy to integrate in
constrained environment
• Useless without computer vision algorithms that need some
computation power to run in real time (if possible)
• Those algorithms can provide false positive detections
42 42
Sensors for mobile robots
GNSS* sensors:
GPS (Global Positioning System)
- Measuring the absolute position of a point in a
fixed landmark (the center of the earth)
- 3 satellites signals needed (4 is more robust)
- Only for outdoor navigation
→ Useful for position recalibration
- Differential GPS (DGPS) → 1-3 cm precision
Advantages: No drift
Drawbacks: Low frequency <5Hz (typically 1Hz),
unavailability of satellite signals (indoor, under water…)
*Global Navigation Satellite System-
43 43
Sensors for mobile robots
Other sensors:
A lot of sensors exist for all your needs !
44 44
Robot components: sensors
What levels of processing for those sensors ?
➔ How much processing power? Which board process the
data?
Low
46 46
Variables estimation
What need to be estimated?
• Noise from the data of a sensor (odometry, IMU) or
from any other component (resistance, motor…).
Why?
• Data is too noisy → Impossibility to measure precisely
• Very expensive sensor so we want the best precision
and we need to remove precisely the noise
How to estimate?
• By developing a mathematical estimator
• By filtering the data (Kalman filter)
• Combining or merging many information
47 47
Variables estimation
Mathematical estimator:
The recursive use of this algorithm over time ensure the error to
be null over time as the error is removed at each step.
49 49
Variables estimation
Kalman Filter:
50 50
Multi-sensor data fusion
51 51
Multi-sensor data fusion
Data fusion Methods:
• Probability theory
• Theory of possibility
• Theory of fuzzy sets (fuzzy logic)
• Theory of belief functions
• Decision trees
• Rule bases
• Nearest neighbors
• Neural networks
• Bayesian networks
• Markov chains
• EFK
• UKF
• Particle Filtering
• … Kalman Filter!
52 52
Multi-sensor data fusion
Application of the Kalman Filter to data fusion:
The odometry data (red)
accumulate error over
time.
54 54
Multi-sensor data fusion
Application of the Kalman Filter to data fusion:
The same way we considered our sensors data to be noisy,
we can merge two data from different sources by
considering that each one has some statistic error.
➔ A lot of applications: 2D image and Depth data fusion
55 55
Multi-sensor data fusion
Application of the Kalman Filter to data fusion:
➔ A lot of applications: 3D image + position = 3D map
56 56
Next steps…
• Locomotion
• Localization
• Trajectory planning
• Robot Control
• Power supply
• Practical work
57 57