Go to Post If a team wants to cheat then it does nothing but give them a bad cloud hanging over their own heads. - Jon K. [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 16-01-2017, 12:45
Noam Noam is offline
Registered User
None #3034 (galileo)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Israel
Posts: 14
Noam is an unknown quantity at this point
how can i program the robot with python

Hello I noticed today that it's possible to program the robot with Python, (so I don't know much about it) - How can I do it ? I didn't find instructions for how to install and using it.
And is it recommended ? Is it stable ?

Thanks in advance
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2017, 13:08
TimTheGreat's Avatar
TimTheGreat TimTheGreat is offline
ArchdukeTim
FRC #1418 (Vae Victis)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2011
Location: Falls Church
Posts: 238
TimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura aboutTimTheGreat has a spectacular aura about
Re: how can i program the robot with python

Welcome to Python!

To get started with python, you probably want to know some basic python. Codecademy has a good intro that should be able to get you started.

Here are the instructions for everything robotpy.

In terms of being recommended, it depends who you ask. I would say go for it! If you don't like it you can go back to one of the official supported languages, although it's on par with them.

Stable...hmmm.....sure . It's pretty reliable. Thing were a bit shaky around kickoff but as of right now it should be smooth sailing. And if you ever run into issues, feel free to ask here, or on the robotpy gitter. It's a pretty active community and you'll get a response quickly (probably faster than CD).
__________________
There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.



2012 - Gracious Professionalism - Greater DC
2014 - Regional Finalist - Virginia | Industrial Design - Virginia | Regional Finalist - Greater DC
2015 - Innovation in Control - Greater DC
2016 - District Event Winner - VAHAY | Innovation in Control - VAHAY | District Event Winner - MDBET | Industrial Design - MDBET | District Champion - CHCMP | Innovation in Control - CHCMP
Reply With Quote
  #3   Spotlight this post!  
Unread 16-01-2017, 14:22
Noam Noam is offline
Registered User
None #3034 (galileo)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Israel
Posts: 14
Noam is an unknown quantity at this point
Re: how can i program the robot with python

oh I didn't explain myself good..
I'm already know Python, and I meant that I don't know how to install and use it on the robot.. I just know that there is a library called robotpy, but I don't know anything about how to install or using it.. so thats what I meant to ask
Reply With Quote
  #4   Spotlight this post!  
Unread 16-01-2017, 14:28
Noam Noam is offline
Registered User
None #3034 (galileo)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2015
Location: Israel
Posts: 14
Noam is an unknown quantity at this point
Re: how can i program the robot with python

opss never mind.. I missed the link to the instructors.. sorry p:
and sorry about the double-comment, I'm new here and I don't know how (and if it's possible) to edit / delete my comments..
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2017, 09:00
CloakAndDagger CloakAndDagger is offline
Registered User
FRC #0074 (CHAOS)
Team Role: Programmer
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Holland, MI
Posts: 32
CloakAndDagger is on a distinguished road
Re: how can i program the robot with python

As of last year Python was not officially supported by FIRST, which means that if your code errors out or you cant run at a FIRST event they will carry on without you and you can't count on support from FTAs and other volunteers.

If you decide to go on with python, most of the documentation you need will be in the WPILIB API.

We ran into some problems with the ctreCANTalon libraries so if you run into trouble with those let me know
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2017, 09:32
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,102
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: how can i program the robot with python

Quote:
Originally Posted by CloakAndDagger View Post
As of last year Python was not officially supported by FIRST, which means that if your code errors out or you cant run at a FIRST event they will carry on without you and you can't count on support from FTAs and other volunteers.

If you decide to go on with python, most of the documentation you need will be in the WPILIB API.

We ran into some problems with the ctreCANTalon libraries so if you run into trouble with those let me know
What issues did you have with the CTRE libraries?
__________________
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 19-01-2017, 09:54
CloakAndDagger CloakAndDagger is offline
Registered User
FRC #0074 (CHAOS)
Team Role: Programmer
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Holland, MI
Posts: 32
CloakAndDagger is on a distinguished road
Re: how can i program the robot with python

Quote:
Originally Posted by virtuald View Post
What issues did you have with the CTRE libraries?

We just had trouble understanding how to implement it. We originally tried to just import it into our code, but because it is a separate library we just had to ssh into the rio to install it.

I basically didn't do my reading and assumed I'd just be able to import it because I figured it would automatically be downloaded with robotpy
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 11:25.

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