![]() |
We are going to Want a GRIP fourm
I been testing the GRIP tool. We should start a forum to support it. I love the real time display when inserting the different filters.
|
Re: We are going to Want a GRIP fourm
Seconded. Absolutely love the simplicity of the program thus far and am certain that a sub forum for either solely GRIP, or a general one for vision processing would be of great use to many teams.
|
Re: We are going to Want a GRIP fourm
Third-ed! We're a Labview team hoping to learn how to run the deployed GRIP code using a shell command!
|
Re: We are going to Want a GRIP fourm
Hey! We are also planning on using GRIP this year, but we never worked with it! Is there a team who could share a exemple code or something like this, so we could take a look at the way it works ? (In java preferably)
Thanks |
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
I been looking though that. I'm looking now for how to get the image from the webcam (on the RoboRio) to the PC drivers station for processing with GRIP. I have GRIP publishing to the Network table and verified its there. I have not capture the data in Java for reaction but seems that is documented.
OR How to run the algorithms on the rio. |
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
I am looking at trying to use grip. What exactly is it? Is it a piece of software I have to download somewhere? Is it a library? Where do I get it from? Thanks.
|
Re: We are going to Want a GRIP fourm
Quote:
https://github.com/WPIRoboticsProjec...an-FRC-program http://wpilib.screenstepslive.com/s/4485/m/50711 |
Re: We are going to Want a GRIP fourm
Quote:
I made every steps from the tutorial, but I am having problems when it's time to read arrays values. I made a quick robot code as they are showing here, but my array of double who's suppose to receive the values is empty. Just so you know, my webcam is presently connected to my computer and not my robot. I can see every values in "Network Table Viewer". Thanks for your help. |
Re: We are going to Want a GRIP fourm
I'm not as fluent in Java or C++ as I am in Labview. Also, our team has yet to try the Network Tables for GRIP. We have just been running from our laptop for testing. Hopefully, we will start working with Grip by the end of this week or next week.
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
I am new to vision processing but not to computing, so I am trying to put together a how to get started guide. I definitely would like to see a forum. How do we make that happen?
|
Re: We are going to Want a GRIP fourm
4-thed. (5-thd?)
I agree, however more before me voiced the same! |
Re: We are going to Want a GRIP fourm
Agreed, there needs to be a forum
|
Re: We are going to Want a GRIP fourm
Quote:
Code:
NT: server: client CONNECTED: 10.33.60.25 port 56974Code:
table = NetworkTable.getTable("/GRIP/myContoursReport");Code:
System.out.println(table.containsKey("area"); |
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
![]() And this is what I am able to see in Network Table Viewer ![]() It seems like we now need to use NetworkTables 3.0 (Source) I am presently importing : Code:
import edu.wpi.first.wpilibj.networktables.Networktable; |
Re: We are going to Want a GRIP fourm
Hey, I'm also having problems accessing the data from my NetworkTables. This is my code, and I've also imported NetworkTables before my program. I'm not able to see live publishing from GRIP to the Network Tables, has anyone been able to successfully do this and could give me an example? I followed the instructions on WPILib, but I feel as if I'm missing some code. Also, we program in command-based and I'm not sure where to implement this code in that format.
Code:
public class Robot extends SampleRobot {Ashlyn |
Re: We are going to Want a GRIP fourm
Quote:
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Hey everyone, we're trying to get our GRIP deployed to the roboRIO (using its ip address 172.22.11.2 and our team number 4918) but every time we try to deploy it, GRIP says "failed to connect". Any reason why it might be doing this?
|
Re: We are going to Want a GRIP fourm
Quote:
As a side note, you really should put the operational part of your code into robotMain() instead of robotInit(), because FRCNetworkCommunication isn't getting initialized this way (you'll note it's not possible to enable your robot and the driver station says "no robot code" because you're never exiting robotInit). |
Re: We are going to Want a GRIP fourm
I got something to not fail by using the roboRIO.####-FRC.local in the advanced tab of deploy for an address. I then added the line
Code:
Runtime.getRuntime().exec(new String[]{"/usr/local/frc/JRE/bin/java", "-jar", "grip.jar", filename});One of these days someone's going to crack this and get it working I hope they share with the rest of us. I would still like to find out how to: 1: deploy to the rio 2: use the driver station to process the usb cam I do see my cam name is "cam1" but in grip its cam0 when plugged into the pc. All my searching on how to force the roborio cam name to cam0 resulted in just use the name it was assigned. |
Re: We are going to Want a GRIP fourm
I also browsed the roborio for mygripprogram.grip on the rio using sftp utility as discussed on how to add files to the robot but don't know where to look.
|
Re: We are going to Want a GRIP fourm
Hi Everyone,
My team has succeeded at making a GRIP vision script, loading it to the RIO and getting the values out of the network tables. the only thing that i now want to do is be able to controll the launching and stopping of grip from my code (instead of using the GRIP UI application) some things we tripped on getting this this point: -The Grip deploy process ---when you deploy make sure your settings are your robot's address ---after you deploy there is a delay (about a min) then a NEW button appears just above the deploy log window (it looks like the "play" triangle) Push this button to run the GRIP process in headless mode on the rio.. No data will be published to the network tables till you do this step. NetworkTables ---Despite the fact i told my last step in the GRIP script to publish to "Vision" which would translate to "GRIP/Vision" in networkTables .. it didnt use my value.. instead only the default value provided by the step appears to work. in out case this was a contours publish so its "GRIP/myContoursReport" Another Note: GRIP will have dedicated control of the camera.. Any attempts to stream the camera after grip has started will failed with an "in use" error. If your already streaming its likely grip wont be able to access the camera and will silently fail. If any team is looking as to how to use GRIP to do targeting i would be happy to provide a plain english write up on how we are approaching this problem and how you can use grip to solve it. |
Re: We are going to Want a GRIP fourm
Quote:
1. When developing the Grip script where is the camera connected? PC/Rio USB/IP Web cam 2. On the PC what is the Camera Name? Cam0.1.2.... 3. If USB what is the USB camera name when viewing the WebDashboard? 4. What is the Deploy address you are useing? I have never waited for the PC deploy and didn't know I would have an option to start the script on the Robot from the PC. I'll check that out. As for starting the GRIP Wiki say to add this to start the app with the robot. For stopping I don't have an answer but I can see a need. JAVA: Code:
Runtime.getRuntime().exec(new String[]{"/usr/local/frc/JRE/bin/java", "-jar", "grip.jar", filename}); |
Re: We are going to Want a GRIP fourm
Maybe to fix the problem of Grip vs Streaming the Grip app should generate a Java / C++ / your language script similar to RobotBuilder to insert directly into the code. Then They can share the same capture frames.
|
Re: We are going to Want a GRIP fourm
Quote:
2. Im lucky that even with the on board camera built into my laptop the usb camera we are using get identified as camera0 consistently when used on the RIO and on my laptop. 3. the process for getting the camera on the smartDashboard is entirely separate from using GRIP and thus they actually will conflict with one another. The strategy when using grip is to do the analysis of the image on the RIO and then only transmit the raw numerical data back to dash to assist the driver via indicators. 4. roborio-4525-frc.local Quote:
A GRIP script should include as its last step one of the RIO publish tasks. These push data to the networkTables mechanism that your Robot code can access. There are thus separate applications that talk via the networkTables. |
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
for the data to be good to the driver or autonomous system is needs to be constantly updating.. .if you see static numbers.. youll know somethings up.
|
Re: We are going to Want a GRIP fourm
Quote:
One planned feature for the next minor version of GRIP is a "publish image" operation. That should let you look at any image in your pipeline using SmartDashboard. |
Re: We are going to Want a GRIP fourm
I see the option for deploying a GRIP pipeline to the roboRIO. However, I'd like to try running my pipeline on a Raspberry Pi.
Is there an easy way to simply generate the pipeline's grip.jar file onto my local filesystem? |
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
I love the discussion going on. I've challenged our programming team with GRIP. I've asked them to give a short presentation to the team leaders and mentors about GRIP. What is it, what can it do, what are the pain points, and how can it make our bot better.
My first thought is to run it on a Raspberry Pi too. But we'll see. With all the talk in here, I think they'll get a good feel of what to expect. It might be interesting to spin up an IRC chat room in the evenings for help/advice, if there is interest in it. Being an alpha version, we're all experiencing growing pains. Brian |
Re: We are going to Want a GRIP fourm
Help me out please... What is GRIP?
Can you point me to documentation/description? |
Re: We are going to Want a GRIP fourm
GRIPis GRaphical Iage Processing. It allows easy creation of 'pipelines' that will allow you to identify objects. It's not apart of your robot code, but is a separate program. After getting things setup, you then have to connect the data from GRIP to your robot software.
Jojoguy10 posted a link for more information: http://wpilib.screenstepslive.com/s/4485/m/50711 |
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
if you have insight into the inner working of GRIP.. can you provide a build of the existing version where by i can programmatically start (<here is my .grip file) and stop() grip. suggesting we call out to an external process to run it means we have no control over grips lifecyle in relation to our robot. |
Re: We are going to Want a GRIP fourm
Quote:
In my code I created a variable to String filename = "myGripProgram.grip"; There is no documentation on how or why to do this I just assumed. It hasn't work for me yet. |
Re: We are going to Want a GRIP fourm
Quote:
I don't think JavaFX has been ported to arm linux, so you probably can only run in headless mode on a Pi. Let us know if it works. Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
We also might want to just let people start and stop the pipeline by setting a boolean in NetworkTables. Thoughts? |
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Has anyone been able to successfully deploy grip to their roboRio? Every time we try to deploy it we get a message saying that it failed. Has anyone encountered this error before? The firewall on our laptop is also turned completely off as well.
|
Re: We are going to Want a GRIP fourm
Pardon my ignorance but I can't seem to find the example files for the 2016 game.. the GitHub has the last 3 games (in addition to 3 fotos of a goat) but no 2016 game samples.
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
For updates, you can subscribe to this issue: https://github.com/WPIRoboticsProjects/GRIP/issues/366 |
Re: We are going to Want a GRIP fourm
Quote:
#### - your roborio team number For me roborio-####-frc:local did not fail but it did not transfer the files as well. When I used 10.##.##.20 it deployed and I got a Play/stop button above the counsel window. I'm still working on launching the Grip.jar from the robot code. Grip has a wiki to do this but its not working for me. |
Re: We are going to Want a GRIP fourm
We have tried using the advanced tab and retyping in the roboRio's address and have tried it using the mDNS and the IP address wirelessly and also directly connected to the roboRio through the USB 2.0 type B cable and none of these way seems to be able to deploy to the roboRio from GRIP. Though running GRIP from our pc we are still able to have it work and successfully use the Network tables, we are just unable to have the program deploy to the roboRio so that we don't require the laptop.
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Yes, we have tried all available addresses to connect to the roboRio with. I was starting to think it may be a configuration issue though be we are not sure. Have you setup any sort of password or user account in the NI Web Dashboard that would allow GRIP to push the needed files onto the roboRio or are you guys just using the default admin account with no password?
|
Re: We are going to Want a GRIP fourm
I did download and install filezila per the wpilib.setupscreens pages to connect and browse the roboRio via sftp. I wanted to see the deploied files. They were not the. The next day when testing again I got a successful deploy. This could of punched a hole in somewhere? It did confirm that files could be transferred or maybe when it logged in it opened the password.
I have had chats with the developers because I wished to directly copy the files. Coping the grip.1.0.0.jar as grip.jar and myGripPipe.grip to the usr/ivuser and sound like it might work. I have to confirm the file locations as I'm not near my pc now. Look at the wiki java/cpp page it exposes the rio folder location "deploy " use. This would be OK for me if I can get the robot code to launch grip.jar. as per the same java/cpp page. |
Re: We are going to Want a GRIP fourm
I have tried copying the files over manually however they did not work. When you were able to successfully deploy, were you doing it over ethernet?
|
Re: We are going to Want a GRIP fourm
I was wire ethernet. I was also using last year's hub. We have not dug into the new bag of tricks other than to inventory.
|
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
Quote:
While SampleRobot is okay for small test programs like this one, for your actual competition robot code, if you don't want to do command-based programming, I recommend you use a different template such as IterativeRobot and override only robotInit and the various autonomous/operatorControl functions. The IterativeRobot class startCompetition() function will take care of calling these functions in the right order and putting in appropriate delays to not swamp the CPU. |
Re: We are going to Want a GRIP fourm
Hello. New to vision processing.
I'm trying to deploy GRIP to my roborio but no luck. It doesn't tell me that it failed, it simply spins and there is no run button or console activity. I've tried deploying to roborio-58-frc.local and other ip addresses. As a side note I also cannot get Network table data from the outline viewer. thanks. |
Re: We are going to Want a GRIP fourm
^^^^^^
Same :-/ |
Re: We are going to Want a GRIP fourm
I honestly can't help much with deploying, maybe try checking the issues page for similar problems.
If you go to the chat you can also talk to @JLLeitschuh, who wrote the deploy code. |
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
|
Re: We are going to Want a GRIP fourm
This may sound really stupid, but for the life of me, I can't figure out how to get the results from the "Publish ContoursReport". I don't want to deploy it onto the robot yet, but I want to be able to see what the X and Y coordinates it finds in the sample images so I can try and write a program that would make decisions on it.
|
Re: We are going to Want a GRIP fourm
Quote:
https://github.com/WPIRoboticsProjects/GRIP/issues/349 |
Re: We are going to Want a GRIP fourm
Quote:
|
Re: We are going to Want a GRIP fourm
I wonder if you could extract it from the off line Java tools install method mentioned at the end of the "Installing Eclipse (C++/Java)" set up pages.
|
Re: We are going to Want a GRIP fourm
To everyone having deployment problems, you can also try to deploy it manually:
1. Set your publish address in GRIP's settings to your RoboRIO's address (roborio-<teamnumber>.local) 2. SCP (using PuTTY pscp on Windows) app/core-1.0.0-all.jar from GRIP's install location (typically C:\Users\<username>\AppData\Local\GRIP) to your RoboRIO: Code:
pscp app\core-1.0.0-all.jar lvuser@roborio-<teamnumber>.local:/home/lvuser/GRIP.jarCode:
pscp profile.grip lvuser@roborio-<teamnumber>.local:/home/lvuser5. Start GRIP: Code:
java -jar GRIP.jar profile.grip |
Re: We are going to Want a GRIP fourm
Quote:
Quote:
Quote:
|
| All times are GMT -5. The time now is 07:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi