Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   How to run GRIP in headless mode on the driver station? (http://www.chiefdelphi.com/forums/showthread.php?t=143472)

dszlucha 08-02-2016 19:41

How to run GRIP in headless mode on the driver station?
 
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

Re: How to run GRIP in headless mode on the driver station?
 
I think this should work. Run this from a command prompt.

Code:

java -jar C:\Users\USERNAME\AppData\Local\GRIP\app\core-1.2.0-all.jar [MY_PROJECT.GRIP]
You should get something like this:

Code:

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

Re: How to run GRIP in headless mode on the driver station?
 
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

Re: How to run GRIP in headless mode on the driver station?
 
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

Re: How to run GRIP in headless mode on the driver station?
 
Sounds good. Looking forward to an update.

Thanks!

David

MaskedBandit1 09-07-2016 14:08

Re: How to run GRIP in headless mode on the driver station?
 
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

Re: How to run GRIP in headless mode on the driver station?
 
Quote:

Originally Posted by MaskedBandit1 (Post 1596017)
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


All times are GMT -5. The time now is 04:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi