diff --git a/QR_code_Owner.png b/QR_code_Owner.png new file mode 100644 index 0000000..8653ecd Binary files /dev/null and b/QR_code_Owner.png differ diff --git a/redball_chase.py b/redball_chase.py index 14ae9af..3d7390d 100644 --- a/redball_chase.py +++ b/redball_chase.py @@ -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