From 56fb57dc458bf7fc634793107c43ee4d20937017 Mon Sep 17 00:00:00 2001 From: Nathan Beaud Date: Mon, 18 Mar 2024 11:09:26 +0100 Subject: [PATCH] Fixing minor errors and adding a QR code for owner --- QR_code_Owner.png | Bin 0 -> 1649 bytes redball_chase.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 QR_code_Owner.png diff --git a/QR_code_Owner.png b/QR_code_Owner.png new file mode 100644 index 0000000000000000000000000000000000000000..8653ecd0f1182a0c2c8ef7d6727470c7e529364e GIT binary patch literal 1649 zcmeAS@N?(olHy`uVBq!ia0y~yVAKI&4mO}jWo=(6kYY)9^mSxl*x1kgCy^D%S4j2< z@?~JCQe$9fXklRZ1r%y{!N5>zz`*b-fq}tl1_Oh5!JJ)zHb4osByV>YAPodRop;v* zDb50q$YLO!0LCA(oz62buoio|IEGZ*dVAL~OW9MzHE`w2SdPs9uP-^=J|QQ;KWmkv ztK)?K%g#qOaGX4;%2xN}uSMTuHh~Z4Z?ZG|2yS9c;Sigk7~#;Cz$i&W&i{F}4f*}Y zAAkE8t|1f9m>@Rb6CK9l|XXdjt75ndRfBw1ho8h(?LoE9_AN5eg92(p0T-(g7bz3o`XzAEZipqFgZP^ z{fmDXJ$!4XJ>NR<)ghZaLLs!w@=wyC9`?H9yjaac*!1|*Wtqzp^@Z<66hA%b|8`F( zL8DJ*o_qb(>Nkhw?li-#=VKpQ&L(V0UBz8?fro^`#_-u%OYMBmNW;X+Ew6XS{w$wS za4+_LuIt*tkNFh)*jzhrooKZ2^&Vln z@}n)!6Ax9E7aztI2hcE+Fh0A|Hz@0V?xFl`*=a$u*ZWk+ts=&@uq(?XcJI60vi)dG zB+n zD78JAFHX(3?vy5wwT{imJlFO8cWt%Z{B-%`?prRIhmIs)uSsp1Z?HX*VC;cX_6&og zGYn?V`0#D&t>=ClUhlbj{|ups10}#&WxlJ*YTvbRo^AR3?irzEk~r(Ie%aoQX-(Sx z8DZxhthHpA&56%vg+DXTEr~ohv&`2p%Xr=^l~#SC)A;nT*&lsoT=20tJoWr!)j>wdF%K{8#|CkRP<|!6@v!@AI4y%^9MwFx^mZVxG7o`Fz1|tI_ z6I}yiT|mdKI;Vst E04DfLcK`qY literal 0 HcmV?d00001 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