I have the mBot robot and I'm trying to get it to go to the other side of a cylindral obstacle.
Something like this:
What I know:
- Radius of the cylinder - r
- Robot's distance from the cylinder
- Wheel thickness - 1.5 cm
- Distance between the middle of each wheel - 11.5 cm
How would I achieve the above path?
The only thing I saw was this SO question that says:
The distance between the left and right wheel of the robot is 6 inches.
So the left wheel should travel at a distance of 2(pi)(radius+6)
And the right wheel should travel at a distance of 2(pi) (radius-6)
The problem with my robot is that you can't tell it to go 20cm to the right, nor can you tell it to turn 90 degrees to the right.
All you can do is set each motor's speed 0-255, so there's not way to put it in the formula disatance = time x speed.
I assume I have to set each motor's speed to a different value so they would go in a circle of radius x and then just exit at the half of the circle (like shown in the picture)