annu shah
Posts: 1
Joined: Tue Mar 24, 2015 3:16 pm

robot to reach (x,y) point on a board

Tue Mar 24, 2015 3:29 pm

hi,

my robot has to move on a 3000x2000 mm board.There is an object placed at a certain position with the (x y ) cordinate like (1500,1000) position how should i implement it.should i involve angle of rotation in it or do it like first move right for 15000 mm and then straight for 1000 meteres.

regards
annu

sokkeh
Posts: 7
Joined: Tue Mar 10, 2015 7:37 pm

Re: robot to reach (x,y) point on a board

Tue Mar 24, 2015 4:03 pm

you can manage to do both of them, one will be more efficient then the other. This is really something you wanna figure out on your own.

Easy way to do it would be forward 1000, turn then forward 500.

harder way to do it is to calculate the angle the robot has to turn and drive straight to the place you need it to go.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26659
Joined: Sat Jul 30, 2011 7:41 pm

Re: robot to reach (x,y) point on a board

Tue Mar 24, 2015 6:12 pm

Pretty basic geometry (sin.cosine.tan etc) and pythagorus....

Think that's a big enough hint for your homework!
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Return to “General discussion”