|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|||||
|
|||||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: How to use GRIP?
Quote:
https://github.com/WPIRoboticsProjects/GRIP/pull/386 Feedback would be very much appreciated. Last edited by ThomasClark : 18-01-2016 at 02:40. |
|
#8
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Re: How to use GRIP?
Quote:
Quote:
|
|
#11
|
||||
|
||||
|
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 |
|
#12
|
|||
|
|||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|