To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 17750
17749  |  17751
Subject: 
Re: Not totally satisfied with the Lego Mindstorm concept: Mathematical variables and direct connection PC/mechanical device
Newsgroups: 
lugnet.robotics
Date: 
Wed, 24 Apr 2002 14:41:47 GMT
Original-From: 
Steve Baker <{sjbaker1@airmail.}IHateSpam{net}>
Reply-To: 
sjbaker1@^saynotospam^airmail.net
Viewed: 
615 times
  
Andrew Burton wrote:

You need to look up pbForth (or is it pBrick?) and NQC.  Those are two
languages for the rcx that have variables -- specifically math, as I'm
not sure if there are strings for the RCX.  But I digress, those have
variables.  My guess, and I am taking a LEAP here, is that you're using
the Mindstorms's software which does not have variables.

Now, specifying a language you might prefer, and I say this having very
little experience with any of the languages -- there's a reason I lurk
-- pbForth allows you to terminal to the RCX and issue direct, real-time
commands through the infrared port.  I've thought about a similar
project, using the full force of my computer to act as the brains.

That's OK so long as the RCX doesn't get out of IR contact with the PC - as
can *EASILY* happen.  You need to have at least some autonomous code inside
the robot that will enable it to regain contact with the PC by (for example)
backtracking over it's last couple of manouvers in the event that it loses
the IR signal.

Rather than have a language that works in the way you describe, I'd suggest
writing a simple program (in NQC for example) that takes movement commands
from the PC and relays back sensor outputs - but which has enough on-board
intelligence to remember how to backtrack when it loses contact *AND* what
immediate action to take if (for example) a collision sensor reports a
'furniture impact event'.  The round-trip time to the PC and back again
can be pretty slow - so you'll want something like:

   if I collide with something
   {
     stop ;
     tell the PC we collided ;
     sit still until the PC tells me what to do ;
   }

You may also seriously want to look into PalmPilot programming in
regards to the RCX.  One idea that's danced through my head, but I'm ill
prepared to work with yet, was attaching a PalmPilot to a LEGO creation.
The infrared on the PalmPilot allows communication (as people have
shown) and with a direct "connection" to the creation it could function
as the brains since it has more memory.

Yes - that at least eliminates the "loss of IR signal" problem.  However,
I think you still need to consider the long-ish latency between the RCX
detecting some onboard condition, sending it over IR, then the PDA detecting
the signal, acting on it, sending the command back to the RCX and then finally
having the RCX react to it.

That sort of round-trip can easily take a half second or more - which can
be a long time if you are rammed against the refrigerator with your motors
stalled (or your 'MegaDeath Killomatic Blastotron' machine is dismembering
your cat).

----------------------------- Steve Baker -------------------------------
Mail : <sjbaker1@airmail.net>   WorkMail: <sjbaker@link.com>
URLs : http://www.sjbaker.org
       http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net
       http://prettypoly.sf.net http://freeglut.sf.net
       http://toobular.sf.net   http://lodestone.sf.net



Message has 1 Reply:
  [OT] cats (was RE: Not totally satisfied with the Lego Mindstorm concept: Mathematical variables and direct connection PC/mechanical device)
 
(...) there is a school of thought that says there is no such thing as too much time spent dismembering cats (22 years ago, 24-Apr-02, to lugnet.robotics)

Message is in Reply To:
  RE: Not totally satisfied with the Lego Mindstorm concept: Mathematical variables and direct connection PC/mechanical device
 
You need to look up pbForth (or is it pBrick?) and NQC. Those are two languages for the rcx that have variables -- specifically math, as I'm not sure if there are strings for the RCX. But I digress, those have variables. My guess, and I am taking a (...) (22 years ago, 24-Apr-02, to lugnet.robotics)

10 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR