✨
This commit is contained in:
@ -249,7 +249,9 @@ try:
|
||||
|
||||
particle.add_uncertainty(particles, SIGMA, SIGMA_THETA)
|
||||
est_pose, certainty = particle.estimate_pose(particles) # The estimate of the robots current pose
|
||||
print(certainty)
|
||||
print("Certainty: ", certainty)
|
||||
if certainty < 1:
|
||||
break
|
||||
|
||||
if showGUI:
|
||||
# Draw map
|
||||
@ -261,7 +263,7 @@ try:
|
||||
# Show world
|
||||
cv2.imshow(WIN_World, world)
|
||||
|
||||
# drive_towards_middle(est_pose, arlo)
|
||||
drive_towards_middle(est_pose, arlo)
|
||||
|
||||
|
||||
finally:
|
||||
|
Reference in New Issue
Block a user