Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Camera via Radio - Can show on Dashboard? (http://www.chiefdelphi.com/forums/showthread.php?t=89746)

Stimpy1901 21-01-2011 19:41

Camera via Radio - Can show on Dashboard?
 
According the the "How to Configure Your Camera" document,

Quote:

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

Re: Camera via Radio - Can show on Dashboard?
 
1 Attachment(s)
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

Re: Camera via Radio - Can show on Dashboard?
 
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

Re: Camera via Radio - Can show on Dashboard?
 
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

Re: Camera via Radio - Can show on Dashboard?
 
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

Re: Camera via Radio - Can show on Dashboard?
 
Quote:

Originally Posted by keericks (Post 1008551)
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

Re: Camera via Radio - Can show on Dashboard?
 
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

Re: Camera via Radio - Can show on Dashboard?
 
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

Re: Camera via Radio - Can show on Dashboard?
 
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/...ble.v0_7_1_350


All times are GMT -5. The time now is 22:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi