Go to Post Girls, if you are techy, great! If you're not, don't worry about it. We're all good at something and FIRST can show you what that is. Just remember, be true to WHO YOU ARE. - Erin Rapacki [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 09-02-2011, 13:58
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: 2011 Camera Code on Driver Station

Quote:
Originally Posted by divixsoft View Post
what do you guys think of this code? and how do you transfer the processing from the crio to the classmate using the classes from frc?
You avoid the cRio handling the camera completely.

The new "robot radio" has multiple ports so you can plug the cRio in one port and the camera in another.

The cRio then doesn't assign an ip to the camera the router does which then you can use to pull images to the classmate.

The program then retrieves the images, processes it, then spits data back to the robot via UDP
  #17   Spotlight this post!  
Unread 09-02-2011, 20:25
divixsoft's Avatar
divixsoft divixsoft is offline
Registered User
FRC #0835
 
Join Date: Feb 2011
Location: MI
Posts: 29
divixsoft is an unknown quantity at this point
Re: 2011 Camera Code on Driver Station

How is UDP used, and what is UDP?
  #18   Spotlight this post!  
Unread 09-02-2011, 22:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: 2011 Camera Code on Driver Station

UDP stands for User Datagram Protocol. It doesn't need any channel setup handhaking before being used, it has a lot less overhead than TCP, and it's used where guaranteed delivery of network packets is less important than the ability to communicate quickly.

See Wikipedia for a bit more detail. See RFC 768 for a lot more detail.
  #19   Spotlight this post!  
Unread 13-02-2011, 20:39
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: 2011 Camera Code on Driver Station

Found several bugs.

First java on the cRIO does not support UDP. Changed to TCP.
Second the protocol was sending a bunch of empty data (roughly 800 bytes) changed to be dynamicly sized. I am still fixing the samples for release. Expect a java alpha on monday
  #20   Spotlight this post!  
Unread 15-02-2011, 12:25
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: 2011 Camera Code on Driver Station

Sorry guys I was sick yesterday and the ftp has been down on my server.


{EDIT}

Actually the entire server is down -_-

Last edited by drakesword : 15-02-2011 at 12:27.
  #21   Spotlight this post!  
Unread 13-03-2011, 13:49
mwtidd's Avatar
mwtidd mwtidd is offline
Registered User
AKA: mike
FRC #0319 (Big Bad Bob)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 2003
Location: Boston, MA
Posts: 714
mwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond reputemwtidd has a reputation beyond repute
Re: 2011 Camera Code on Driver Station

Quote:
Originally Posted by drakesword View Post
Sorry guys I was sick yesterday and the ftp has been down on my server.


{EDIT}

Actually the entire server is down -_-
This stuff is awesome. Finally got it running on my mac, which apparently doesnt like 32 bit java vms.

I was wondering, what's your light source that makes the pegs show up bright green like that?

Also have you had any success incorporating this into a custom driver station?
__________________
"Never let your schooling interfere with your education" -Mark Twain
  #22   Spotlight this post!  
Unread 12-08-2011, 14:31
drakesword drakesword is offline
Registered User
AKA: Bryant
FRC #0346 (Robohawks)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: USA
Posts: 200
drakesword is on a distinguished road
Re: 2011 Camera Code on Driver Station

Quote:
Originally Posted by lineskier View Post
This stuff is awesome. Finally got it running on my mac, which apparently doesnt like 32 bit java vms.

I was wondering, what's your light source that makes the pegs show up bright green like that?

Also have you had any success incorporating this into a custom driver station?
Thanks!

The light source was the old target lights believe it or not! But that was for testing ... dont think it would have been a problem except the size. So instead duiring competition we went with 2 blue LED's powered off of the cameras own 5volt supply. We did run into a problem with our shirts being blue but it still did ok at tracking. I will be updating the code again soon and posting it on my new server!

P.S. Im dropping my old server 99.5% uptime is a big joke my site has been down for 17 days now!
Closed Thread


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 03:50.

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