I am using C++ to replicate the OpenROV stuff done with Node.js. I am also using a Raspberry Pi instead of a BBB, but it’s a slow go to write the code for the various sensors. I plan to use the BBB and Node.js with the OpenROV, right out the box…but then slowly replace that hardware with my own at some point.
If you know some C++, you can use Qt to do what you want to do Vai. In addition to being cross-platform (and available for embedded systems), it has excellent support for TCP/UDP sockets, serial communications and mutli-threaded applications. So that’s an excellent place to start if you want to use C++ to do this.
The one problem I see you having is how to connect the sensors to your computer, and also provide PWM motor control to the ROV. Maybe you plan to still use the Arduino? I think that could be a potential issue for you. You can use stand-alone i2c (or SPI) motor controllers, but then you need a way for your computer to support an i2c (or SPI) bus…physically and logically. How were you planning to do this–not to mention getting sensor data back?
You have an interesting idea, but I don’t know how you could make it happen when you need that sort of hardware to actually provide control and accept sensor data–not to mention all the physical wires it will take from your compute out to the ROV.
EDIT: I forgot to mention that the reason I mentioned Qt is because I’ve seen forum threads that discussed running MATLAB code from Qt-based GUI applications. Although I’ve never done it, I know that you can also create a GUI from inside MATLAB. So that may well be an option for you as well of course. But the hardware control I mentioned above will still be an issue you’ll have to overcome, I think.