Go to Post "What's said in the huddle, stays in the huddle..." - Mr. Lim [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 03-01-2015, 12:48
virtuald's Avatar
virtuald virtuald is online now
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,042
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
Initial release of RobotPy for 2015

Now that kickoff is over and the game has been released, we're happy to announce the initial release of RobotPy for 2015. There's a lot of moving pieces in various stages of completion, but here's where we are now:

* WPILib is available and should be fully functional. Check out our getting started guide to install WPILib and the Python interpreter on your robot.
* pynetworktables is available for robots and clients to connect to the SmartDashboard or from coprocessors, and should be fully functional.
* pyfrc is mostly there, with the simulator working and some of the unit test functionality working. I'm hoping to finish this up by the end of the weekend.
* We have initial support for the FRCSim Simulator, but the documentation is light and not all devices have been implemented yet. The python version of the GearsBot example mostly works though.
* The Eclipse plugins aren't anywhere near functional yet (sorry!). Hopefully by next week.
* We've got numpy built for the RoboRIO, and it's easily installable via opkg. Check out https://github.com/robotpy/roborio-packages for more information.

Our initial RobotPy release for 2015 is now available for download on our release page.

The team has put months of effort into this release, and we're really excited about 2015! Special thanks to Christian Balcom (@computer-whisperer, FRC Team 4819), who has done a significant amount of work on the pure python port of WPILib, and various useful tooling.

Go ahead and start using what we have, and report bugs as you find them! We expect that there will be a lot of bugfixes over the next few weeks, but that will probably be true for the other languages too. Please report any problems on our issue tracker as you find them!
__________________
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
  #2   Spotlight this post!  
Unread 03-01-2015, 19:45
SamCyanide's Avatar
SamCyanide SamCyanide is offline
Apfel πthon
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Guilford
Posts: 25
SamCyanide is on a distinguished road
Re: Initial release of RobotPy for 2015

Sweet! Python forever, dude. I believe I'll be getting to using one of our boards for python soon.

Thanks for continuing support and here's to a year of FRC python innovation!
Reply With Quote
  #3   Spotlight this post!  
Unread 05-01-2015, 18:58
Aero Aero is offline
consumes pizza, produces code
AKA: Ari Lotter
FRC #0865 (Warp7)
Team Role: Programmer
 
Join Date: May 2013
Rookie Year: 2013
Location: Toronto
Posts: 30
Aero is on a distinguished road
Cool Re: Initial release of RobotPy for 2015

This is amazing! In the three days I've had to play with this, I've gotten automatic uploading from my IDE working, along with on-the-fly code reloading. Upload times on the cRIO were around a minute and a half with reboot included, now I can get new code running in less than 7 seconds.

My favorite part is real debugging on the RoboRio
Reply With Quote
  #4   Spotlight this post!  
Unread 05-01-2015, 19:15
virtuald's Avatar
virtuald virtuald is online now
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,042
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: Initial release of RobotPy for 2015

Quote:
Originally Posted by Aero View Post
This is amazing! In the three days I've had to play with this, I've gotten automatic uploading from my IDE working, along with on-the-fly code reloading. Upload times on the cRIO were around a minute and a half with reboot included, now I can get new code running in less than 7 seconds.

My favorite part is real debugging on the RoboRio
Great to hear! Perhaps you'd be interested in posting some docs for others to use?

How are you debugging? Via pdb, or remotely (we have an open bug for setting up remote debugging).
__________________
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
  #5   Spotlight this post!  
Unread 06-01-2015, 14:21
Aero Aero is offline
consumes pizza, produces code
AKA: Ari Lotter
FRC #0865 (Warp7)
Team Role: Programmer
 
Join Date: May 2013
Rookie Year: 2013
Location: Toronto
Posts: 30
Aero is on a distinguished road
Exclamation Re: Initial release of RobotPy for 2015

Quote:
Originally Posted by virtuald View Post
Great to hear! Perhaps you'd be interested in posting some docs for others to use?
Of course! I haven't managed to reload code while the robot is enabled (that's pretty dangerous anyways), but I have automatic reloading for your source files post-upload.
I'm using my IDE (IntellJ IDEA)'s deployment function to upload the files over SCP on save.

Here's the script! It's pretty well-commented, so anyone should be able to figure it out & adapt it to their setup pretty quickly.

https://gist.github.com/aerobit/05c3bc5c71f60d52736e

Quote:
Originally Posted by virtuald View Post
How are you debugging? Via pdb, or remotely
I'm just using my IDE's remote debugger (again, PyCharm/IntelliJ IDEA).
Works perfectly!


One question; I'm trying to get the Encoder class working, but no matter if I pass it two DigitalChannels or two ints representing the channels, the constructor fails with a "TypeError: 'int' object is not iterable".
Here's the full error log.
https://gist.github.com/aerobit/37ad61b750b8e11b555e
Reply With Quote
  #6   Spotlight this post!  
Unread 06-01-2015, 14:38
virtuald's Avatar
virtuald virtuald is online now
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,042
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: Initial release of RobotPy for 2015

Quote:
Originally Posted by Aero View Post
I'm using my IDE (IntellJ IDEA)'s deployment function to upload the files over SCP on save.

Here's the script! It's pretty well-commented, so anyone should be able to figure it out & adapt it to their setup pretty quickly.
Ah, that kind of auto-reload. You'll probably want to adapt your locations/etc to work with what pyfrc does, or use pyfrc to do the upload for you (just released today). It installs stuff in such a way that the FIRST/NI stuff will autostart it on bootup, and can be controlled by the standard FIRST tools.

Quote:
I'm just using my IDE's remote debugger (again, PyCharm/IntelliJ IDEA).
Works perfectly!
Cool.

Quote:
One question; I'm trying to get the Encoder class working, but no matter if I pass it two DigitalChannels or two ints representing the channels, the constructor fails with a "TypeError: 'int' object is not iterable".
Here's the full error log.
https://gist.github.com/aerobit/37ad61b750b8e11b555e
That should work. There are unit tests for it even. File a bug on github.
__________________
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 12-01-2015, 14:46
NotInControl NotInControl is offline
Controls Engineer
AKA: Kevin
FRC #2168 (Aluminum Falcons)
Team Role: Engineer
 
Join Date: Oct 2011
Rookie Year: 2004
Location: Groton, CT
Posts: 261
NotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond reputeNotInControl has a reputation beyond repute
Re: Initial release of RobotPy for 2015

I had a question on the pynetworktables port. Does it implement the "tables" package of WPILib, in particular I am looking for the IRemoteConnectionListener class and ITableListener class.

I didn't see them when browsing the github repo, maybe I overlooked it.

Thanks for putting this together. Def a useful resource.
__________________
Controls Engineer, Team 2168 - The Aluminum Falcons
[2016 Season] - World Championship Controls Award, District Controls Award, 3rd BlueBanner
-World Championship- #45 seed in Quals, World Championship Innovation in Controls Award - Curie
-NE Championship- #26 seed in Quals, winner(195,125,2168)
[2015 Season] - NE Championship Controls Award, 2nd Blue Banner
-NE Championship- #26 seed in Quals, NE Championship Innovation in Controls Award
-MA District Event- #17 seed in Quals, Winner(2168,3718,3146)
[2014 Season] - NE Championship Controls Award & Semi-finalists, District Controls Award, Creativity Award, & Finalists
-NE Championship- #36 seed in Quals, SemiFinalist(228,2168,3525), NE Championship Innovation in Controls Award
-RI District Event- #7 seed in Quals, Finalist(1519,2168,5163), Innovation in Controls Award
-Groton District Event- #9 seed in Quals, QuarterFinalist(2168, 125, 5112), Creativity Award
[2013 Season] - WPI Regional Winner - 1st Blue Banner
Reply With Quote
  #8   Spotlight this post!  
Unread 12-01-2015, 14:53
virtuald's Avatar
virtuald virtuald is online now
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,042
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: Initial release of RobotPy for 2015

Quote:
Originally Posted by NotInControl View Post
I had a question on the pynetworktables port. Does it implement the "tables" package of WPILib, in particular I am looking for the IRemoteConnectionListener class and ITableListener class.

I didn't see them when browsing the github repo, maybe I overlooked it.

Thanks for putting this together. Def a useful resource.
It is a full implementation of NetworkTables, and it does implement that functionality, though some of it has been converted to use callbacks instead of needing to implement the class. Check out NetworkTable.addConnectionListener and NetworkTable.addTableListener

Also, there is a sample available that shows the use of the table listener.
__________________
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

Last edited by virtuald : 12-01-2015 at 14:55.
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


All times are GMT -5. The time now is 14:04.

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