Go to Post I guess that we will just have to live with it, EH!!! :D - Steve W [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2011, 19:41
Stimpy1901 Stimpy1901 is offline
Registered User
AKA: Bobby
FRC #2348 (Cool Geeks)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Honolulu
Posts: 57
Stimpy1901 will become famous soon enough
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.
__________________
"The person who says it cannot be done should not interrupt the person doing it."
- Chinese Proverb
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2011, 18:41
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: Camera via Radio - Can show on Dashboard?

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.
Attached Files
File Type: zip BigBrother.zip (71.6 KB, 21 views)

Last edited by sjspry : 22-01-2011 at 18:43.
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2011, 22:01
Stimpy1901 Stimpy1901 is offline
Registered User
AKA: Bobby
FRC #2348 (Cool Geeks)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2008
Location: Honolulu
Posts: 57
Stimpy1901 will become famous soon enough
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.
__________________
"The person who says it cannot be done should not interrupt the person doing it."
- Chinese Proverb
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2011, 00:59
keericks's Avatar
keericks keericks is offline
Registered User
AKA: Kent
FRC #1671 (Buchanan Bird Brains)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1998
Location: Clovis
Posts: 55
keericks is a glorious beacon of lightkeericks is a glorious beacon of lightkeericks is a glorious beacon of lightkeericks is a glorious beacon of lightkeericks is a glorious beacon of light
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?
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2011, 19:37
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
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.
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2011, 19:44
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,861
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Camera via Radio - Can show on Dashboard?

Quote:
Originally Posted by keericks View Post
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 26-01-2011, 19:47
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 503
tomy has a spectacular aura abouttomy has a spectacular aura about
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
Reply With Quote
  #8   Spotlight this post!  
Unread 27-01-2011, 00:49
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
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.
Reply With Quote
  #9   Spotlight this post!  
Unread 30-01-2011, 13:24
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
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
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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