Go to Post So I thought to myself "Man, I wish I was a part of a large technically minded community... oh... right..." - BordomBeThyName [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2016, 19:25
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
GRIP needs to be reloaded each time the robot is restarted

So we *finally* have a GRIP program that does everything we need to and works well. While testing however, we found that whenever the robot is turned off and turned back on, GRIP is no longer loaded. We were wondering if anyone else has had this problem and found a solution to it. Thanks!
- Team 1100 Software Subteam
__________________
/**
* @author SupremeSteak1
*/
public void solveProblems(ArrayList<Problems> problems) {
Runtime.getRuntime().exec("rm -rf problems");
}
  #2   Spotlight this post!  
Unread 02-02-2016, 09:53
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
Re: GRIP needs to be reloaded each time the robot is restarted

We ran into this problem last night and were about ready to make a post about it. Don't know if running grip on a coprocessor will fix this problem.
  #3   Spotlight this post!  
Unread 02-02-2016, 10:44
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is offline
Founder and CEO, DeadMemes Studios
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 407
Poseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud of
Re: GRIP needs to be reloaded each time the robot is restarted

Quote:
Originally Posted by SupremeSteak1 View Post
So we *finally* have a GRIP program that does everything we need to and works well. While testing however, we found that whenever the robot is turned off and turned back on, GRIP is no longer loaded. We were wondering if anyone else has had this problem and found a solution to it. Thanks!
- Team 1100 Software Subteam
Same issue, but we have to redeploy GRIP every time we deploy code. This makes testing slower and obviously won't work during competition. Was about to make a thread about it too.
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder


  #4   Spotlight this post!  
Unread 02-02-2016, 10:54
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: GRIP needs to be reloaded each time the robot is restarted

So a few of those I mentor have been playing with GRIP.
It seems it runs a Java JAR file on the RoboRIO to talk to OpenCV.
The description of GRIP under 'How was GRIP made'

Have you listed out the processes when it is working via PuTTY and SSH?

Quote:
ps aux | grep java
The aux means:
a = show processes for all users
u = display the process's user/owner
x = also show processes not attached to a terminal

The grep will search for any line in the output that contains the work 'java'.

You should see your GRIP project name on one of the running JAVA processes something like this:

Quote:
java FindRed.jar
Then check to see if this still appears if it failed to start?
I would expect that to automatically start somewhere it must call Java to run that JAR file at restart.
  #5   Spotlight this post!  
Unread 02-02-2016, 12:52
robert1356 robert1356 is offline
Registered User
AKA: Robert Palmer
FRC #3824 (RoHAWKtics)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Knoxville, TN
Posts: 48
robert1356 is an unknown quantity at this point
Re: GRIP needs to be reloaded each time the robot is restarted

I am only at the experimentation stage, but hoping to do something closer to production tonight. Once the GRIP jar file is deployed (using the GRIP app), is it supposed to start automatically when the robot is rebooted or do we need to create our own startup script? Anyone know? Also, what we will actually need to do is:

Let the robot code launch
- robot code will set the exposure and brightness from preferences
- robot code will disconnect from the camera
Need to launch the GRIP jar file

The above is needed because, based on my initial testing, if you adjust the exposure and brightness, they reset to some default value on power cycle and GRIP has no option to set the values
  #6   Spotlight this post!  
Unread 02-02-2016, 15:06
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 148
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
Re: GRIP needs to be reloaded each time the robot is restarted

You need to start up GRIP on your own, it does not restart with your robot code. The GRIP guys have a tutorial on their GitHub that you can look at here: https://github.com/WPIRoboticsProjec...va-FRC-program
  #7   Spotlight this post!  
Unread 02-02-2016, 15:10
Poseidon5817's Avatar
Poseidon5817 Poseidon5817 is offline
Founder and CEO, DeadMemes Studios
AKA: Mitchel Stokes
FRC #5817 (Uni-Rex)
Team Role: Mentor
 
Join Date: Aug 2013
Rookie Year: 2014
Location: Clovis, CA
Posts: 407
Poseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud ofPoseidon5817 has much to be proud of
Re: GRIP needs to be reloaded each time the robot is restarted

Quote:
Originally Posted by fsilberberg View Post
You need to start up GRIP on your own, it does not restart with your robot code. The GRIP guys have a tutorial on their GitHub that you can look at here: https://github.com/WPIRoboticsProjec...va-FRC-program
This looks perfect. Thanks!
__________________
My FRC History:

2014 - Team 1671: Central Valley Regional Finalist and Chairman's Award Winner, Sacramento Regional Finalist, Archimedes Quarterfinalist
2015 - Team 1671: Central Valley Regional Semifinalist, Sacramento Regional Semifinalist and Chairman's Award Winner, Newton Winner, Einstein Winner
2016 - Team 5817: Central Valley Regional Finalist and Rookie All-Star, Orange County Regional Quarterfinalist and Rookie All-Star, Newton Division
2017 - Team 5817: Return of the bench grinder


  #8   Spotlight this post!  
Unread 02-02-2016, 15:59
1024Programming 1024Programming is offline
Registered User
FRC #1024
 
Join Date: Jan 2014
Location: Indiana
Posts: 43
1024Programming is an unknown quantity at this point
Re: GRIP needs to be reloaded each time the robot is restarted

Quote:
Originally Posted by fsilberberg View Post
You need to start up GRIP on your own, it does not restart with your robot code. The GRIP guys have a tutorial on their GitHub that you can look at here: https://github.com/WPIRoboticsProjec...va-FRC-program
AHAH! They changed it! looking at this; now it should work.
  #9   Spotlight this post!  
Unread 03-02-2016, 19:35
SupremeSteak1 SupremeSteak1 is offline
Registered User
AKA: Thomas Hayden
FRC #1100 (T-Hawks)
Team Role: Programmer
 
Join Date: Oct 2014
Rookie Year: 2009
Location: Northborough, MA
Posts: 20
SupremeSteak1 is an unknown quantity at this point
Re: GRIP needs to be reloaded each time the robot is restarted

Quote:
Originally Posted by fsilberberg View Post
You need to start up GRIP on your own, it does not restart with your robot code. The GRIP guys have a tutorial on their GitHub that you can look at here: https://github.com/WPIRoboticsProjec...va-FRC-program
Thanks! This is exactly what we were looking for!
- Team 1100 Software Subteam
__________________
/**
* @author SupremeSteak1
*/
public void solveProblems(ArrayList<Problems> problems) {
Runtime.getRuntime().exec("rm -rf problems");
}
Closed Thread


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 01:32.

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