List of commits:
Subject Hash Author Date (UTC)
index bug weight_sum = 0 22c7cdeeb0a07ad61d9681cb78d63a1e99937fad B.Sc. Moczalla, Rafael 2017-05-29 15:04:12
Dennis Wagners work 1c13a0f9f68878d43b2721dea5d85520addff374 B.Sc. Moczalla, Rafael 2017-05-27 11:07:40
README added 1ebabdde437e516282d5984ab46e24696ca5b5f8 B.Sc. Moczalla, Rafael 2017-05-25 11:54:21
first push 69514078177c368ef34ebcb0ea20f3cc853dd78e B.Sc. Moczalla, Rafael 2017-05-25 11:29:50
Commit 22c7cdeeb0a07ad61d9681cb78d63a1e99937fad - index bug weight_sum = 0
Author: B.Sc. Moczalla, Rafael
Author date (UTC): 2017-05-29 15:04
Committer name: B.Sc. Moczalla, Rafael
Committer date (UTC): 2017-05-29 15:04
Parent(s): 1c13a0f9f68878d43b2721dea5d85520addff374
Signing key:
Tree: 06951de310f2a17eca7114541fc6f228021474e1
File Lines added Lines deleted
particle_filter.py 5 3
File particle_filter.py changed (mode: 100644) (index b2a5ae5..3059050)
... ... while True:
190 190 world.show_robot(nao) world.show_robot(nao)
191 191
192 192 # ---------- Shuffle particles ---------- # ---------- Shuffle particles ----------
193 new_particles = []
194
193
195 194 # Aufgabe 3.2: resampling # Aufgabe 3.2: resampling
196 195 # calculate new samples (new_particles) based on the weigths (p.w) of the old partiucles # calculate new samples (new_particles) based on the weigths (p.w) of the old partiucles
197 196 # Example: Stochastic universal sampling # Example: Stochastic universal sampling
 
... ... while True:
221 220 weight_sum += particles[current_particle_index].w weight_sum += particles[current_particle_index].w
222 221 current_particle_index += 1 current_particle_index += 1
223 222
224 # The particle around which to saple a new particle
223 # The particle around which to sample a new particle
225 224 p = particles[current_particle_index-1] p = particles[current_particle_index-1]
226 225
227 226 # Sample the new particle with some noise and increment the sum for the next particle # Sample the new particle with some noise and increment the sum for the next particle
 
... ... while True:
236 235 new_particles.append(Particle(x, y, p.h, p.w, True)) new_particles.append(Particle(x, y, p.h, p.w, True))
237 236 new_part_weitgh_d += dp new_part_weitgh_d += dp
238 237
238 weight_sum = 0
239 current_particle_index = 0
240
239 241 particles = new_particles particles = new_particles
240 242
241 243 # ---------- Move things ---------- # ---------- Move things ----------
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/bscmoczallarafael/kogrob-ha03

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/bscmoczallarafael/kogrob-ha03

Clone this repository using git:
git clone git://git.rocketgit.com/user/bscmoczallarafael/kogrob-ha03

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main