|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
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. |
|
#2
|
|||||
|
|||||
|
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. |
|
#3
|
||||
|
||||
|
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).
|
|
#4
|
||||
|
||||
|
Re: Python's Legality
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"
|
|
#5
|
|||
|
|||
|
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. |
|
#6
|
||||
|
||||
|
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. |
|
#7
|
||||
|
||||
|
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.
|
|
#8
|
|||
|
|||
|
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). |
|
#9
|
|||
|
|||
|
Re: Python's Legality
Quote:
-Joe |
|
#10
|
||||
|
||||
|
Since the creator of RobotPy is a team mentor, does that make it "specifically affiliated" with his team?
|
|
#11
|
|||
|
|||
|
Re: Python's Legality
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.
|
|
#12
|
||||||
|
||||||
|
Re: Python's Legality
Quote:
|
|
#13
|
|||
|
|||
|
Re: Python's Legality
Python is a very high level, abstract language that should not be grouped with C++ or Java when it comes to legality because in the end, Python is so high it can compile down into C++ using a variety of free, open-source compilers available out there ( http://shed-skin.blogspot.com/ ). I wouldn't jump to say this makes it legal, but in the case running the Py runtime on the cRIO is not allowed come gametime... code in python .. and then compile down to C++.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |