View Full Version : How to run GRIP in headless mode on the driver station?
dszlucha
08-02-2016, 19:41
Hello!
I'd like to be able to run GRIP in headless mode on the driver station such that the drivers can log in and GRIP starts up along with our vision pipeline without having to navigate the GRIP menus to load the .grip file.
Are there command line options for GRIP to 1. start in headless mode and 2. automatically load and run a .grip pipeline?
Thanks!
David
ThomasClark
08-02-2016, 22:57
I think this should work. Run this from a command prompt.
java -jar C:\Users\USERNAME\AppData\Local\GRIP\app\core-1.2.0-all.jar [MY_PROJECT.GRIP]
You should get something like this:
Loading Dependency Injection Framework
Feb 08, 2016 11:01:56 PM java.util.logging.LogManager$RootLogger log
CONFIG: Configuration done.
Feb 08, 2016 11:01:56 PM java.util.logging.LogManager$RootLogger log
CONFIG: GRIP Version: 1.2.0
platform: /Linux/amd64/
Feb 08, 2016 11:01:57 PM edu.wpi.grip.core.Main start
INFO: Loading file test.grip
Feb 08, 2016 11:01:57 PM edu.wpi.grip.core.Main start
INFO: SUCCESS! The project is running in headless mode!
Feb 08, 2016 11:01:57 PM edu.wpi.grip.core.PipelineRunner$1 startUp
INFO: Pipeline Starting
dszlucha
09-02-2016, 19:52
Hi Thomas.
Unfortunately I get an exception when I try to run GRIP in headless mode on Windows:
C:\Users\David>java -jar C:\Users\David\AppData\Local\GRIP\app\core-1.2.0-all.jar test.grip
Exception in thread "main" java.lang.IllegalArgumentException: Unknown signal: HUP
at sun.misc.Signal.<init>(Unknown Source)
at edu.wpi.grip.core.Main.main(Main.java:39)
I tried setting CLASSPATH to the C:\Users\David\AppData\Local\GRIP\app directory and got the same error.
David
ThomasClark
09-02-2016, 20:48
Oh, I guess you can't run in headless mode on Windows. SIGHUP is a unix-specific signal, but it's not really essential that it works except when it's running from the deploy dialog. I can fix it for the next release.
dszlucha
09-02-2016, 21:15
Sounds good. Looking forward to an update.
Thanks!
David
MaskedBandit1
09-07-2016, 14:08
Hello, just wondering if there was ever any solution that was released allowing you to run grip in headless mode on driver station computer. Also, just to be clear, when you run GRIP on ds computer headless, you do not need a coprocessor on the robot such as a pi or jetson board correct? Thank you. I appreciate any forthcoming answers.
ThomasClark
09-07-2016, 20:40
Hello, just wondering if there was ever any solution that was released allowing you to run grip in headless mode on driver station computer. Also, just to be clear, when you run GRIP on ds computer headless, you do not need a coprocessor on the robot such as a pi or jetson board correct? Thank you. I appreciate any forthcoming answers.
Yep, this was fixed a while ago (https://github.com/WPIRoboticsProjects/GRIP/pull/498)
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.