NUbots / robocup

The NUbot's RoboCup Code
GNU General Public License v3.0
34 stars 17 forks source link

Fix KickScripts #33

Open josiahw opened 11 years ago

josiahw commented 11 years ago

fix up our scripts so we can script using IK to make balance easier.

josiahw commented 11 years ago

The ScriptedKick class needs to be checked for correctness so it handles behaviours properly. The new behaviour will try to call it continuously while in striker mode, so it is the job of the kick to let the movement manager know that it cannot yet kick (ie the ball is outside the kickbox). I think this currently happens, but occasionally we get strange behaviour.

mmetcalfe commented 11 years ago

The angle comparisons in ScriptKick::kickToPoint look dodgy, which could be causing the strange behaviour. I'll look into improving the SckriptKick class over the weekend.