Go to Post Steampunk goggles are perfectly legal as forehead protectors. - Nuttyman54 [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

 
 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 09-01-2012, 01:17
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: 243
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
RobotPy 2012.1

I've released the first release of RobotPy for the 2012 season: 2012.1

Download from http://firstforge.wpi.edu/sf/go/proj...robotpy.2012_1

Major changes from 2011.3 release:
  • Python upgraded to 3.2.2!
  • WPILib rev 2993 (2012/01/08 release) support (all classes including Kinect). Requires cRIO image v43.
  • Support for both 8-slot and 4-slot cRIOs.
  • New loader / boot.py which tries to improve the behavior of instant reloads. If the user code raises a SystemRestart exception, the entire Python interpreter exits and should be restarted by the loader. This is still not all that reliable as the interpreter doesn't do a particularly good job of cleaning up after itself, so use with caution at the moment.
  • Unified release (one download) with simple installer.

Release notes:
  • A number of the new additions to WPILib (Buttons, Commands, NetworkTables, Preferences, SmartDashboard) are implemented via native Python instead of wrapped C++. They have seen only moderate testing but as they're native Python they should be easy for anyone to fix if they're broken!
  • While the new version is 99% compatible with existing code, if you wrote an __init__() function in your SimpleRobot/IterativeRobot-derived main robot class, you need to ensure you're calling super().__init__(), otherwise you'll see an exception raised from the library level about not being able to find "self.ds.InDisabled".
  • Vision support still isn't all that great. All of the high-level WPILib "vision" classes are wrapped but most of the lower-level "nivision" functions have not been. Depending on your coding level, if you want to use the nivision functions, you're probably better off writing some high-level vision processing function in C++ and wrapping it to call from Python. This is relatively easy to do (see the robotpy source code's Packages subdirectories).

GitHub (for those interested in the details): http://github.com/robotpy/robotpy
__________________
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)

Last edited by Peter Johnson : 09-01-2012 at 01:19. Reason: Mention 4-slot cRIO support.
Reply With Quote
 


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:45.

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