![]() |
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}); |
| 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