Go to Post You know, I have 2 big addictions in my life right now: ice cream, and FIRST. While the prior may not be great for my health, I think I'm doing just fine with FIRST. - Beth Sweet [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
  #1   Spotlight this post!  
Unread 28-01-2011, 16:20
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: Dashboard communication ports

Quote:
Originally Posted by John Heden View Post
With respect to communications in the other direction, Update #5 (25-Jan-2011) states that UDP 1130 is being available for “Dashboard-to-Robot” Communications which is highly suggestive that we are now allowed to communicate to the Robot from our own dashboard and overrides Rule 75 where the Driver Station is the only tool allowed to collate driver/operator inputs and send them to the robot.

This is a big change opening many opportunities for enhanced leveraging of the PC facilities (screen, keyboard, touch screen, ANY USB device, etc) at the console.

Does anyone disagree with this interpretation that we ARE now allowed to directly send data from our dashboard to the Robot ?
No, this doesn't override rule 75. The dashboard is separate from the driver station. So no, all that great stuff you talked about isn't possible.

But yes, you can communicate however you want as long as all teleop goes through the driver station. I'd suggest, however, to not reverse-engineer the current protocol and just make your own (like I did).
  #2   Spotlight this post!  
Unread 29-01-2011, 06:54
John Heden John Heden is offline
Registered User
FRC #1073
 
Join Date: Jan 2011
Location: Hollis, NH
Posts: 29
John Heden is an unknown quantity at this point
Re: Dashboard communication ports

Quote:
Originally Posted by sjspry View Post
No, this doesn't override rule 75. The dashboard is separate from the driver station. So no, all that great stuff you talked about isn't possible.

But yes, you can communicate however you want as long as all teleop goes through the driver station. I'd suggest, however, to not reverse-engineer the current protocol and just make your own (like I did).
A literal interpretation of R75 where the driver is the only tool to collated driver/operator inputs seems to preclude ANY such dashboard user interaction (setup, teleoperated, etc.) but could allow for automated control from algorithms in the driver station as long as the data did not derive from the operator/driver inputs. Allowing a powerful laptop to do the vision processing and returning the results via this dashboard UDP port seems like a valid rule interpretation but not the likely intention. I’m still very curious as to some further rule info detailing on this UDP 1130 reference and some further specifics on what is/is not allowed. This “dashboard to robot” communications remains a tad ambiguous until we have a official response. It was very easy to get the basic UDP receiver operational on both the dashboard and the robot and would happily share this. If only we knew what we could do with it….
  #3   Spotlight this post!  
Unread 29-01-2011, 15:37
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: Dashboard communication ports

Quote:
Originally Posted by John Heden View Post
A literal interpretation of R75 where the driver is the only tool to collated driver/operator inputs seems to preclude ANY such dashboard user interaction (setup, teleoperated, etc.) but could allow for automated control from algorithms in the driver station as long as the data did not derive from the operator/driver inputs. Allowing a powerful laptop to do the vision processing and returning the results via this dashboard UDP port seems like a valid rule interpretation but not the likely intention. I’m still very curious as to some further rule info detailing on this UDP 1130 reference and some further specifics on what is/is not allowed. This “dashboard to robot” communications remains a tad ambiguous until we have a official response. It was very easy to get the basic UDP receiver operational on both the dashboard and the robot and would happily share this. If only we knew what we could do with it….
You're reading too far into this. From what I remember (I can't look up the rules right now), the mention of those port numbers sounds like (and was likely intended to be) a preventative measure, as in, "don't use these as they're being used already". They probably don't intend for you to reverse engineer the dashboard protocol or send your own information on these ports.

Regardless, this rule has nothing to do with the driver station. I myself am rather confused as to why they insist on all human-driven input going through their software, as it would already be possible under the rules to modify the cRIO to negate any "safety" benefits from this.

And I noticed the computer-driven control exception myself. I moved image processing to my driver station as I wished to write my own, and I believe someone else was going to do much the same thing so they could use OpenCV, something more featured than the NIVision on the cRIO.


Remember the Dashboard and the Driver Station are completely separate. The Dashboard NEVER sends back information, while the Driver Station is the one to initiate everything as far as rounds/teleop/autonomous goes, therefore the interpretation of "all human input must go through the Driver Station" is by far the most valid interpretation.

Last edited by sjspry : 29-01-2011 at 15:47.
  #4   Spotlight this post!  
Unread 30-01-2011, 11:47
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: Dashboard communication ports

Quote:
Originally Posted by sjspry View Post
From what I remember (I can't look up the rules right now),...
Most of your post seems based on a faulty memory of what the rules say. Please read the description of what ports are available in section 2.2.8 (as amended in Team Update #5).
  #5   Spotlight this post!  
Unread 30-01-2011, 18:06
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: Dashboard communication ports

Quote:
Originally Posted by Alan Anderson View Post
Most of your post seems based on a faulty memory of what the rules say. Please read the description of what ports are available in section 2.2.8 (as amended in Team Update #5).
Oh, I didn't see the update that said what the ports were actually for.

Quote:
Originally Posted by Rules Update #5
All these ports are open on the playing field, so a team can use them as they wish if they do not
employ them as outlined above (i.e. TCP 1180 can be used to pass data back and forth between the
robot and the DS if the team chooses not to use the camera on port 2).
Then I guess it's a contradiction. Since it's the newer rule, I'm glad they're allowing bypass of the driver station software
  #6   Spotlight this post!  
Unread 31-01-2011, 06:53
John Heden John Heden is offline
Registered User
FRC #1073
 
Join Date: Jan 2011
Location: Hollis, NH
Posts: 29
John Heden is an unknown quantity at this point
Re: Dashboard communication ports

Greetings,

We are moving forward with our "Dashboard to Robot” communications approach which appears to be legal (our current interpretation) with update #5 where UDP port 1130 is available for “Dashboard-to-Robot control data”. The update #5 statement that these ports “are open on the playing field, so a team can use them as they wish” is fairly unambiguous although we recognize the <R75> inconsistency where it is stated that the DriverStation is the only tool allowed to collate driver/operator data to the robot.

While we are moving forward with our Dashboard plans to allow user interaction with the robot, we’ll continue to monitor the FIRST site for any further clarification on this subject and will graciously remove this capability should our interpretation later be shown to be incorrect. I’m attaching a C++ example function where we have successfully received UDP packets from our dashboard.

John
Attached Files
File Type: cpp ReceiverTest.cpp (1.1 KB, 80 views)
  #7   Spotlight this post!  
Unread 31-01-2011, 19:15
John Heden John Heden is offline
Registered User
FRC #1073
 
Join Date: Jan 2011
Location: Hollis, NH
Posts: 29
John Heden is an unknown quantity at this point
Re: Dashboard communication ports

I'm attaching an example code fragment in C# that we used to send UDP dashboard data to the CRIO example given in the previous post. I could not attach an additional file so I'm adding another reply. The system would not take a .cs file so this is a .txt file.
Attached Files
File Type: txt CSharpUDPTestSender.txt (837 Bytes, 38 views)
  #8   Spotlight this post!  
Unread 02-02-2011, 10:05
BEEKMAN BEEKMAN is offline
Registered User
AKA: Brendan McLeod
FRC #0190 (Gompei and the Herd)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Londonderry, NH
Posts: 138
BEEKMAN is a splendid one to beholdBEEKMAN is a splendid one to beholdBEEKMAN is a splendid one to beholdBEEKMAN is a splendid one to beholdBEEKMAN is a splendid one to beholdBEEKMAN is a splendid one to behold
Re: Dashboard communication ports

We got this working several nights ago, and according to Team Update 7, looks like its a go!
__________________
WPI Robotics Engineering & Mechanical Engineering Class of 15

iRobot Mechanical Engineering Intern
  #9   Spotlight this post!  
Unread 02-02-2011, 12:31
John Heden John Heden is offline
Registered User
FRC #1073
 
Join Date: Jan 2011
Location: Hollis, NH
Posts: 29
John Heden is an unknown quantity at this point
Re: Dashboard communication ports

Thanks! The ability to send Dashboard user data to the robot was our (hopeful) interpretation but the Update #7 Rule 75 change makes this possibility very clear. This is a big change allowing much more user & driver interaction possibilities where we are no longer constrained/limited to physical USB HID components.

Quote:
<R75> The Driver Station software provided on the FRC website (www.usfirst.org/frc/kitofparts) is the only tool permitted to specify and communicate the operating mode (i.e. Auto/Teleop) and operating state (enable/disable) and collate driver/operator inputs and communicate them to the ROBOT. The Driver Station software must be revision 01.05.11.00 or newer.
  #10   Spotlight this post!  
Unread 02-02-2011, 12:38
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Dashboard communication ports

Any word from the official Q&A forum on this yet?
  #11   Spotlight this post!  
Unread 02-02-2011, 13:44
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: Dashboard communication ports

Quote:
Originally Posted by basicxman View Post
Any word from the official Q&A forum on this yet?
The GDC has spoken.

Team Update #7 amends the rules such that the Driver Station program is no longer the only permitted conduit for driver inputs to reach the robot. (John misquoted the new <R75> by failing to either mark or delete the stricken text that was identified in the update. Read the manual.)
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:52.

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