Go to Post Arefin Will You go to the prom with me :D ? i Have a dress picked out and everything :) - Tytus Gerrish [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 17-01-2016, 16:11
Team DRIFT Team DRIFT is offline
Registered User
FRC #4091
 
Join Date: Jan 2015
Location: Santo Domingo, Dominican Republic
Posts: 20
Team DRIFT is an unknown quantity at this point
How to use GRIP?

How do you get the image of the camera into GRIP? and also, how do you get the results from that into the network table? Do you use GRIP outside of your code? or do you have to incorporate it into it?
  #2   Spotlight this post!  
Unread 17-01-2016, 16:18
timtim17's Avatar
timtim17 timtim17 is offline
Programmer
AKA: Austin
FRC #1294 (Top Gun Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Sammamish, WA
Posts: 13
timtim17 has a spectacular aura abouttimtim17 has a spectacular aura abouttimtim17 has a spectacular aura about
Re: How to use GRIP?

As far as I know, you run GRIP on either your DS PC, your roboRIO, or a secondary processor such as a Raspberry Pi. The webcam is fed in as just a normal webcam ("Add Webcam"), and the data can be fed out to NetworkTables using a block in GRIP (i.e. Publish ContoursReport). See this example from WPILib screensteps to see how to use the data in your robot code.
  #3   Spotlight this post!  
Unread 17-01-2016, 16:19
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 242
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: How to use GRIP?

Put the Web cam on your PC and walk through the examples found http://wpilib.screenstepslive.com/s/4485/m/50711

Once you see the power of the tool then you will need to learn how to deploy the app to the roboRio. First the tutorials on using grip.
  #4   Spotlight this post!  
Unread 17-01-2016, 17:56
Team DRIFT Team DRIFT is offline
Registered User
FRC #4091
 
Join Date: Jan 2015
Location: Santo Domingo, Dominican Republic
Posts: 20
Team DRIFT is an unknown quantity at this point
Re: How to use GRIP?

Thanks for the help, timtim17 and cpapplefamily.

We are already aware of the Screensteps and we love them and we have seen the power of GRIP (it's pretty freaking powerful, I must admit). But how do we actually deploy it to the roboRIO?

Also, timtim17, our webcam is connected to our roboRIO, not our computer, so we can't actually add it in the "add a webcam" option. Is there a way to add it on there through the roboRIO?

The other thing is that I'm not sure how to actually connect the resulting data to the code. I know that there is a deploy option, where You type in Your team number or roboRIO's address but it isn't working for us, and I'm not certain as to why. With that in mind, I don't see how it could publish to the tables without even knowing where the tables it's publishing to are.

Does anyone know about running it on a separate processor, on the DS or the roboRIO and how to actually do any of those? All help is appreciated.

As I'm sure is clear, we're fairly confused. Thanks for all the help!
  #5   Spotlight this post!  
Unread 17-01-2016, 18:04
Team DRIFT Team DRIFT is offline
Registered User
FRC #4091
 
Join Date: Jan 2015
Location: Santo Domingo, Dominican Republic
Posts: 20
Team DRIFT is an unknown quantity at this point
Re: How to use GRIP?

Timtim17, I just found the link You give to someone else with a similar question. I think that will likely help us in any way we need. We'll let You know how it works out tomorrow.

Once more, thanks.
  #6   Spotlight this post!  
Unread 17-01-2016, 19:25
cpapplefamily cpapplefamily is offline
Registered User
FRC #3244 (Granite City Gearheads)
Team Role: Mentor
 
Join Date: May 2015
Rookie Year: 2015
Location: Minnesota
Posts: 242
cpapplefamily has a spectacular aura aboutcpapplefamily has a spectacular aura about
Re: How to use GRIP?

The deploy to Rio has been the hurdle. As far as I know you must create the profile.grip with the camera connected to the pc. Then get over the hurdle of deploing. There has been lots of chatter on how to get this to work. I been previewing the latest repository and the next release will be the one that takes this app off the map. I hadn't tested to see if the deploy function has improved let's hope.
  #7   Spotlight this post!  
Unread 18-01-2016, 02:37
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 use GRIP?

Quote:
Originally Posted by cpapplefamily View Post
There has been lots of chatter on how to get this to work. I been previewing the latest repository and the next release will be the one that takes this app off the map. I hadn't tested to see if the deploy function has improved let's hope.
Yeah, the deploy UI seems to be tripping up a lot of people from what I can tell. I've been working on a new version that has better error reporting and status messages, among other reliability improvements.

https://github.com/WPIRoboticsProjects/GRIP/pull/386

Feedback would be very much appreciated.
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC

Last edited by ThomasClark : 18-01-2016 at 02:40.
  #8   Spotlight this post!  
Unread 19-01-2016, 01:08
Team DRIFT Team DRIFT is offline
Registered User
FRC #4091
 
Join Date: Jan 2015
Location: Santo Domingo, Dominican Republic
Posts: 20
Team DRIFT is an unknown quantity at this point
Re: How to use GRIP?

Thanks, guys. At least it's good to know that we're not alone in our struggle If/when You have some way of getting past the whole deploying issue, please let us know.

Much appreciated.
  #9   Spotlight this post!  
Unread 19-01-2016, 10:03
Xanawatt Xanawatt is offline
Registered User
FRC #1024
 
Join Date: May 2015
Location: Indianapolis, Indiana
Posts: 22
Xanawatt is an unknown quantity at this point
Re: How to use GRIP?

If I wanted to run GRIP on a raspberry pi, would I have to download the linux version of GRIP? I currently have the pi running raspbian but that can be changed if need be.
  #10   Spotlight this post!  
Unread 19-01-2016, 10:25
iSpotix iSpotix is offline
Registered User
FRC #4049
 
Join Date: Jan 2016
Location: Pittsburgh
Posts: 27
iSpotix is an unknown quantity at this point
Re: How to use GRIP?

Quote:
Originally Posted by Xanawatt View Post
If I wanted to run GRIP on a raspberry pi, would I have to download the linux version of GRIP? I currently have the pi running raspbian but that can be changed if need be.
Yes, from the raspbian website.

Quote:
Raspbian is a free operating system based on Debian optimized for the Raspberry Pi hardware.
So you will want to download the linux version.
  #11   Spotlight this post!  
Unread 19-01-2016, 12:51
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 use GRIP?

The official release of GRIP doesn't support Raspberry Pi yet. The linux version in the downloads is for x64 processors, and the deployable roboRIO binaries are for the arm-softfp ABI (the raspberry pi is arm-hardfp)

Someone
did manage to get a version built for the Pi, though. I haven't personally tested it, but it looks promising.

https://www.dropbox.com/s/7iueslu26a...yable.jar?dl=0
__________________
GRIP (Graphically Represented Image Processing) - rapidly develop computer vision algorithms for FRC
  #12   Spotlight this post!  
Unread 20-01-2016, 15:31
Team DRIFT Team DRIFT is offline
Registered User
FRC #4091
 
Join Date: Jan 2015
Location: Santo Domingo, Dominican Republic
Posts: 20
Team DRIFT is an unknown quantity at this point
Re: How to use GRIP?

This is the error I get, if that helps:

Failed to deploy
java.io.IOException: Failed to deploy
at edu.wpi.grip.ui.util.deployment.DeployedInstanceMa nager.scpFileToTarget(DeployedInstanceManager.java :162)
at edu.wpi.grip.ui.util.deployment.DeployedInstanceMa nager.access$200(DeployedInstanceManager.java:41)
at edu.wpi.grip.ui.util.deployment.DeployedInstanceMa nager$1.call(DeployedInstanceManager.java:141)
at edu.wpi.grip.ui.util.deployment.DeployedInstanceMa nager$1.call(DeployedInstanceManager.java:137)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:266)
at java.util.concurrent.Executors$RunnableAdapter.cal l(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.jav a:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.jcraft.jsch.JSchException: Auth fail
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.exe cute(Scp.java:245)
at edu.wpi.grip.ui.util.deployment.DeployedInstanceMa nager.scpFileToTarget(DeployedInstanceManager.java :160)
... 9 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:512)
at com.jcraft.jsch.Session.connect(Session.java:183)
at org.apache.tools.ant.taskdefs.optional.ssh.SSHBase .openSession(SSHBase.java:223)
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.upl oad(Scp.java:324)
at org.apache.tools.ant.taskdefs.optional.ssh.Scp.exe cute(Scp.java:226)
... 10 more
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 02:06.

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