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

  Characterization technology for nanomaterials

Calculate the reciprocal lattice of the body-centred cubic and Show that the reciprocal of the face-centred cubic (fcc) structure is itself a bcc structure.

  Calculate the gasoline savings

How much gasoline do vehicles with the following fuel efficiencies consume in one year? Calculate the gasoline savings, in gallons per year, created by the following two options. Show all your work, and draw boxes around your answers.

  Design and modelling of adsorption chromatography

Design and modelling of adsorption chromatography based on isotherm data

  Application of mechatronics engineering

Write an essay on Application of Mechatronics Engineering

  Growth chracteristics of the organism

To examine the relationship between fermenter design and operating conditions, oxygen transfer capability and microbial growth.

  Block diagram, system performance and responses

Questions based on Block Diagram, System Performance and Responses.

  Explain the difference in a technical performance measure

good understanding of Mil-Std-499 and Mil-Std-499A

  Electrode impedances

How did this procedure affect the signal observed from the electrode and the electrode impedances?

  Write a report on environmental companies

Write a report on environmental companies

  Scanning electron microscopy

Prepare a schematic diagram below of the major parts of the SEM

  Design a pumping and piping system

creating the pumping and piping system to supply cool water to the condenser

  A repulsive potential energy should be a positive one

Using the data provided on the webvista site in the file marked vdw.txt, try to develop a mathematical equation for the vdW potential we discussed in class, U(x), that best fits the data

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