|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
RobotPy 2011.2
I've released RobotPy (Python for FRC) 2011.2.
http://firstforge.wpi.edu/sf/projects/robotpy Major changes from 2011.1 release:
Sorry for not getting the vision classes done for this release, but I felt the lack of the Victor class demanded a quick release. I'm actively working on them (holy cow is nivision huge!) but it'll take a few more days to complete. |
|
#2
|
||||
|
||||
|
Re: RobotPy 2011.2
Sample code to activate camera
Code:
import vision test_cam = vision.PCVideoServer() It is significantly laggy over wireless, but that is how it is for everyone. |
|
#3
|
|||
|
|||
|
Re: RobotPy 2011.2
Thanks for this, Peter. It has been an awesome addition to the FRC world, and we have been using it intensely since its release.
Speaking only for ourselves regarding this: The vision lib would certainly be at the top of our 'love to have that' list (and you've mentioned that it is coming). The SmartDashboard looks interesting also - we did not find support for it in 11.2 - hope that's easy to add. On a related note, perhaps you have time to share your viewpoint on where would someone interested in helping this effort begin (say, if they had some learning curve to overcome re: SIP and wrapping a new library)? |
|
#4
|
||||
|
||||
|
Re: RobotPy 2011.2
I'm working on getting ZomB to work with python, If you want to help me get it going, feel free to PM me.
|
|
#5
|
|||
|
|||
|
Re: RobotPy 2011.2
Quote:
I'm the lead developer of the Smart Dashboard project. I haven't looked at any of the Python code yet, but I would be happy to help port the robot side code. I'll take a look at that sometime in the next week or so. That's pretty cool to have Python working on robots; thanks for your hard work Peter. ~Paul Malmsten |
|
#6
|
|||
|
|||
|
Re: RobotPy 2011.2
Quote:
Code:
ds = wpilib.DriverStation.GetInstance() dash = wpilib.SmartDashboard(ds.GetUserStatusDataSem()) ds.SetHighPriorityDashboardPackerToUse(dash) SIP is a good place to start, although SWIG can be used as well (although if your classes extend WPILib classes you'll need to use SIP). The next step is to check out the codebase (from git) and look at how the various packages are wrapped (WPILib namely). |
|
#7
|
|||
|
|||
|
Re: RobotPy 2011.2
Quote:
I think the vision/vision2009 interfaces have been the most useful to us up 'til now; we have not yet had to delve into the IMAQ functions. Looking for functionality akin to the 2010ImageDemo, essentially. Cloned the git repository; learning SIP is next on our list. Having it in the toolbox also might provide an escape valve for situations where wrapping an entire C++ lib might be too much work, in which case we could just wrap customized code that implements only the functionality necessary. |
|
#8
|
||||
|
||||
|
Re: RobotPy 2011.2
How do you debug with RobotPy?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|