Go to Post Sweeeet swerve drive - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
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 05-01-2011, 08:28
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Python's Legality

Nice new section.

Has FIRST said anything about the legality of python being used in 2011 robots yet? I'd love to give this a shot.
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote
  #2   Spotlight this post!  
Unread 05-01-2011, 08:42
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,766
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Python's Legality

Robby,
There is a distinct interaction between robot control programming and the field control system. The need to be able to start and guarantee to stop robots on the field may better answer your question. The engineering staff needs to be able to test for safety the programming languages that it supports.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #3   Spotlight this post!  
Unread 05-01-2011, 08:45
jtdowney jtdowney is offline
Boiler Up
AKA: John Downey
FRC #4302 (Robophins)
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2006
Location: Chicago
Posts: 300
jtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant futurejtdowney has a brilliant future
Re: Python's Legality

As far as I know they haven't yet ruled on the ability to program the robot outside of C++, Java, and LabView. On Saturday when we all the read the manual they might make a ruling but my gut reaction is we would have heard officially by now if a new language is available (like Java was announced for 2010 at the 2009 CMP).
__________________
John Downey
Lead Robot Inspector - Purdue IndianaFIRST District
Whitney Young Magnet High School/Robophins (FRC 4302) - Mentor (2013-current)
Midwest Regional Planning Committee - Member (2012-current)
Boilermaker Regional Planning Committee - Member (2011-2014)
Robot Inspector (2008-current)
Purdue FIRST Programs - Staff Advisor (2008-2011)
Lafayette-Jefferson High School/Precision Guessworks (FRC 1646) - Mentor (2006-2011)
Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2011, 08:56
demosthenes2k8's Avatar
demosthenes2k8 demosthenes2k8 is online now
Graduated but not gone
AKA: Matt Soucy
FRC #0166 (Chop Shop 166)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Merrimack, NH
Posts: 589
demosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to beholddemosthenes2k8 is a splendid one to behold
Send a message via AIM to demosthenes2k8 Send a message via Yahoo to demosthenes2k8
Re: Python's Legality

Quote:
Originally Posted by jtdowney View Post
we would have heard officially by now if a new language is available (like Java was announced for 2010 at the 2009 CMP).
The difference between that and Python is that Java was developed "officially", endorsed by FIRST. Python was developed by a team who (AFAIK) doesn't work for FIRST, so FIRST wouldn't announce it. They would have to specifically say "All team-developed languages are fine", or "X is fine, but not Y because Z"
__________________


GSR Dean's List Finalist 2011
Reply With Quote
  #5   Spotlight this post!  
Unread 05-01-2011, 10:55
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,387
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: Python's Legality

The FIRST offical Q&A is the place to ask the question, and I'd love to hear the answer. Sadly the 2011 game isn't posted yet, but you should ask it on kickoff day.

I think the Python and Lua ports are great, I'd love to see teams use them.
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
Reply With Quote
  #6   Spotlight this post!  
Unread 05-01-2011, 12:39
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,040
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Python's Legality

As far as I'm concerned [and as cited on the RobotPy wiki], python is just another C++ program running on vxWorks, so it shouldn't be a problem. IMHO, if the safety protocols can't shut down the robot with this program running on there, then there's something else wrong with the safety protocols that needs to be addressed.

With that being said, since it isn't officially supported by FRC at this time you're taking a bigger risk in using it since any problems you may run into will be a bit harder to tackle.

If they did decide to ban it though, that would be quite unfortunate. I wonder how they would word it.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #7   Spotlight this post!  
Unread 06-01-2011, 20:06
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Python's Legality

If the safety protocols (E-stop in particular) don't shut down the outputs, there is either something wrong with your cRIO image, or you are using something other than the PWM, Relay, and Solenoid outputs to control your motors/cylinders.
__________________
-- Marshal Horn
Reply With Quote
  #8   Spotlight this post!  
Unread 08-01-2011, 19:38
Peter Johnson Peter Johnson is offline
WPILib Developer
FRC #0294 (Beach Cities Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Redondo Beach, CA
Posts: 247
Peter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud ofPeter Johnson has much to be proud of
Re: Python's Legality

My opinion (of course), but looks like RobotPy (and other scripting languages such as Lua) will be legal for 2011:

COTS definition (page 8 of Section 1):
"For the purposes of the FRC, generally available software modules obtained from open sources (e.g. professional publications, commonly used FRC community-accessible web resources, industry source code repositories, etc.) that are not specifically affiliated with individual FRC teams shall be considered COTS items."

<R28> COTS items that are generally available may be used on the ROBOT.

Caveat emptor, of course. And keep in mind RobotPy is not supported by FIRST (so if you run into issues with RobotPy at a competition, there won't be staff there to help).
__________________
Author of cscore - WPILib CameraServer for 2017+
Author of ntcore - WPILib NetworkTables for 2016+
Creator of RobotPy - Python for FRC

2010 FRC World Champions (294, 67, 177)
2007 FTC World Champions (30, 74, 23)
2001 FRC National Champions (71, 294, 125, 365, 279)
Reply With Quote
  #9   Spotlight this post!  
Unread 09-01-2011, 00:48
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Python's Legality

Quote:
Originally Posted by Peter Johnson View Post
My opinion (of course), but looks like RobotPy (and other scripting languages such as Lua) will be legal for 2011:

COTS definition (page 8 of Section 1):
"For the purposes of the FRC, generally available software modules obtained from open sources (e.g. professional publications, commonly used FRC community-accessible web resources, industry source code repositories, etc.) that are not specifically affiliated with individual FRC teams shall be considered COTS items."

<R28> COTS items that are generally available may be used on the ROBOT.

Caveat emptor, of course. And keep in mind RobotPy is not supported by FIRST (so if you run into issues with RobotPy at a competition, there won't be staff there to help).
I tend to agree with your assessment. All of the safety protocols are handled in the FPGA and the FRC_NetworkCommunication task. As such, nothing that RobotPy or Greyhound Lua can do will allow any avenue to get around the safety features. In addition, both of these implement their robot I/O access by scripting a wrapper around WPILib for C++ using SWIG. I can't imagine that FIRST would see any reason to disallow the use of these languages, but the final say is theirs.

-Joe
Reply With Quote
  #10   Spotlight this post!  
Unread 09-01-2011, 02:40
blakeelias's Avatar
blakeelias blakeelias is offline
2011 CT chairman's award
FRC #0694 (Stuypulse)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: New York
Posts: 26
blakeelias is an unknown quantity at this point
Question Re: Python's Legality

Since the creator of RobotPy is a team mentor, does that make it "specifically affiliated" with his team?
Reply With Quote
  #11   Spotlight this post!  
Unread 09-01-2011, 03:02
mobilegamer999 mobilegamer999 is offline
Registered User
FRC #3357 (Comets)
Team Role: Programmer
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Michigan
Posts: 124
mobilegamer999 is a jewel in the roughmobilegamer999 is a jewel in the roughmobilegamer999 is a jewel in the rough
Re: Python's Legality

Quote:
Originally Posted by blakeelias View Post
Since the creator of RobotPy is a team mentor, does that make it "specifically affiliated" with his team?
He may have made RobotPy, but all that really is, is a nice, neatly compiled c++ program that runs python code, so technically the creator is the creator of Python, not RobotPy.
__________________
Reply With Quote
  #12   Spotlight this post!  
Unread 09-01-2011, 04:59
Slix Slix is offline
Registered User
AKA: Peter Kowalczyk
FRC #2115 (NightMares)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Mundelein, IL
Posts: 31
Slix is an unknown quantity at this point
Re: Python's Legality

Quote:
Originally Posted by mobilegamer999 View Post
He may have made RobotPy, but all that really is, is a nice, neatly compiled c++ program that runs python code, so technically the creator is the creator of Python, not RobotPy.
Uhm, Johnson has copyright, so I think we can establish that he created RobotPy. Someone really has to ask about using Python in Q&A, though I think it's extremely unlikely that they will say no.
Reply With Quote
  #13   Spotlight this post!  
Unread 09-01-2011, 10:16
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,558
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Python's Legality

Quote:
COTS definition (page 8 of Section 1):
"For the purposes of the FRC, generally available software modules obtained from open sources (e.g. professional publications, commonly used FRC community-accessible web resources, industry source code repositories, etc.) that are not specifically affiliated with individual FRC teams shall be considered COTS items."
Quote:
Originally Posted by blakeelias View Post
Since the creator of RobotPy is a team mentor, does that make it "specifically affiliated" with his team?
If you parse the definition, you'll notice it's talking about where you receive the software, not who created the software (obtained being the key word). If Peter emailed you the software and did not email it to anyone else, it would not be legal. If Peter hid it on his team's website where nobody else would find it, it would not be legal because the source would be affiliated with his team. Since he posted the code on FIRST Forge, which is a "commonly used FRC community-accessible web resources" it is legal.
Reply With Quote
  #14   Spotlight this post!  
Unread 09-01-2011, 14:58
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Python's Legality

I tend to agree (no affiliation with FIRST or the GDC) that Python ought to be legal because:
  1. It's publically available (a COTS part)
  2. It really is just a C++ program that gets its robot commands from a text file (script).
But, again, I don't work for FIRST.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #15   Spotlight this post!  
Unread 05-02-2011, 00:51
Slix Slix is offline
Registered User
AKA: Peter Kowalczyk
FRC #2115 (NightMares)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: Mundelein, IL
Posts: 31
Slix is an unknown quantity at this point
Re: Python's Legality

Official GDC response: http://forums.usfirst.org/showthread.php?t=16448

Pretty much identical to most of the assumptions made in this thread and in the RobotPy FAQ.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Gamepad legality Darth Pbal National Instruments LabVIEW and Data Acquisition 4 18-02-2010 21:47
CIM Legality coolperson987 Motors 6 15-02-2009 09:53
witricity legality? XXShadowXX Electrical 68 10-05-2008 07:58
Legality question Tottanka Rules/Strategy 5 14-02-2007 14:32
Python's 'Life of Brian' To Be Re-Released Next Month Joe Matt Chit-Chat 2 25-03-2004 12:50


All times are GMT -5. The time now is 19:51.

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