Hi y’all, I’ve been racking my brains trying to get GRIP to run in headless mode for our robot. I’ve tried running the following command:
java -jar C:\Users\Robot1\AppData\Local\GRIP\app\core-1.3.0-rc1-all [decentGripOutside.grip]
thru command prompt but it’s telling me that it is unable to access the jar. I’ve checked multiple times that the path is correct and that there are no spelling errors. I’ve already consulted these links:
http://www.chiefdelphi.com/forums/showthread.php?p=1537810
https://github.com/WPIRoboticsProjects/GRIP/issues/267
Any help is appreciated! :]
Arhowk
March 9, 2016, 7:34pm
2
Headless mode on the laptop or headless mode on the RIO?
I don’t have a good grip on how GRIP works exactly (pun not intended, but appreciated nonetheless). Basically I’m trying to get my PC to do all the heavy lifting of applying filters in grip and calculating the network tables, and the only thing my robot needs to do is to get the network table values and use them in our code.
Edit: While I have you, does this
https://github.com/WPIRoboticsProjects/GRIP/wiki/Tutorial:-Run-GRIP-from-a-CPP,-Java,-or-LabVIEW-FRC-program
mean that I only have to deploy once to the RIO if I have this in my code? Then it’ll run grip off of the RIO next time I run my robot code?
Thanks.
codedr
March 12, 2016, 4:32pm
4
try this …
java -cp C:\Users\Robot1\AppData\Local\GRIP\app\core-1.3.0-rc1-all edu.wpi.grip.core.Main decentGripOutside.grip
Or this …
java -XX:-OmitStackTraceInFastThrow -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea -cp C:\Users\Robot1\AppData\Local\GRIP\app\core-1.3.0-rc1-all edu.wpi.grip.core.Main decentGripOutside.grip
C:\Users\Robot1\AppData\Local\GRIP\GRIP.exe --headless <file.grip>
No need to deploy first unless you’re running on the RIO or something.