Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 1 Robot Localisation ( UG and PG ) Robot localization is the process of determining where a mobile robot is located concerning its environment.
Part Robot Localisation UG and PG
Robot localization is the process of determining where a mobile robot is located concerning its environment. Robot localization
provides an answer to the question: Where is the robot now? A reliable solution to localization is one of the most fundamental
competencies required by an autonomous robot as the knowledge of the robot's location is an essential precursor to making
decisions about future actions.
In a typical robot localization scenario, a map of the environment is available and the robot is equipped with sensors that observe
the environment as well as monitor its own motion. The localization problem then becomes one of estimating the robot's position
within the map using information gathered from these sensors The following shows an example of a D map drawn using ASCII
characters:
The character denotes an obstacle the path cannot be traversed while the character Zero represents a traversable
position. Any position within the map is indicated by the coordinates where is the row number ordered top to bottom and
is the column number ordered left to right starting from For example, the top left position is and the bottom right is
A robot moves on the map and gathers information along the way. In this version, the robot has a single nondeterministic Move
action and its sensors report whether or not obstacles lay immediately to the north, south, east, and west. A sequence of sensor
readings observed is the set of possible blocked directions. The following shows the example of the observed sensor readings at
each time step; which means eg at time the north south and west of the robot have obstacles: Problem Formulation
The state variable represents the location of the robot on the discrete grid; the domain of this variable is the set of
traversable points illustrated as points in the map.
Let NEIGHBORS be the set of traversable points that are adjacent to and let be the size of that set. Then the
transition model for the Move action is defined as follows, which means the robot has an equal probability of moving to each of
its neighbors.
We don't know where the robot starts, so we will assume a uniform distribution over all the states; that is
where is the number of points in the map.
The sensor variable Et has possible values, each a fourbit sequence giving the presence or absence of an obstacle in each of
the compass directions North East, South, and West NSWE is the way of specifying the fourbit sequence and your program
must expand each direction in this order. For example, a fourbit sequence represents that the sensors report an obstacle
on its north and west positions, while the east and south positions do not have obstacles.
The sensors error rate is and that errors occur independently for the four sensors In that case, the probability of getting all
four bits right is and the probability of getting them all wrong is Furthermore, if denotes the number of
directions are reporting erroneous values, then the probability that a robot at position i would receive a sensor reading ie
the observationemission model is:
Using the above problem formulation, you are requested to use the Viterbi forward algorithm provided below to find the Trellis
matrix. A trellis matrix gives us the probability of each state path in this case given each observation made by the robot's sensors
For the paths that cannot be traversed, the probability is Zero in the trellis matrix. Therefore, the trellis matrix could reflect the
possible positions of the robot. Deliverables
Write your robot localisation program in Python in a file called
viterbi.py Your program must be able to run as follows:Input: Here, input specifies the path to a text file. In GradeScope, the file path will be provided. Your program need to be able to
read the file in the following format:
The description of the input file to the program is as follows:
The first line indicates the size of the map rows by columns
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started