Re: Python LEGO Mindstorm control...

2008-12-09 Thread Steve Holden
[EMAIL PROTECTED] wrote:
 Hi Toni Meyer,
 
  
 
 I would be quite interested in your Python extension to send ir signals
 to the rcx.
 
  
 
 I am quite new to this stuff, hope I’ll understand what  you did?
 
  
 
 Could you send it to me?
 
  
 
 Thanks a lot!
 
Daniel:

You do realize that you posted to a mailing list, not an individual,
right? There's no evidence that Toni Meyer will see your message.

regards
 Steve
-- 
Steve Holden+1 571 484 6266   +1 800 494 3119
Holden Web LLC  http://www.holdenweb.com/

--
http://mail.python.org/mailman/listinfo/python-list


Python LEGO Mindstorm control...

2008-12-08 Thread feinepost
Hi Toni Meyer,

 

I would be quite interested in your Python extension to send ir signals to
the rcx.

 

I am quite new to this stuff, hope I'll understand what  you did?

 

Could you send it to me?

 

Thanks a lot!

 

Daniel Rupp

--
http://mail.python.org/mailman/listinfo/python-list


Python LEGO Mindstorm control...

2005-03-29 Thread Venkat B
Hi all,

I have a question re the use of Python to control a robot built with the
LEGO Mindstorm system.
This is to help my 11yr old with his increased interest in 'programming' and
'robotics'... If not feasible, he wants to use the graphical-tool that comes
with it...

Would you suggest:
1. Using LegOS (http://legos.sourceforge.net/) and writing/using py
extensions from a Linux-box, OR
2. Using LeJOS (http://lejos.sourceforge.net/) and writing Jython utils.

Wanted to incorporate Python somehow, as it may be quite appropriate for his
age. Will have to help quite a bit in either case, tho... but was wondering
which is a more treaded path...

TIA,
/venkat


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python LEGO Mindstorm control...

2005-03-29 Thread D H
Venkat B wrote:
Hi all,
I have a question re the use of Python to control a robot built with the
LEGO Mindstorm system.
This is to help my 11yr old with his increased interest in 'programming' and
'robotics'... If not feasible, he wants to use the graphical-tool that comes
with it...
Would you suggest:
1. Using LegOS (http://legos.sourceforge.net/) and writing/using py
extensions from a Linux-box, OR
2. Using LeJOS (http://lejos.sourceforge.net/) and writing Jython utils.
Wanted to incorporate Python somehow, as it may be quite appropriate for his
age. Will have to help quite a bit in either case, tho... but was wondering
which is a more treaded path...
I would use the graphical language environment that comes with Lego 
Mindstorms.  It was designed for kids.

I haven't seen anyone show how to program mindstorms with lejos and 
jython, only ruby: http://rubyforge.org/projects/lego-mindstorms/

In regular python, there is the Pyro robotics simulator: 
http://wiki.cs.brynmawr.edu/?Pyro
but it is designed more for college students.
--
http://mail.python.org/mailman/listinfo/python-list


RE: Python LEGO Mindstorm control...

2005-03-29 Thread Tony Meyer
 I have a question re the use of Python to control a robot 
 built with the LEGO Mindstorm system.
 This is to help my 11yr old with his increased interest in 
 'programming' and 'robotics'... If not feasible, he wants to
 use the graphical-tool that comes with it...
 
 Would you suggest:
 1. Using LegOS (http://legos.sourceforge.net/) and writing/using py
 extensions from a Linux-box, OR

BTW, this should be BrickOS (http://brickos.sourceforge.net/).

 2. Using LeJOS (http://lejos.sourceforge.net/) and writing 
 Jython utils.
 
 Wanted to incorporate Python somehow, as it may be quite 
 appropriate for his age. Will have to help quite a bit in either
 case, tho... but was wondering which is a more treaded path...

I've used the graphical environment that comes with Mindstorms in
conjunction with CPython.  Basically I have a Python extension that can send
IR signals (well, a 0-255 number) to the RCX.  In the graphical environment
I can design a program to respond to the IR signals (pretty simple stuff),
and in a Python script I can put more complex behaviour that interacts with
other things and sends out the appropriate IR controls.

(Essentially, the graphical environment is used for strict RCX control -
turning motors on/off, reading sensors, etc, and the Python environment is
used for everything else).

I found this a good way to do things (although part of that is the nature of
the larger project), and suspect it may be in other cases, too.  It does
mean you can avoid C/C++ (apart from creating the extension in the first
place) and Java, and don't need to replace the firmware, as with LeJOS.

The extension is a fairly simple adaptation of some NQC code (NQC is
licensed under the MPL).  I can wrap it up and give it to you if you'd like,
or just describe what I did.  If you wanted to do a lot more work, you could
wrap a great deal more of the NQC code and have a CPython extension that can
really control the RCX without using the graphical environment or
BrickOS/LeJOS.  I think starting off with the graphical environment is
generally good, though.

=Tony.Meyer

--
http://mail.python.org/mailman/listinfo/python-list


Re: Python LEGO Mindstorm control...

2005-03-29 Thread Cameron Laird
In article [EMAIL PROTECTED], D H  [EMAIL PROTECTED] wrote:
.
.
.
I would use the graphical language environment that comes with Lego 
Mindstorms.  It was designed for kids.

I haven't seen anyone show how to program mindstorms with lejos and 
jython, only ruby: http://rubyforge.org/projects/lego-mindstorms/

In regular python, there is the Pyro robotics simulator: 
http://wiki.cs.brynmawr.edu/?Pyro
but it is designed more for college students.

Me, too; that is, I also recommend the included developers' kit,
Pyro is indeed neat, and, to be certain it's clear to other readers,
there are *many* languages used for programming Mindstorms, including
RCX, Tcl, Forth, ...
-- 
http://mail.python.org/mailman/listinfo/python-list