Go to Post According to Clarke's third law, I believe their entire robot works by magic. - dtengineering [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 14-10-2011, 01:15
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 2011.3

As there seems to be a lot of interest in trying out Python in the fall, I've released a new (hopefully final) version for 2011: 2011.3

Download the new packages at: http://firstforge.wpi.edu/sf/frs/do/...ts.robotpy/frs

Note you want to download all three packages!

The "core" package contains Python (FRC_UserProgram.out) and its standard libraries.

The "WPILib" package contains WPILib - both the libraries for the robot and some sample code.

The "Utilities" package contains some useful utilities (contributed by virtuald).

Both the core and WPILib packages have "robot" directories containing the files that need to be copied to the robot. They also have an install.py Python script that will perform this copy for you (just enter your team number).

This version incorporates WPILib r2262 and some incomplete vision wrappers.
__________________
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
  #2   Spotlight this post!  
Unread 14-10-2011, 02:03
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,032
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: RobotPy 2011.3

Haha, I was just going to email you tomorrow about possibly releasing some new packages.
__________________
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
  #3   Spotlight this post!  
Unread 16-10-2011, 17:10
ozzloy ozzloy is offline
Registered User
FRC #0812
 
Join Date: Dec 2005
Location: cheesy poofs and midnight mechanics
Posts: 3
ozzloy is an unknown quantity at this point
Re: RobotPy 2011.3

http://firstforge.wpi.edu/sf/wiki/do...y/wiki/Install

says "unzip the release .zip", there's 3 of them here:

http://firstforge.wpi.edu/sf/frs/do/...ts.robotpy/frs

my robot is flashed with c++.

i have downloaded all 3 files up there, unzipped them, and ftpd all files in {core,wpilib}/robot/* to 10.te.am.2:/*

i put a robot.py under 10.te.am.2:/py/robot.py next to boot.py

i get red next to Robot Code.

am i skipping a step?
Reply With Quote
  #4   Spotlight this post!  
Unread 17-10-2011, 00:25
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,032
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: RobotPy 2011.3

Yes, that's what you should have done. You should use the NetConsole and see if there are any errors reported when the robot is starting up.
__________________
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 19-10-2011, 00:42
ozzloy ozzloy is offline
Registered User
FRC #0812
 
Join Date: Dec 2005
Location: cheesy poofs and midnight mechanics
Posts: 3
ozzloy is an unknown quantity at this point
Re: RobotPy 2011.3

now that you've confirmed those steps, i'm running on a new theory.

i think flashing to c++ might not have worked correctly.

we've had it fail to switch before. i'm kicking myself for not thinking of it at the time.

now we're going to retry flashing until a the sample c++ program runs. then we'll load the python interpreter.

i'll let you know how that works this weekend.

i've talked to a couple people on other teams who also have had trouble flashing. is there something better than just retrying until it actually flashes? one guy suggested something about dip switches on the bot?
Reply With Quote
  #6   Spotlight this post!  
Unread 29-10-2011, 17:22
404'd's Avatar
404'd 404'd is offline
Lead contributor of sweg
AKA: Josh
FRC #0967 (Iron Lions (9-sits-7))
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2009
Location: Marion, Iowa
Posts: 86
404'd is a name known to all404'd is a name known to all404'd is a name known to all404'd is a name known to all404'd is a name known to all404'd is a name known to all
Re: RobotPy 2011.3

Quote:
Originally Posted by ozzloy View Post
now that you've confirmed those steps, i'm running on a new theory.

i think flashing to c++ might not have worked correctly.

we've had it fail to switch before. i'm kicking myself for not thinking of it at the time.

now we're going to retry flashing until a the sample c++ program runs. then we'll load the python interpreter.

i'll let you know how that works this weekend.

i've talked to a couple people on other teams who also have had trouble flashing. is there something better than just retrying until it actually flashes? one guy suggested something about dip switches on the bot?
Have you had any luck? Because i've been trying RobotPy, and i still get the no robot code light. Even the sample code wont run. I've formatted crio for C++ (v28 image), ran the install on both core and WPIlib, and copied over the "Simple" sample code, but i still have get no "robot code" light. I've seen some posts about using net console, so i will look into that next time i have access

Josh
__________________
Driving "Career":
2012 GKC: Quarterfinals w/ 6th seeded alliance | Wisconsin: Quarterfinals - 3rd seeded alliance captains
2013 GKC: Quarterfinals w/ 5th seeded alliance | North Star: Regional winners, 2nd seeded alliance captains
2013 CMP: Curie Semis w/ 2056 + 3990
Reply With Quote
  #7   Spotlight this post!  
Unread 29-10-2011, 19:08
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,032
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: RobotPy 2011.3

It's pretty much a necessity to have NetConsole enabled when you're using RobotPy. Otherwise you can't tell when things die.
__________________
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
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 21:39.

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