Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   We are going to Want a GRIP fourm (http://www.chiefdelphi.com/forums/showthread.php?t=141097)

ThomasClark 14-01-2016 18:08

Re: We are going to Want a GRIP fourm
 
Quote:

Originally Posted by krieck (Post 1523568)
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?

I haven't tried running GRIP on a raspberry pi, but it might work. On Windows, the headless jar is likely at C:\Users\YourName\AppData\GRIP\app\core-1.0.0.jar. On Linux it's /opt/GRIP/app/core-1.0.0.jar (this jar is renamed to grip.jar and uploaded to the roboRIO when you deploy).

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:

Originally Posted by cpapplefamily (Post 1523570)
Also is there talk about adding blocks to get data from the SmartDashboard to get values to plug into the slider controls to dynamically control the filters from the Robot or Smartdashboard?

That definitely sounds like a cool idea. If you open an issue on GitHub, I can make sure you get notified when we implement this

ThomasClark 14-01-2016 18:10

Re: We are going to Want a GRIP fourm
 
Quote:

Originally Posted by jmguillemette (Post 1523654)
Thomas

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.

If you're using java, I think you could also use the GRIP jar as a library in your robot project. That would let you manipulate the pipeline however you want. I'll play around with this idea and write up a tutorial if I can get it to work

We also might want to just let people start and stop the pipeline by setting a boolean in NetworkTables. Thoughts?

Thad House 14-01-2016 18:28

Re: We are going to Want a GRIP fourm
 
Quote:

Originally Posted by ThomasClark (Post 1523793)
I haven't tried running GRIP on a raspberry pi, but it might work. On Windows, the headless jar is likely at C:\Users\YourName\AppData\GRIP\app\core-1.0.0.jar. On Linux it's /opt/GRIP/app/core-1.0.0.jar (this jar is renamed to grip.jar and uploaded to the roboRIO when you deploy).

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.



That definitely sounds like a cool idea. If you open an issue on GitHub, I can make sure you get notified when we implement this

I was going to test running it on a Pi2 soon. However, NetworkTables will most likely not work without a specific NetworkTables build for Pi2, and OpenCV probably will run into the same issue. I know 100% it won't work on a Pi 1, however I haven't tested on a Pi 2. I know I tried RoboRIO binaries on a BeagleBoneBlack, and they did not work. And a Pi2 and BBB should be able to run the same binaries.

ajaquin3171 14-01-2016 19:39

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.

Arhowk 14-01-2016 20:26

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.

ThomasClark 14-01-2016 21:04

Re: We are going to Want a GRIP fourm
 
Quote:

Originally Posted by Arhowk (Post 1523881)
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.

https://usfirst.collab.net/sf/frs/do...6_field_images

ThomasClark 14-01-2016 21:13

Re: We are going to Want a GRIP fourm
 
Quote:

Originally Posted by Thad House (Post 1523806)
I was going to test running it on a Pi2 soon. However, NetworkTables will most likely not work without a specific NetworkTables build for Pi2, and OpenCV probably will run into the same issue. I know 100% it won't work on a Pi 1, however I haven't tested on a Pi 2. I know I tried RoboRIO binaries on a BeagleBoneBlack, and they did not work. And a Pi2 and BBB should be able to run the same binaries.

Yeah, I was afraid that might be true. The roboRIO and Raspbery Pi are both Linux/ARM, but they probably have different libc and kernel versions that make native binaries incompatible. I don't have a Raspberry Pi, but I'll see if I can get my hands on one and build and test the necessary binaries.

For updates, you can subscribe to this issue: https://github.com/WPIRoboticsProjects/GRIP/issues/366

cpapplefamily 14-01-2016 22:48

Re: We are going to Want a GRIP fourm
 
Quote:

Originally Posted by ajaquin3171 (Post 1523851)
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.

Yes a few have. I have a few times too. Seems you may want to try in the settings both roborio-####-frc:local or 10.##.##.20 then when you go to deploy select the FRC advance. You will find the Deploy button is disabled. Edit the box but return it to what it was. (ie delete the .20 and retype .20) The button will enable.

#### - 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.

Mark_Ebert 14-01-2016 23:33

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.

cpapplefamily 14-01-2016 23:42

Re: We are going to Want a GRIP fourm
 
Quote:

Originally Posted by Mark_Ebert (Post 1524008)
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.

Did you set the deploy address in the settings tab where you set the network table address and team number. Did you try both mDNS and ip from there first before going to the deploy gui? I have not nailed down how I got it to work yet. Was earlier today and have not gotten back.

Mark_Ebert 14-01-2016 23:54

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?

cpapplefamily 15-01-2016 00:11

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.

Mark_Ebert 15-01-2016 00:23

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?

cpapplefamily 15-01-2016 00:32

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.

H2O Enthusiast 15-01-2016 13:06

Re: We are going to Want a GRIP fourm
 
Quote:

Originally Posted by Peter Johnson (Post 1523289)
I just tried your exact code using "GRIP/myContoursReport" (with no leading "/") and it works for me. When run with a leading "/" it doesn't work, because NetworkTable.getTable() unconditionally prepends "/" to the name you provide it.

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).

By robotMain() do you mean outside the robotInit() but inside the Robot() class? Also, by operational part of my code do you mean where I publish the data?


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