jordenh/MyoSim — pull request #2 by lordy1992 (2014-11-13 08:13:19+00:00)
Title: Simulator communication

This is a pretty huge commit, but here's a list of what changes it involves:

1.) Got the communication between the GUI and the hub working. I made the GUI the server and the hub the client, because it seems to me like we are more likely to have multiple hubs that listen to the GUI, and not vice versa (only one GUI sending data out to multiple apps seems reasonable).

2.) I fleshed out the functions in the fake Hub so that they work the same way as the real Hub. Same with the other mock objects. I changed the names of the mock objects to be the same as the Myo ones to prevent too much code change by the user. Wrapped the mock objects in a different namespace, myoSim.

3.) Created a test application that is very similar to the Thalmic Labs hello_myo example (it is in Hub_console.cpp). Note that I didn't have to change the code much to use the Simulator because it is supposed to look like the same API.

Note that I tested the example application, running the GUI and sending poses. Also, there is still a lot of work to be done. We need to support orientation, pairing, unpairing, etc.. Also, we need to come up with a protocol for communication (and not just send strings), doesn't have to be fancy though.