Moving robots in regular polygons with the experimental UDCP protocol.
360 Final Project for Joseph Savold, Marshall Clyburn, and Jackson Wood
ID: 0theory
Camera ID: 19
To run the client, the parameters must be entered in the following order:
To run the middleware, the parameters must be eneterd in the following order:
The server is stateless and can continue to communicate with a client through multiple sessions while the client will run through the routine once and then exit.
One of the known problems is the robot is slightly inaccurate when it moves. When it is finished with its route, it is off from the beginning point by a couple tenths of a meter.
We split the program into two programs, the middleware server and the client. The client was in charge of generating the commands to send to the middleware. It abided by the specifications set by the class for the project. It sent UDP packets of 1000 bytes to the middleware. It is able to detect if something went wrong when communicating with the middleware. If anything goes wrong, it timeouts.
Our middleware is responsible for generating the HTTP packets to send to a server that controls a robot. If the TCP packet received from the server is larger than 988 bytes, it will fragment the data into multiple UDCP packets to send to the client. The client is then able to repackage them in the correct order.