Skip to content

Python scripts to calculate a robots position using markov-localization

License

Notifications You must be signed in to change notification settings

mamen/python_markov_localization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markov-Localization

This repository contains an implementation of the markov-localization-algorithm written in python.

To demonstrate its effectiveness, a robot is placed in a map with obstacles. The robot takes 8 steps and with each step, its new position is calculated. In between the steps, the robot is kidnapped and placed at a different location to show the robustnes of the algorithm in such cases.

Example

The robots steps are the following:

# Direction Measured distance to wall
1 Right 0
2 Up 0
3 Left 0
4 Down 0
5 Right 0
6 Top 1
7 Left 5
8 Down 1

After step 4, the robot is kidnapped from position (0,0) to position (6, 4).

Below, the resulting probability-grids as well as the current position of the robot is being shown.

Result

About

Python scripts to calculate a robots position using markov-localization

Topics

Resources

License

Stars

Watchers

Forks

Languages