In the previous blog, we had decided to send a JSON file format to adjust the motors of Hamster robot. However, we found that the structure in the mobile environment is entirely different from our original thought. When a user drew some lines in the display, the object that receives the user’s input takes two coordinates of starting and ending points with curved information.
(https://developer.apple.com/documentation/uikit/uibezierpath?language=objc)
When we took the coordinates of drawing, it has not only information on starting and ended points but also has ‘quadto’ information which shows us lines has a geometric shape. The picture below is about a JSON file containing coordinates of two paths.

Therefore, we refer to a blog explaining robots’ turning method. To turn right or left accurate, we need to calculate the angular velocity of the left wheel and the angular velocity of the right wheel. We need to control the position of the robot in x coordinate and y coordinate as well as its orientation.
Same speed of both wheels: go straight
The speed of a wheel is smaller: the robot turns in that direction

(http://enesbot.me/kinematic-model-of-a-differential-drive-robot.html)
After reading it, we realized that the second assignment of SDR class is similar to our purpose so now we are examining how we will implement the manipulation of robot motors by these two references.


