Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Python (http://www.chiefdelphi.com/forums/forumdisplay.php?f=187)
-   -   RobotPy 2010.beta2 (http://www.chiefdelphi.com/forums/showthread.php?t=87340)

Peter Johnson 01-11-2010 01:46

RobotPy 2010.beta2
 
I've just released a new version of RobotPy (Python for FRC), 2010.beta2. The RobotPy site has moved to FIRST Forge at the encouragement of Brad Miller at WPI; please update your bookmarks. The new location is:

http://firstforge.wpi.edu/sf/projects/robotpy

Major changes from 2010.beta1 release:
  • Separate packages for the Python core (interpreter and libraries) and the WPILib module. The Python core itself no longer depends on WPILib. This decoupling will allow for separate releases of WPILib for different years (e.g. for beta testing or maintaining old robot code).
  • Dynamic loading support for binary modules; many of the standard Python modules are now dynamically loaded (as is WPILib). This will make it easier to distribute additional modules as separate packages in the future as well (e.g. NumPy).
  • RobotBase, SimpleRobot, and IterativeRobot classes are now provided.
  • You can now derive Python classes from PIDSource, PIDOutput, SpeedController, and Joystick and pass the derived classes to WPILib (e.g. PIDController). This enables custom PID control in Python.

The wiki pages at FIRST Forge contain the most recent documentation. In the coming weeks I plan to work on improving the documentation further; currently it mostly describes the differences between the C++ WPILib and the Python version.

I expect to complete translation of 294's 2010 robot program to Python on Wednesday. When I post it for download I will also make an announcement here.

Robototes2412 01-11-2010 23:02

Re: RobotPy 2010.beta2
 
I have a complete robot program already coded up, all it needs are comments

Dustin Shadbolt 19-11-2010 19:00

Re: RobotPy 2010.beta2
 
Good job robototes!

Robototes2412 20-11-2010 00:00

Re: RobotPy 2010.beta2
 
want a copy?

Dustin Shadbolt 21-11-2010 23:36

Re: RobotPy 2010.beta2
 
If you don't mind :).

Robototes2412 22-11-2010 00:08

Re: RobotPy 2010.beta2
 
well crap.


I accidentally deleted it all, so it looks like i have to remake it :(

joek 28-11-2010 18:25

Re: RobotPy 2010.beta2
 
Quote:

Originally Posted by Robototes2412 (Post 981531)
well crap.


I accidentally deleted it all, so it looks like i have to remake it :(

back this one up

Robototes2412 28-11-2010 23:20

Re: RobotPy 2010.beta2
 
i even made a computer testing interface for this one:

http://www.chiefdelphi.com/forums/sh...ad.php?t=87630

too lazy to copy the bbcode

Robototes2412 29-11-2010 22:20

Re: RobotPy 2010.beta2
 
i tried installing robotpy today, and it didn't work

Peter Johnson 30-11-2010 00:07

Re: RobotPy 2010.beta2
 
Quote:

Originally Posted by Robototes2412 (Post 982618)
i tried installing robotpy today, and it didn't work

Could you elaborate? Did you get any error messages in NetConsole? In order to help you get it working, I need more detail than simply "it didn't work".

Robototes2412 30-11-2010 00:43

Re: RobotPy 2010.beta2
 
we didn't have netconsole, all we got was watchdog/no code

Peter Johnson 30-11-2010 02:41

Re: RobotPy 2010.beta2
 
Quote:

Originally Posted by Robototes2412 (Post 982648)
we didn't have netconsole, all we got was watchdog/no code

You should definitely enable NetConsole to see what's going on. If it's simply "no code" that means the Python interpreter isn't starting. Watchdog likely means your Python code is raising an exception. NetConsole will show the details of any exceptions being raised.

Robototes2412 30-11-2010 21:43

Re: RobotPy 2010.beta2
 
How do I do that?

Peter Johnson 30-11-2010 22:32

Re: RobotPy 2010.beta2
 
Quote:

Originally Posted by Robototes2412 (Post 982828)
How do I do that?

See http://first.wpi.edu/FRC/frccupdates.html. There is a client download link and instructions for setup of netconsole under the C/C++ Team Update 4.0 section.

Future versions of the Imaging Tool will make it easier to enable the netconsole server portion. It's installed on the cRIO already, just not enabled by default in the C++ version.

Robototes2412 30-11-2010 22:34

Re: RobotPy 2010.beta2
 
oh, what port is this on?


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi