Skip to content

Commit ab10db6

Browse files
committed
hotfix: typo variable injection
1 parent 2e3a537 commit ab10db6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/basho/localization/mcl.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ void MCL::resample_particles_low_variance()
323323
int num_inject_goalpost = 0.1 * num_particles;
324324

325325
if (compute_goalpost_pose_hypothesis(goalpost_hypothesis)) {
326-
for (int i = num_random + num_inject_odom; i < num_random + num_inject_goalpost + num_inject_goalpost; ++i) {
326+
for (int i = num_random + num_inject_odom; i < num_random + num_inject_odom + num_inject_goalpost; ++i) {
327327
int idx = num_particles - 1 - i;
328328

329329
new_particles[idx].position.x = goalpost_hypothesis.x + noise_x(rand_gen);

0 commit comments

Comments
 (0)