✨
This commit is contained in:
@ -254,10 +254,10 @@ try:
|
|||||||
particle.add_uncertainty(particles, SIGMA, SIGMA_THETA)
|
particle.add_uncertainty(particles, SIGMA, SIGMA_THETA)
|
||||||
est_pose, certainty = particle.estimate_pose(particles) # The estimate of the robots current pose
|
est_pose, certainty = particle.estimate_pose(particles) # The estimate of the robots current pose
|
||||||
calc_weight(est_pose, landmark_values)
|
calc_weight(est_pose, landmark_values)
|
||||||
est_weight = est_pose.weight * 10**23
|
est_weight = est_pose.weight * 10**10
|
||||||
print("est_weight:", est_weight)
|
print("est_weight:", est_weight)
|
||||||
print("certainty:", certainty)
|
print("certainty:", certainty)
|
||||||
if est_weight > 1 and certainty > 1:
|
if est_weight > 1:
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
arlo.go_diff(POWER, POWER, 0, 1)
|
arlo.go_diff(POWER, POWER, 0, 1)
|
||||||
|
Reference in New Issue
Block a user