Fixing minor errors and adding a QR code for owner

This commit is contained in:
Nathan BEAUD 2024-03-18 11:09:26 +01:00
parent 63a119a42c
commit 56fb57dc45
2 changed files with 2 additions and 2 deletions

BIN
QR_code_Owner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -73,7 +73,7 @@ def image_callback(msg):
if abs(err) > 100: # Need to rotate DogBot to align with the ball
twist_msg.angular.z = -0.005 * err
else: # Move forward towards the ball
twist_msg.linear.x = 0.2
twist_msg.linear.x = -0.2
else:
if current_state == "searching":
twist_msg.angular.z = 0.5 # Rotate DogBot if the ball is not found
@ -90,7 +90,7 @@ def execute_half_circle():
twist_msg.angular.z = 0.5 # Positive for counter-clockwise, negative for clockwise
# Set a small or zero linear velocity to pivot around the ball
twist_msg.linear.x = 0.05
twist_msg.linear.x = -0.05
# Calculate duration needed to perform a half-circle maneuver around the ball
duration = 2 # Duration in seconds, adjust based on your robot's performance