Calculate the velocity based on the "map" points and other data
Calculate the velocity based on the lidar detected points and other data
"""
now=time.time()
...
...
@@ -57,7 +66,8 @@ class ReactiveMove(Node):
print("STOP ROBOT")
returnTwist()# Return a zero velocity
# If it's been rotating for more than 5s, it's probably stuck in a corner, so we rotate it completely, until >3.14s which is equivalent to a rotation of >180°
# If it's been rotating for more than 5s, it's probably stuck in a corner
# In this case, a u-turn is performed, until >3.14s which is equivalent to a rotation of >180°