Is it possible to integrate the raspberry pi on our robot so that it works with the cRIO. We use java to program our bot.
Yes, but read the rules about additional electronics on the bot. Particularly rules about control of actuators.
You might find the Network Tables library useful for managing communication with the cRIO.
Mr Tim Klein
Code Guild Mentor
FRC Team 3966 STEMpunks
Team 3946 used a RPi to do our visions processing/goal tracking last year. We created a Socket Server on the Pi in Python and a client in Java (that ran in its own thread as not to disrupt real-time functions if the connection was dropped).
All of our code is available here: UltimateAscent
The specific classes you would probably want to look at are ThreadedPi, ThreadedBerryPi under Subsystems, and PrintThreadPiData under Commands. If you want to look at the unthreaded version (also far less tested) the files are SocketPi, RaspberryPi and PrintPiData
Here is the code we were running on the RPI: PyGoalFinder
Good Luck!
We experimented with this a bit last year, I was a fan of using I2C to communicate with the Pi, but I had to write an I2C slave driver to be able to implement that.
If you’re interested, let me know and I can try to dig that up for you.