Log in

View Full Version : Camera via Radio - Can show on Dashboard?


Stimpy1901
21-01-2011, 19:41
According the the "How to Configure Your Camera" document,

The camera can also be connected directly to the radio and bypass the cRIO if you choose not to use image processing. To set up the camera this way, the camera IP address is based on team number and is 10.xx.yy.zz, where zz is in the range of 11 to 20. The xx.yy is the same as is used for the robot.

If we do this, has anyone found a way to send the image to the Dashboard? I would assume the main point of bypassing the cRio is to give the drivers more vision at the DS and not using the cRio to pass the information. BTW, we are using Java and don't know too much about LV to make a custom dash...but willing to learn if time permits.

sjspry
22-01-2011, 18:41
Aha, found this thread again. Mistakenly replied to another :)

I was working on a custom dashboard you can use if you wish. It's not very complete, and the only transmission which works is the image (I had textual data set up earlier, but it was horrible -- redoing that part now. If you wanted to try, send stuff robot->PC on port 7450.)

Note it's not required that the Dashboard connect to the robot, it should only look for the camera (I have the IP set to 10.19.84.10, change it, it's in BigBrotherGUI.java). You can set the Thread.sleep() in the BigBrotherGUI.java to modify the FPS. Currently, it's set to about 15 (better than the FRC Dashboard), and it might be overlaying some edge detection data on the image (it's the for loop slightly above the Thread.sleep(), just comment it out. That and the detector.process([...]) line.)

I'll send you the robot-side code if you want when I get it finished, but it's Java. (EDIT: Just realized we're in the Java forum, hehe)

Whole thing is GPLv3, see attachments for download. Reply if you have problems, it should be runnable at this point.

Stimpy1901
22-01-2011, 22:01
Thanks for the info and file. Will definitely check it out. We would also appreciate the robot code once you finish it.

keericks
26-01-2011, 00:59
Does the camera image have to be displayed within the Dashboard ... or can we simply open up a browser session window, size it to fit in an area of the screen and run the camera like that?

byteit101
26-01-2011, 19:37
The ZomB Dashboard is soon (hopefully before the end of the week) going to have support for this type of camera.

Mark McLeod
26-01-2011, 19:44
Does the camera image have to be displayed within the Dashboard ... or can we simply open up a browser session window, size it to fit in an area of the screen and run the camera like that?
This will work with the camera connected to the D-Link.
At competition the typical browser port 80 is one of the allowed open ports.

tomy
26-01-2011, 19:47
all you should have to do is in your code there is a .h file were it looks for the ip address and change that to 10.xx.yy.zz i think

sjspry
27-01-2011, 00:49
Yeah, if you didn't want to do any processing at all just use a web browser. Only drawback is the Classmate screen is pretty small, so you're going to have to set it to 320x240 for sure.

byteit101
30-01-2011, 13:24
ZomB v0.7.1.350 has (theoretical) support for this, drag a camera view on the surface, set the mode to MJPEG, and the source params to the ip address of the camera

http://firstforge.wpi.edu/sf/frs/do/viewRelease/projects.zombdashboard/frs.nightly_unstable.v0_7_1_350