|
Multiple Languages on RoboRIO?
I've found that C++ is nice for doing vision and controlling certain sensors in FRC (not to mention speed or any serial bus communications). I also prefer Java for everything else. So, would it be possible to run both on a RoboRIO at the same time? If so, how would the two different parts of the program communicate?
<speculation>
You have to install the JRE onto the RoboRIO in order to work in Java, and install the latest version. I'm not sure exactly what this does inside the filesystem of the RIO, but that sounds to me like it may cause problems running two languages.
I suppose there would have to be a custom compiler in order to use both Java and C++. Rewriting WPILib stuff wouldn't be feasible, at least for me - I'm not really sure what goes on under the hood of the C++ toolchains or development tools added with the FIRST update suite.
</speculation>
Even if this isn't a possibility, I'd be interested to learn more about what is happening in the RoboRIO: what files are being accessed and where on the RIO (I've only scratched the surface, I assume, with FTP), how a program sends data through NetworkTables, what JNI is etc.
Thanks!
|