✨
This commit is contained in:
@ -254,7 +254,8 @@ try:
|
|||||||
particle.add_uncertainty(particles, SIGMA, SIGMA_THETA)
|
particle.add_uncertainty(particles, SIGMA, SIGMA_THETA)
|
||||||
est_pose = particle.estimate_pose(particles) # The estimate of the robots current pose
|
est_pose = particle.estimate_pose(particles) # The estimate of the robots current pose
|
||||||
calc_weight(est_pose, landmark_values)
|
calc_weight(est_pose, landmark_values)
|
||||||
print("est_pose weight: ", est_pose.weight)
|
if est_pose.weight > 10**-23:
|
||||||
|
break
|
||||||
|
|
||||||
if showGUI:
|
if showGUI:
|
||||||
# Draw map
|
# Draw map
|
||||||
|
Reference in New Issue
Block a user