Giter Club home page Giter Club logo

robot_localization_hmm's Introduction

Robot_localization_HMM

The objective of this is to apply Hidden Markov Models to localization problem. Consider a robot with the task of localization (inferring where it is from the available data) given a map of the world and a sequence of percepts and actions. The robot is placed in a maze-like environment as shown in Figure. screenshot from 2018-07-08 11-51-44

The robot is equipped with four sonar sensors that tell whether there is an obstacle- the outer wall or a shaded square in the figure – in each of the compass directions (NSEW). We assume that the robot has a correct map. The robot performs action Move to move to one of the adjacent or neighbouring square.

Xt: state variable representing the location of the robot on the discrete grid.

dom(Xt) = {s1,...,sn}: domain of Xt the set of empty squares.

NEIGHBOURS(s): the set of empty squares that are adjacent to and let N(s) be the size of that set.

The transition model for Move action is given as: image

Assume uniform distribution over all the squares; P(Xo= i)= 1/n.

Et: sensor variable that can have 16 possible values, each a four-bit sequence giving the presence or absence of an obstacle in a particular compass direction.

The observation model can be given as:

screenshot from 2018-07-08 12-31-24

ε is the sensor’s error rate and errors occur independently for the four sensor directions, (1- ε)t is probability of getting all the four bits right and the probability of getting all of them wrong is εdit, and dit is the discrepancy that is the number of bits that are different – between true values for square i and the actual reading et from the sensor.

(a) First the robot needs to estimate its current location and then determine the most likely path it has taken to get where it is now for a given time t.

(b) Repeat (a) and find out the localization error as a function of number of observations for various values of (0.00, 0.02, 0.05, 0.10, 0.20) and plot them. Localization error is Manhattan distance from the true location.

(c) Repeat (b) for path accuracy, which is defined as the fraction of correct states on the Viterbi path.

Plots:

figure_1-2 figure_2-2

robot_localization_hmm's People

Contributors

akhileshydv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

robot_localization_hmm's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.