Go to Post There can never be enough recognition of a job well done. We can never say enough Thank You's. We can never measure the impact that an inspirational teacher or mentor can make on a student because it's priceless. - KathieK [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 03-09-2016, 07:19 PM
sandiskthefrog sandiskthefrog is offline
Registered User
FRC #0503
 
Join Date: Mar 2016
Location: Michigan
Posts: 4
sandiskthefrog is an unknown quantity at this point
How to run GRIP in headless mode?

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:
Code:
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/sh....php?p=1537810
https://github.com/WPIRoboticsProjects/GRIP/issues/267
Any help is appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 03-09-2016, 07:34 PM
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: How to run GRIP in headless mode?

Headless mode on the laptop or headless mode on the RIO?
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote
  #3   Spotlight this post!  
Unread 03-11-2016, 08:04 PM
sandiskthefrog sandiskthefrog is offline
Registered User
FRC #0503
 
Join Date: Mar 2016
Location: Michigan
Posts: 4
sandiskthefrog is an unknown quantity at this point
Re: How to run GRIP in headless mode?

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/WPIRoboticsProjec...EW-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.

Last edited by sandiskthefrog : 03-11-2016 at 08:19 PM. Reason: Point of clarification
Reply With Quote
  #4   Spotlight this post!  
Unread 03-12-2016, 04:32 PM
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 68
codedr will become famous soon enoughcodedr will become famous soon enough
Re: How to run GRIP in headless mode?

try this ....
Code:
java -cp C:\Users\Robot1\AppData\Local\GRIP\app\core-1.3.0-rc1-all edu.wpi.grip.core.Main  decentGripOutside.grip
Or this ...
Code:
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
Reply With Quote
  #5   Spotlight this post!  
Unread 03-13-2016, 04:30 AM
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?

Code:
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.
__________________
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 07:53 AM.

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