SlideShare ist ein Scribd-Unternehmen logo
1 von 66
Robot Localization
Péter Borkuti
2014. 08
What is it(1)
Motivation(7)
Introduction(4)
Maps(4)
Localization algorithm I.(9)
Localization algorithm II.(15)
Rotary encoders(17)
Demonstration (5 minutes)
Robot Localization
Part I.
Definition
Robot Localization
● Definition
Localization is the ability for a machine to locate
itself in it's world
● Usage
– Autonomous car
– Moving robots
Robot Localization
Part II.
Motivation
Robot Localization
Motivation
3 short videos
•
The 6th
Day
• Google self driving car
• Google self driving car testing
What's all the fuss about
localization?
GPS
● Global Positioning System
● Issues?
GPS
● Global Positioning System
● Accuracy – 10 m
● Jamming, interferences, disturbances
● Satellites must be seen
● Service outages
GPS accuracy – 10 m
self driving car
GPS accuracy – 10 m
self driving car
Why Localization Is Important?
● Autonomous car – crashes
● Robot in a factory – breaks everything
● Robot in a hospital – gives pills to the wrong
patient
● ...
Robot Localization
Part III.
Introduction
Two Questions
● Imagine
– you woke up in an unknown city
– You can not speak to anybody
– You have to go to an address in that city
Two Questions
●
What does the World look like?What does the World look like?
●
Where I am?Where I am?
Answers
● What does the World look like?
– Map
● Where I am?
– Localization method
Answers
● What does the World look like?
– Map
● Where I am?
– Localization method
● Find your place on Map based on sensed data
– Sensors
● Sensing surroundings
We will learn about
Maps Localization algorithms
Robot Localization
Part IV.
Maps
Theoretical Example
Localization with elevation data
Simplify the map
● Elevation map
– Topography: graphic representation of a feature of
points of a map
– Geographic topography: the points are geographic
points
– Elevation map: the feature is the height above or
below of the Earth's sea level
– Graphic representation: coloring
Elevation map
Simplify more
● 3D → 2D
– Moving only in the X axis
– Colors → numbers
Robot Localization
Part V.
Localization Algorithm I.
Initial Belief
Measure! (sense)
Update belief!
New turn - move
Sense – update belief
More sure
move
Sense – update belief
Same certainty
Localization Algorithm
● Repeat
– Read sensors
– Update guesses
– Move
– Update guesses
Robot Localization
Part VI.
Localization Algorithm II
Simplify even more
Binary Map
landmarks
Binary Map - Landmarks
Binary Map
circular
Localization Algorithm
Localization Algorithm
● Repeat
– Read sensors
– Update guesses
– Move
– Update guesses
Your turn!
● Make pairs
● Choose 2 maps and some robots
● One (A) puts the robot somewhere
● The other (B) tries to figure out, where the robot
is
Your turn!
● REPEAT
– A tells to B the sensor value (Black/White)
– B thinking and put robots to the appropriate places
in their map
– IF B is sure about the location of the robot, tells it to
A
● If B fails, new round with same roles
● If B is right, game ends, change the roles
– ELSE B tells to A :move the robot (step right/step
left)
Issues with the algorithm?
Problems of localization
● Algorithm is not fail-safe
● There is no exact data in the Real World
● Sensors behave strangely
● Switches bounce
● Moves are not exact
Problems of localization
Localization can not be exact, just a guess with
more or less preciseness
To solve this:
Probability theory
https://www.udacity.com/course/cs373
Histogram Localization
● What we did (without proper steps)
A histogram shows the probabilities of the
location of the robot
Histogram Localization
sense
Histogram Localization
move
Robot Localization
Part VII.
Rotary Encoders
How I intend to apply it?
● Rotary encoder
– electro-mechanical device that converts the angular
position of a shaft to a digital code
Rotary Encoders
● Incremental
– Direction of rotation (+-1 click)
● Absolute
– Absolute position of the shaft
● Usage of Rotary Encoders
Incremental encoder
Incremental encoder
Incremental encoder
Incremental encoder disc
Absolute encoder discs
Absolute encoder discs
Standard binary encoding
Absolute encoder discs
Histogram Encoder Disk
H.E.D
Histogram rotary encoder
● Incremental encoder + histogram encoder disk
+
How to create a good H.E.D.?
● We need a good Map
– “good” is not exact
H.E.D Maps
H.E.D Maps
Algorithms to create the best maps
● Have you any idea?
Algorithms to create the best maps
● Count the repetitions
– Slow
– Up to 14 bits
● Count the number of steps for 100% certain
– Worked for 24 bits
– '001011110101000011001110', 4.66
● [4, 5, 4, 5, 4, 5, 4, 5, 5, 5, 4, 5, 4, 5, 5, 4,5,..., 5]
– '000000000000111101001011', 5.83
● [12, 12, 11, 10, 9, 8, 7, 6, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4,..., 4]
How to print H.E.D.?
Inkscape
Demonstration
Demonstration
● Sensors not perfect
– ultrasonic sensor data
● Switches bounce
– Switch and Logic Analizer
– How to solve bounces?
– Consequences of debounce (video)
● Histogram Rotary Encoder

Weitere ähnliche Inhalte

Ähnlich wie robotlocalization_02

eng.pptx
eng.pptxeng.pptx
eng.pptxZuine
 
Computer-Vision based Centralized Multi-agent System on Matlab and Arduino Du...
Computer-Vision based Centralized Multi-agent System on Matlab and Arduino Du...Computer-Vision based Centralized Multi-agent System on Matlab and Arduino Du...
Computer-Vision based Centralized Multi-agent System on Matlab and Arduino Du...Aritra Sarkar
 
Introduction to Mobile Robotics
Introduction to Mobile RoboticsIntroduction to Mobile Robotics
Introduction to Mobile RoboticsRobots Alive India
 
IRJET- Simultaneous Localization and Mapping for Automatic Chair Re-Arran...
IRJET-  	  Simultaneous Localization and Mapping for Automatic Chair Re-Arran...IRJET-  	  Simultaneous Localization and Mapping for Automatic Chair Re-Arran...
IRJET- Simultaneous Localization and Mapping for Automatic Chair Re-Arran...IRJET Journal
 
A visual compass for robot soccer
A visual compass for robot soccerA visual compass for robot soccer
A visual compass for robot soccerAdil_Mahmood
 
Muhammad rizwan aqeel rlp.ppt
Muhammad rizwan aqeel rlp.pptMuhammad rizwan aqeel rlp.ppt
Muhammad rizwan aqeel rlp.pptM Rizwan Aqeel
 
Lecture 12 localization and navigation
Lecture 12 localization and navigationLecture 12 localization and navigation
Lecture 12 localization and navigationVajira Thambawita
 
15_robotics-intro.pdf in ai machine learning
15_robotics-intro.pdf in ai machine learning15_robotics-intro.pdf in ai machine learning
15_robotics-intro.pdf in ai machine learningMcSwathi
 
Augmented reality with WebVR
Augmented reality  with WebVRAugmented reality  with WebVR
Augmented reality with WebVRJerome Etienne
 
Robotics in AI
Robotics in AIRobotics in AI
Robotics in AIAkhil TR
 
Androidで出来る!! KinectとiPadを使った亀ロボ
Androidで出来る!! KinectとiPadを使った亀ロボAndroidで出来る!! KinectとiPadを使った亀ロボ
Androidで出来る!! KinectとiPadを使った亀ロボHirotaka Niisato
 

Ähnlich wie robotlocalization_02 (20)

eng.pptx
eng.pptxeng.pptx
eng.pptx
 
Computer-Vision based Centralized Multi-agent System on Matlab and Arduino Du...
Computer-Vision based Centralized Multi-agent System on Matlab and Arduino Du...Computer-Vision based Centralized Multi-agent System on Matlab and Arduino Du...
Computer-Vision based Centralized Multi-agent System on Matlab and Arduino Du...
 
Introduction to Mobile Robotics
Introduction to Mobile RoboticsIntroduction to Mobile Robotics
Introduction to Mobile Robotics
 
IRJET- Simultaneous Localization and Mapping for Automatic Chair Re-Arran...
IRJET-  	  Simultaneous Localization and Mapping for Automatic Chair Re-Arran...IRJET-  	  Simultaneous Localization and Mapping for Automatic Chair Re-Arran...
IRJET- Simultaneous Localization and Mapping for Automatic Chair Re-Arran...
 
A visual compass for robot soccer
A visual compass for robot soccerA visual compass for robot soccer
A visual compass for robot soccer
 
10833762.ppt
10833762.ppt10833762.ppt
10833762.ppt
 
Muhammad rizwan aqeel rlp.ppt
Muhammad rizwan aqeel rlp.pptMuhammad rizwan aqeel rlp.ppt
Muhammad rizwan aqeel rlp.ppt
 
Slides SDC Controls
Slides SDC ControlsSlides SDC Controls
Slides SDC Controls
 
Gp straining
Gp strainingGp straining
Gp straining
 
Lecture 12 localization and navigation
Lecture 12 localization and navigationLecture 12 localization and navigation
Lecture 12 localization and navigation
 
Gps training
Gps trainingGps training
Gps training
 
15_robotics-intro.pdf in ai machine learning
15_robotics-intro.pdf in ai machine learning15_robotics-intro.pdf in ai machine learning
15_robotics-intro.pdf in ai machine learning
 
Augmented reality with WebVR
Augmented reality  with WebVRAugmented reality  with WebVR
Augmented reality with WebVR
 
Robotics Navigation
Robotics NavigationRobotics Navigation
Robotics Navigation
 
Robotics in AI
Robotics in AIRobotics in AI
Robotics in AI
 
Linux Assignment-1.pptx
Linux Assignment-1.pptxLinux Assignment-1.pptx
Linux Assignment-1.pptx
 
Androidで出来る!! KinectとiPadを使った亀ロボ
Androidで出来る!! KinectとiPadを使った亀ロボAndroidで出来る!! KinectとiPadを使った亀ロボ
Androidで出来る!! KinectとiPadを使った亀ロボ
 
Presentation sim opencv
Presentation sim opencvPresentation sim opencv
Presentation sim opencv
 
Robotics
RoboticsRobotics
Robotics
 
Aris_Robotics
Aris_RoboticsAris_Robotics
Aris_Robotics
 

robotlocalization_02

Hinweis der Redaktion

  1. ROBOcUP COMPETITIONS WITH FULLY AUTONOMOUS, COOPERATIVE ROBOTS Brazlian Localization: a process to determine its position on a map
  2. I will teach you a piece of software which is a fundemantal part of every moving robot, especially of the google self driving car
  3. What do you think? Imagine autonomous car. What do you use for localization?
  4. Accuracy: theoretical worst case is 7.8 m with 95% confidence Jamming: GPS is subject to interference from both natural and human-made sources. For example: solar flares, radio stations, electricity, terrorists, Uncovered areas: underground, indoor, underwater, urban area, between high buildings Tokyo
  5. Accuracy: theoretical worst case is 7.8 m with 95% confidence Jamming: GPS is subject to interference from both natural and human-made sources. For example: solar flares, radio stations, electricity, terrorists, Uncovered areas: underground, indoor, underwater, urban area, between high buildings Tokyo
  6. Lombard street, San Francisco
  7. Highway, 404, Ontario, Canada Lane width: 2.7 m – 4.6 m. Typically 3.7 m for interstate highways. With 10 ms of accuracy, a car can be everywhere, even on the pavement or the lanes for opposite direction. For safe driving, the accuracy must be at least 10 cm, not 10 m!
  8. I'd like you to create these two questions. What do you have to have? What do you need to know?
  9. kuki
  10. 3D X/Y: position Colors: elevation/altitude How high is the point above the Sea-level
  11. Numbers: easier to process than colors
  12. Without measuring, we can say, that we are somewhere on the map. We can be Equal probability on every place. So we are totally unsure about our location.
  13. Without measuring, we can say, that we are somewhere on the map. We can be Equal probability on every place. So we are totally unsure about our location. Let's measure! Measure from the red window What can be our location based on the measured distance from the ground?
  14. We are more sure about our position than at the start, but it is not enough. Airplane has moved to the right 1 We have to update our belief of our location based on the moving SPEAK about moving is not perfect, so our belief should be decreasing. Show this with coloring more bars.
  15. Let's measure! Based on the distance from the ground, the elevation is 4. Update our belief!
  16. Our belief is pretty sure, but let us move on to the right 1 block!
  17. SPEAK about move uncertainty! But assume, now the move is exactly 1 to the right.
  18. Let's measure. Unfortunately, our belief has not been more certain. Let's move to the right!
  19. Let's measure. Unfortunately, our belief has not been more certain. Let's move to the right!
  20. Update belief of your location based on the sensed data and your map Update belief according to your move
  21. Instrument panel
  22. Imagine a corridor, where the robot should find a room. The landmarks are the doors. The robot can sense if there is a door in front of itself or not. The robot can move only sideways, left or right. The size of one robot-step is the same as the size of a door.
  23. We can create a map of doors and no-doors and we can code it with ones and zeroes. DRAW the doors
  24. The robot (wall-e) can move sideways. Moreover, if it is moves toward one-end of the map, it magically enters into the other side of the map, in both direction.
  25. Update belief of your location based on the sensed data and your map Update belief according to your move
  26. Let's imagine, that A (who owns the robot), sometimes pick up the robot and put it into a random place on the map. Let's imagine, that A does not behave according to the commands. Sometimes does not move, sometimes moves 2 steps or in an opposite direction.
  27. Easy to implement Runs fast for 1D case (moving only on one axis) Unfortunately, it consumes much memory for higher dimensions For an airplane, the location is X,Y,Z, however the direction is other 3 dimension (yaw, pitch, roll)
  28. Where we use rotary encoders? Hi-Fi Car radio Micro wave ovens PC Mouse Light dimmers Fan – rotational speed controller Any knob could be an encoder
  29. Worn out Gunk Contacts Surface scratchy, scarred, not smooth
  30. We should code differently all the 8 sectors. For the sake of simplicity, we are choosing binary coding. How many bits we need? How do you code the sectors? How many tracks will be?
  31. What is resolution? How many clicks are per revolution? How many sensors needs it? The More the number of sensors are, the more expensive the encoder is. Reduce size, number of sensors, number of electorinc parts. Number of tracks.
  32. One sensor One encoder
  33. What will happen with a robot on a bad map? What are the attributes of a good map?
  34. Which one is better than the others? What are the attributes of a good map? How can we compare the maps? Is there the best of maps?