Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Programming the Lego robots using Ruby technology.

0 views
Skip to first unread message

Victor Reyes

unread,
Jul 10, 2005, 7:14:20 PM7/10/05
to
Do anyone knows if there is a Ruby API to program the Lego robots?

There is a Java environment to accomplish such a task.

http://java.sun.com/features/2002/05/robot.html

More on the subject at:
http://www.cs.uu.nl/people/markov/lego/challenge/index.html

Main page: http://mindstorms.lego.com/eng/default.asp?domainredir=www.legomindstorms.com

Thank you

Victor


daz

unread,
Jul 10, 2005, 8:22:03 PM7/10/05
to

Victor Reyes forgot to Google "Lego Ruby" and asked:

>
> Do anyone knows if there is a Ruby API to program the Lego robots?

http://rubyforge.org/projects/lego-mindstorms/


daz


Victor Reyes

unread,
Jul 10, 2005, 9:16:57 PM7/10/05
to
Thank you Daz, I needed That!

Shashank Date

unread,
Jul 10, 2005, 11:12:25 PM7/10/05
to
HI Victor,

Please note that it is Windows based API to CONTROL the robots,
not PROGRAM the robots.

-- shanko



____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.
http://auctions.yahoo.com/


Victor Reyes

unread,
Jul 11, 2005, 6:45:47 AM7/11/05
to
I see.
I thought that I could write a Ruby procedure with specific directives
to control the robot. Then the procedure would be downloaded "into"
the robot for its execution.
I watched a TV demo of the Lego Robot where directives where
programmed and loaded into the Robot. Things such as: "When hitting
and object, go on reverse" and more were used.

I guess I need to read the doc.

Thank you

Shashank Date

unread,
Jul 11, 2005, 12:41:00 PM7/11/05
to
Hi,

--- Victor Reyes <victor...@gmail.com> wrote:

> I see.
> I thought that I could write a Ruby procedure with specific directives
> to control the robot. Then the procedure would be downloaded "into"
> the robot for its execution.

Yes, that would be the next step. Quite a big step though, since you would
need a way to translate not just the commands to their equivalent bytes codes
(which is realtively easy) but also the control structures (if-then-else, loops
etc). The current implementation uses Ruby's control structures and hence
can only control.

> I watched a TV demo of the Lego Robot where directives where
> programmed and loaded into the Robot. Things such as: "When hitting
> and object, go on reverse" and more were used.

What were they using to code the "directives" in this demo? If
it is the IDE that comes with the kit, then it generates the
intermediate Mindscript program which gets compiled into byte code.



> I guess I need to read the doc.

Please let me know if you need more details.

> Thank you

Thanks,
-- shanko

> On 7/10/05, Shashank Date <shank...@yahoo.com> wrote:
> > HI Victor,
> >
> > --- Victor Reyes <victor...@gmail.com> wrote:
> >
> > > Thank you Daz, I needed That!
> > >
> > > On 7/10/05, daz <do...@d10.karoo.co.uk> wrote:
> > > >
> > > > Victor Reyes forgot to Google "Lego Ruby" and asked:
> > > > >
> > > > > Do anyone knows if there is a Ruby API to program the Lego robots?
> > > >
> > > > http://rubyforge.org/projects/lego-mindstorms/
> >
> > Please note that it is Windows based API to CONTROL the robots,
> > not PROGRAM the robots.
> >
> > -- shanko
> >
> >
> >
> >
> >
> > ____________________________________________________
> > Sell on Yahoo! Auctions – no fees. Bid on great items.
> > http://auctions.yahoo.com/
> >
> >
>


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


Ingo Blank

unread,
Jul 11, 2005, 10:07:29 PM7/11/05
to
Victor Reyes wrote:

Hello,

> Do anyone knows if there is a Ruby API to program the Lego robots?
>
> There is a Java environment to accomplish such a task.

I remember the "Bot-Kit", written in Dolphin Smalltalk by Andy Bower
of Object-Arts. http://www.object-arts.com
While the links found when googling for it right now seem to be dead, you
could probably ask for it on comp.lang.smalltalk.dolphin or drop Andy a
mail.
This "Bot-Kit" was pretty cool and I had a lot of fun with it a few years
ago.

Good luck!

Ingo


0 new messages