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

  The spectrum of an analog signal

(a) Draw the spectrum of the sampled signal and show the baseband and first two positive frequency replications with their end frequency values marked. (Hint: Follow the method outlined in the lecture.)

  The historical development and context of the technology

The primary focus of the team is to research and assess the issues associated with a specific emerging technology. The historical development and context of the technology

  Determine the altitude of the shuttle at point

As it passes through A it fires its engine for ashort interval of time to reduce its speed by 6 percent and begin its descent toward the earth. Determine the altitude of the shuttle at point B, knowing that the angle AOB is equal to50°.

  Assignement on mars climate orbiter (mco)

The mission of the MCO was to gather Martian climate data and serve as a relay station for the Mars Planet Lander (MPL), which would follow shortly thereafter. For nine months the MCO traveled through space. Some unplanned course corrections were ..

  How many 8-bit ports are there on the mc9s12dp256b

a how many pin connections are there on the mc9s12dp256b microcontroller chip?b how many 8-bit ports are there on the

  Find vov and id at which the transistors must be operating

Assume that the bandwidth of the cascode amplifier is primarily determined by the input circuit. If Cgd = 0.1Cgs and the dc gain of the CS amplifier is 50, what is the value of N?

  What external factors affect international operations at ups

What external factors affect international operations at UPS. How do these factors cause UPS to adjust its operations

  Evaluate the stability using rouths hurwartz criterion

Evaluate the stability using Rouths Hurwartz criterion and obtain the range of K value for the stability under various controllers and evaluate the relative stability of the system with P and I controllers.

  Is the estimate of the coefficient on the gasoline dummy

Is the estimate of the coefficient on the Gasoline dummy statistically significant?

  What has happened to the efficient level of output

Experts are divided about whether fracking results in significant pollution, but some people worry that chemicals used in fracking might lead to pollution of underground supplies of water used by households and farms. First, assume that fracking c..

  Combine all of the information into a final presentation

This week you will develop cost estimates and then combine all of the information into a final presentation for the customer. Review your design from the previous week and make any necessary changes, fill in the gaps and complete your presentation.

  How many channels can be used to send data

An E1 is the European version of our T1. An E1 frame has 32 channels. The first channel is channel 0. All 8 bits of channel 0 are used for framing. Channels 1 to 15 are used for data or voice and no bit robbing is used or needed.

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