Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing constant, clarified docs in student_particle_filter.py #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions student_particle_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@

NUM_PARTICLES = 100
UPDATE_VARIANCE = 0.1
PROB_THRESHOLD = 0.001
TARGET = <choose a location with both x,y within 0-10>


class Particle:
"""
Class to hold a particle in your filter. Should store its position (x,y)
and its weight. Note that the weight field must
be called "weight." Once optimized in problem 6, it should store the set of
all weights and poses as numpy arrays. Depending on how you implement the
optimization, it may also need fields or methods for retrieving the particle's
own weight and pose.
Class to hold a particle in your filter. Should store its position [x, y]
and its weight. Note that the position field must be called "pose" and the
weight field must be called "weight". You may assign to each particle the
weight PROB_THRESHOLD. Once optimized in problem 6, ParticleSet will store
the set of all weights and poses as numpy arrays. Depending on how you
implement the optimization, it may also need fields or methods for
retrieving the particle's own weight and pose.
"""
def __init__(self, x, y):

Expand Down