Log in

View Full Version : Getting camera feed while doing vision


viggy96
23-01-2016, 16:10
Our team plans on using the NVIDIA Jetson TK1 with OpenCV for vision this year. However, I also want the camera feed to show up on the SmartDashboard so that the driver can see what the bot is pointing at. I was thinking about sending UDP packets with tower targeting info as well as the image to the RoboRIO, but is there a way to forward the image to the driver station SmartDashboard? I was also thinking we could just add another camera for the driver, but I wanted to have just one if possible.

adciv
23-01-2016, 19:56
It's possible, but you need to modify the dashboard to read from the Tegra TK1 instead of the roboRIO. What language dashboard are you programming in? Labview is pretty easy to modify, I don't know about the others.

viggy96
24-01-2016, 01:30
It's possible, but you need to modify the dashboard to read from the Tegra TK1 instead of the roboRIO. What language dashboard are you programming in? Labview is pretty easy to modify, I don't know about the others.
We're going to be using Java for the Smart dashboard

Fauge7
24-01-2016, 02:29
have 2 cameras on the robot, one for vision because the exposure works better when turned down and the other at normal sight so it works...ideally have a usb camera to the jetson and a axis to the router...that way you wont take up any extra processing cycles on either

fovea1959
24-01-2016, 10:34
Fauge7: how do you network a Jetson, an Axis, and a roboRio with the new radio? Only 2 ports?

adciv
24-01-2016, 11:10
We're going to be using Java for the Smart dashboard
Alright, you're going to have to dig down into the vision code libraries for this one. Unfortunately I don't have it installed to search. You need to search through it to find where it opens the network connection to the roborio on port 1180 and change the IP/name to your coprocessor. I recommend changing the library names when you save it so you have an alternative. In labview I've exposed the port & IP address at the top level so I can change it as desired.

Fauge7: how do you network a Jetson, an Axis, and a roboRio with the new radio? Only 2 ports?

It's legal to run a network switch on the robot so long as the RIO is still plugged directly into the radio on the appropriate port.

Fauge7
24-01-2016, 11:19
Fauge7: how do you network a Jetson, an Axis, and a roboRio with the new radio? Only 2 ports?

a simple network switch, my team is not using a coprocessor as they are simply not needed for our use.

fovea1959
24-01-2016, 15:49
has anyone find a particularly small/light switch that seems adaptable for FRC?

adciv
24-01-2016, 19:20
I haven't tried this, but this one seems to meet a few requirements, including able to run off the existing VREG
http://www.trendnet.com/products/unmanaged-switches/5-port/teg-s5g#tabs-solution02