Quote:
|
Awesome code. I looking to run this on a coprocessor (Jetson TX1). Would both liftTracker and processing.java run on the coprocessor or liftTracker on jetson and processing.java on robo rio.
|
Yeah, so the LiftTracker.java file is literally just the outputted code from grip. If you want it by itself, you can have a method somewhere in a *.java file and run this method:
Code:
tracker.process(Mat)
Quote:
|
In processing.java you set the IP for networktables. Is this where your getting the network tables from and would that IP need to change for the jetson.
|
When I run:
Code:
NetworkTable.setIPAddress("roborio-1806-frc.local");
That is the IP where I'm putting all of the output values (angle, distance, etc). So, you would want to change 1806 over to your team number.
Quote:
|
Also your pulling a table called LiftTracker but in GRIP the network table published is still called myContours.
|
LiftTracker is the table where I am
putting all of my values, not
getting. You aren't going to get any values from myContours from GRIP. You aren't actually relying on the GRIP gui, it's the code generated from it, placed in the LiftTracker.java
Quote:
|
Also setting up the camera steam ( I am using USB camera) I am assuming I would have to change IP to jetson as well (probably would have to create a mjpeg server?) and then also try to send it to the Driver Station.
|
What I would do is replace the .open with the URL to:
Code:
videoCapture.open(0);
This makes it so it'll open up the webcam plugged into the USB. Then you might want to start an MJPG server. I'm not sure how well these work hand and hand together so you may have to experiment around