Hi, I am currently trying to get our final project for school started. The project is to utilize a snesopart vision system to guide the robot to putt a golf ball acurately towards a hole. The other goal would be to get the robot to square the head of the club to the ball so it strikes it consistently and does not matter where the ball was placed within the region of the robots reach. I do not know where to start in terms of code and what the robot would need to process before striking the ball.
I am not familiar with Snesopart vision systems, but I would do this by choosing a golf ball that has a pattern on it and then locating the pattern with the vision system. You would have to have the pattern point towards the hole. You could still drop it anywhere. You would just need to position the ball so the pattern is facing up and pointing towards the hole each time you place the ball in front of the robot. Then, you can move the head of the club perpendicular to the pattern on the golf ball or something like that. This way, the golf club head would always swing towards the hole. Unfortunately, I do not know of a way that you could adjust the speed of the swing based on how far away or close the ball is to the hole. When it comes to programming the robot, I would wire the vision system to the inputs and outputs on the robot.