Implement a particle filter for a simulated boat driving

Assignment Help Other Engineering
Reference no: EM131102356

E28: Mobile Robotics - Fall 2015 - HOMEWORK 12

One-dimensional particle filter

Your goal is to implement a particle filter for a simulated boat driving along a circular channel. Let x denote the boat's position in the interval [0, 1]. Since the channel is circular, going past x = 1 results in wrapping back around to zero, and vice-versa.

Motion model. The motion model for the boat is obtained by applying a desired displacement to the current state, and adding Gaussian noise with a fixed standard deviation σx = 0.01, before wrapping around:

xt+1 = wrap(xt + ut + εt), εt ∼ N (0, σx)

Measurement model. The depth d(x) of the channel varies according to the function

d(x) = 0.3 + 0.1 cos(2π(x - 0.03)) - 0.06 cos(4π(x - 0.52)) + 0.04 cos(8π(x + 0.88q))

as illustrated here:

1568_Figure.png

so that the shallowest point in the channel lies at approximately x = 0.5 with a depth of roughly d = 0.1. The boat is able to sense the depth of the channel noisily, with additive Gaussian noise that has a known standard deviation σz = 0.04:

zt = d(xt) + νt,      νt ∼ N (0, σz)

Task Implement a particle filter that begins with a uniformly random sampling of N = 200 particles over the unit interval [0, 1], and which reads control and measurement values u and v from a text file. Your program should output a scatter plot of particle locations after each motion and measurement update, with particle locations on the x axis, and timesteps on the y axis.

There are two datasets of actions and controls in the starter code distribution at https://www.swarthmore.edu/NatSci/mzucker1/e28_f2015/pf_1d.zip named demo_data.txt and assignment_data.txt. Each text file consists of 25 u, v pairs, one per line. The distribution also contains starter code in both Python and MATLAB that you will find useful. When you are implementing the sensor update step, please consider using the np.random.choice function in Python, or the randsample function in MATLAB for re-sampling the particles after weighting them with the PDF of the measurement model.

Start by verifying that your program produces a plot similar to the one below for the demo_data.txt dataset:

2429_Figure1.png

Note that in this example, the particle filter very quickly converges on an estimated location of the boat around x = 0.5, moving slowly to the right.

Attachment:- Assignment.zip

Reference no: EM131102356

Questions Cloud

Requirements for a banking application : Consider the following data requirements for a banking application.
Which therapeutic approach do you think is best : Write a paragraph on how this diagnosis could be treated by each of the four major schools of psychotherapy - How might the Prochaska Model of Change assist.
Select and describe a specific healthcare operating unit : Select and describe a specific healthcare operating unit. Examples are an emergency department, a surgical service, a specific nursing unit, and a physician's office practice. Select a type of healthcare service you are familiar with.
Write a paper about different types of investment banks : Write a paper of no more than 1,050 words about different types of investment banks, including financial holding companies, full service investment banks, and boutique investment banks.
Implement a particle filter for a simulated boat driving : E28: Mobile Robotics - Fall 2015 - HOMEWORK 12. Your goal is to implement a particle filter for a simulated boat driving along a circular channel. Let x denote the boat's position in the interval [0, 1]. Since the channel is circular, going past x ..
What explains these changes : Over the past year, M. D. Ryngaert & Co. has realized an increase in its current ratio and a drop in its total assets turnover ratio. However, the company's sales, quick ratio, and fixed assets turnover ratio have remained constant. What explains the..
Evaluating the fourier series coefficients of a square wave : Plot the square-wave approximation by summing the series through the seventh harmonic.
How does accounting information assist management : How does accounting information assist management in measuring efficiency and effectiveness?
Develop your own set of health psychology : Provide a specific set of guidelines that you might present to those with whom you may work in the future, as well as how you might measure the successful application of those guidelines.

Reviews

Write a Review

Other Engineering Questions & Answers

  Assignment on tetracycline

order tetracycline first class shipping tetracycline 0.25 mg tetracycline free fedex shipping overnight tetracycline delivery no online pharmacy prescription tetracycline.

  Control the functions of motion detection camera device

My RISC machine automates a motion detection camera by automaticall triggering the record function of the camera when motion is detected.

  Determine the gage pressure the person

A person blows from the oil side of the U-tube until the contact surface of the two fluids moves to the bottom of the U-tube, and thus the liquid levels in the two arms are the same. If the fluid height in each arm is 30 in, determine the gage pre..

  Question regarding the temperature of the mixture

In a shower, cold water at 10°C flowing at a rate of 5 kg/min is mixed with hot water at 60°C flowing at a rate of 2 kg/min. The exit temperature of the mixture is

  Define the aircraft axes and degrees of freedom

Define the aircraft axes and degrees of freedom. Analyse the different maneuvers that can be done by an aircraft.

  To develop an understanding of the properties performance

to develop an understanding of the properties performance and applications of common materials relevant to

  Write a position piece on the future of energy storage

Write a position piece on the future of energy storage. The length of the article should be maximum 10 sentences and should concentrate on predicting which energy storage technology will experience the highest growth till 2030 and why

  What is its thermal resistance

A particular transistor has a power rating at 25°C of 10 W, and a maximum junction temperature of 150°C. What is its thermal resistance? What is its power rating when operated at an ambient temperature of 50°C? What is its junction temperature whe..

  Explain magnetic fluid is required for the application

Make a table assuming 10 g of magnetic fluid is required for the application or end use. In the table give the the cost per fluid using each of the three options and the volume fractions. Then report on the maximum viscosity, minimum cost, and opt..

  Environmental engineeringquestion 1 sulfur dioxide so2 is a

environmental engineeringquestion 1 sulfur dioxide so2 is a gas that is released from the burning of fossil fuels in

  Determine the horizontal clamping force

If a force of P = 100 N is applied to the handle of the toggle clamp, determine the horizontal clamping force NE that the clamp exerts on the smooth wooden block at E.

  Analysis of the vehicle component

Analysis of the vehicle component: role, work conditions, requirements for the role and

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd