[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Programming the Lego robots using Ruby technology.

Victor Reyes

7/10/2005 11:14:00 PM

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/...

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

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

Thank you

Victor


7 Answers

daz

7/11/2005 12:22:00 AM

0


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-m...


daz


Victor Reyes

7/11/2005 1:17:00 AM

0

Thank you Daz, I needed That!

On 7/10/05, daz <dooby@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-m...
>
>
> daz
>
>
>
>


Shashank Date

7/11/2005 3:12:00 AM

0

HI Victor,

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

> Thank you Daz, I needed That!
>
> On 7/10/05, daz <dooby@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-m...

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....


Victor Reyes

7/11/2005 10:46:00 AM

0

I see.I thought that I could write a Ruby procedure with specific directivesto 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 whereprogrammed and loaded into the Robot. Things such as: "When hittingand object, go on reverse" and more were used.I guess I need to read the doc.Thank youOn 7/10/05, Shashank Date <shanko_date@yahoo.com> wrote:> HI Victor,> > --- Victor Reyes <victor.reyes@gmail.com> wrote:> > > Thank you Daz, I needed That!> >> > On 7/10/05, daz <dooby@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-minds... > 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.yaho... >

Shashank Date

7/11/2005 4:41:00 PM

0

Hi,

--- Victor Reyes <victor.reyes@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 <shanko_date@yahoo.com> wrote:
> > HI Victor,
> >
> > --- Victor Reyes <victor.reyes@gmail.com> wrote:
> >
> > > Thank you Daz, I needed That!
> > >
> > > On 7/10/05, daz <dooby@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-m...
> >
> > 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....
> >
> >
>


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


Victor Reyes

7/11/2005 7:59:00 PM

0

Well, what I actually witnessed on TV was no more than 2 minutes of aprobably one hour show. A program was written on a workstation(Windows perhaps) and the Lego was connected to the system probablyvia a USB cable. The pgm was downloaded into the Lego and a quick testshowed the device running, hitting a wall and returning. I just triedto remember Lego robot for later follow up, which is what I am doingnow with everyone here on this forum.I will purchase the device this week and I am looking forward to a fun summer.Thank youVictorOn 7/11/05, Shashank Date <shanko_date@yahoo.com> wrote:> Hi,> > --- Victor Reyes <victor.reyes@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 <shanko_date@yahoo.com> wrote:> > > HI Victor,> > >> > > --- Victor Reyes <victor.reyes@gmail.com> wrote:> > >> > > > Thank you Daz, I needed That!> > > >> > > > On 7/10/05, daz <dooby@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-minds... > >> > > 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.yaho... > >> > >> >> > > __________________________________________________> Do You Yahoo!?> Tired of spam? Yahoo! Mail has the best spam protection around> http://mail.yah... >

Ingo Blank

7/12/2005 2:07:00 AM

0

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.objec...
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