|
Java and C++ integration, UDP/TCP
I have written the skeleton of my vision code in C++ now. That runs on the Driver station computer parallel to all the FMS tasks. Our robot is coded in Java. To bring these together, C++ => Java, DS => cRIO, I am thinking about using network sockets.
I would prefer to use UDP because it is faster, but as I've heard, the UDP implementation is either non-existent or doesn't function well in Java, so TCP can work.
I'm persuading the rest of the programming team to work on a small socket client, but they probably either don't understand network sockets or they aren't showing GP.
How is the socket networking done with Java on the cRIO? I could use that as a starting point for getting the rest of the programmers to understand what I'm trying to do!
|