Go to Post By far, the worst thing about it was the severe lack of cowbell. There was no cowbell what so ever. Had there been cowbell that would have completely changed everything for me. - Wildcat [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-02-2016, 19:41
dszlucha dszlucha is offline
Registered User
FRC #1518 (Raider Robotics)
Team Role: Mentor
 
Join Date: Oct 2015
Rookie Year: 2016
Location: Rochester, NY
Posts: 12
dszlucha is an unknown quantity at this point
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
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2016, 22:57
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
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
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2016, 19:52
dszlucha dszlucha is offline
Registered User
FRC #1518 (Raider Robotics)
Team Role: Mentor
 
Join Date: Oct 2015
Rookie Year: 2016
Location: Rochester, NY
Posts: 12
dszlucha is an unknown quantity at this point
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
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2016, 20:48
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
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.
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2016, 21:15
dszlucha dszlucha is offline
Registered User
FRC #1518 (Raider Robotics)
Team Role: Mentor
 
Join Date: Oct 2015
Rookie Year: 2016
Location: Rochester, NY
Posts: 12
dszlucha is an unknown quantity at this point
Re: How to run GRIP in headless mode on the driver station?

Sounds good. Looking forward to an update.

Thanks!

David
Reply With Quote
  #6   Spotlight this post!  
Unread 09-07-2016, 14:08
MaskedBandit1 MaskedBandit1 is offline
MaskedBandit1
AKA: Anurag
FRC #2383 (Ninjineers)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Florida
Posts: 4
MaskedBandit1 is an unknown quantity at this point
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.
Reply With Quote
  #7   Spotlight this post!  
Unread 09-07-2016, 20:40
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: How to run GRIP in headless mode on the driver station?

Quote:
Originally Posted by MaskedBandit1 View Post
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
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 00:42.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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