Software_Joystick service
As mentioned before in this phase, before making it autonomous I am going to use a joystick to control the cub. This is what I am currently using: Logitech Extreme 3D PRO There are many ways to get the output from these devices. There are lots of libraries and we can even read the data directly from the device which is not flexible. For this purpose I am going to use SFML which is basically a lightweight 2D game engine and I have some experiences using it. The way this library is usually used is through the game loop, the loop that goes on and on through the entire period of the game, each time returning all of the events regarding mouse, keyboard, joystick, etc in the context of the game window. Since we don't need the game window and the game loop we should use the other way. We are going to use it using the update function manually and subsequently checking for the joystick events. To make the code more open-close I used observer/observable pattern. There is a class calle...