patrick_c#
Germany
Asked
— Edited
Hello, i am very new to EZ-Robot, and from Germany so sry for my bad Englisch. I want that my JD walk to an red ball, for example, and if he is in front of the ball he should kick it with his feet, and run then after the ball again. I am using the normal ARC, and have actually no ideo how to solve thos problem blush...
Thanks in advance, Patrick
Hi Patrick - that can be done. However, we do not see this as a problem. EZ-Robot Revolution and the accompanying software ARC were designed to help you do anything you wanted with robotics.
In order to have your robot do something, you have to make it do something.
What you are asking for is a few different disciplines, and I recommend splitting it into a few stages..
Learn how to have your robot recognize a red ball. This can be done by simply learning how to adjust the camera tracking to see the ball. Your robot does not need to do anything about it - just learn how to have the robot see the ball only.
Now let's learn how to execute an action when the robot sees the ball. The action that you will want to use is "Kick". To have a robot perform an action when it sees an object, simply use the Tracking Start Script in the Camera Control and insert the ControlCommand() from the Cheat Sheet for KICK.
Now, you should have your robot kicking every time it sees a red ball. However, you will only want to kick when the robot sees the ball in the lower part of the camera. Well, you will need to do a few things for that...
Once you start figuring that out and get this far - you can begin adding more details. Such as, only kicking when the ball is within a specific area of the camera view. And finally, knowing when to kick versus when to chase the ball.
I would get to stage #3 at least before asking how to chase after a ball.
Thanks for answering
At least it works, but JD is only walking very slowly.
Regards, Patrick
Teach jd to walk faster
@patrickarduino Put a girl JD in front of him.... He'll speed up
I have no girl-JD, but i can try some Arduinos, maybe he likes that