This will be a software simulator that people can connect to and try out their code before connecting to a real roombot. It should follow the same protocol as a real roombot and have a half-way decent simulation of how the roombot will move.
Objectives:
[x] Render a 2D canvas of the roomba
[x] Simulate the movement of the roomba when a drive command comes in
[x] Connect to a websocket that receives drive commands from the client
[x] Setup channels in phoenix to allow a client to connect and the simulator to connect
[x] Send sensor updates as the simulation runs
[x] Use collision detection to simulate the roomba stopping against a wall
[x] Generate a unique simulation ID for each user/session
This will be a software simulator that people can connect to and try out their code before connecting to a real roombot. It should follow the same protocol as a real roombot and have a half-way decent simulation of how the roombot will move.
Objectives: