Python on CBC

9 replies [Last post]
scottmil
scottmil's picture
Title: MiniBot
Joined: 05/10/2010
Posts:
BotPoints: 37
User offline. Last seen 11 years 49 weeks ago.

I've installed Python on the CBC, and have successfully ran Python Programs :). I'm also working on some other additions / modifications to the CBC.

Scott

All is fair in love and war, and botball is both :)

PiPeep
PiPeep's picture
Title: RocketBot
Joined: 07/19/2009
Posts:
BotPoints: 170
User offline. Last seen 9 years 11 weeks ago.

It should be noted that there is a port of Python to Java (Jython). Because CBCJVM already has a series of libraries and bindings, you may have more luck with that.

Of course, you are welcome to use CPython if you want to, and you might even have better performance with CPython (although results may vary).

Nice to have another CBC hacker join the community!

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 8 years 1 week ago.

Nice, did you follow the instructions on the Chumby forums, or did you do something different?

Always good to have more hackers in the community. :-)

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

scottmil
scottmil's picture
Title: MiniBot
Joined: 05/10/2010
Posts:
BotPoints: 37
User offline. Last seen 11 years 49 weeks ago.

This is true Python 2.6 running natively in the kernel :). This avoids any overhead requirements of a port through java etc. It was done in a very similar manner to the chumby modification.

Scott

All is fair in love and war, and botball is both :)

PiPeep
PiPeep's picture
Title: RocketBot
Joined: 07/19/2009
Posts:
BotPoints: 170
User offline. Last seen 9 years 11 weeks ago.

Any new developments?

I'm seriously considering switching to a language other than Java next year (on top of CBCJVM of course), so CBCJVM may get some big improvements in the alternate languages area.

scottmil
scottmil's picture
Title: MiniBot
Joined: 05/10/2010
Posts:
BotPoints: 37
User offline. Last seen 11 years 49 weeks ago.

I submitted my paper title "Python and the CBC v2.0" for GCER, with an installation package :). I will still be doing additional development in the mean time as well. I'm currently working on a few ideas, that if successful, will greatly increase the versatility of the CBC.

Scott

All is fair in love and war, and botball is both :)

PiPeep
PiPeep's picture
Title: RocketBot
Joined: 07/19/2009
Posts:
BotPoints: 170
User offline. Last seen 9 years 11 weeks ago.

Could you post that paper online?

Also, if you are interested, the CBCJVM paper.

scottmil
scottmil's picture
Title: MiniBot
Joined: 05/10/2010
Posts:
BotPoints: 37
User offline. Last seen 11 years 49 weeks ago.

I'm not sure what KIPR's policy is on posting papers before they have been officially released, or even accepted for that matter :). As soon as I can I will have it up here. That much I promise.

All is fair in love and war, and botball is both :)

scottmil
scottmil's picture
Title: MiniBot
Joined: 05/10/2010
Posts:
BotPoints: 37
User offline. Last seen 11 years 49 weeks ago.

Good News! My paper was accepted. You can definitely get a hold of Python for your CBC now.

Scott

All is fair in love and war, and botball is both :)

scottmil
scottmil's picture
Title: MiniBot
Joined: 05/10/2010
Posts:
BotPoints: 37
User offline. Last seen 11 years 49 weeks ago.

robotgeek.net is back up!

The content is nowhere near complete. But all of the info you need for python is there for download.

Scott

All is fair in love and war, and botball is both :)