OUR NETWORK:TiVo Community TechLore Sling Community My DigitalEntertainer MyOpenRouter MediaSmart home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 81220.1
January 12, 2007 04:29 AM

Categories: RS Media

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

Dradts

Member
Joined: 01/06/2007

Hi,

as far as I know, the RS Media can be controlled using shell-scripts. I would like to know how flexible this is? Can multiple commands be executed at the same time? Can I read out the RSM's different sensors? Can I directly control all of its motors? Is it possible to playback sounds, movies, ....

I've read the manual for the Macro-Editor and it says that it ain't possible to nest multiple "if"-clauses. Is this true? I mean, the shell script normally should be able to nest as many clauses as I want, shouldn't it? Or how did they implement this functionality?

For example, I would like to write the following program:

START
IF (NOISE HEARD)
     SAY "HELLO"
     FREE ROAM FOR 2 MINUTES
     IF (SEE GREEN)
          HIGH PICKUP
     ENDIF
     IF (SEE RED)
          LOW PICKUP
     ENDIF
     FREE ROAM FOR 2 MINUTES

     WHILE(true)
           IF (SEE RED)
                BREAK
           ENDIF
           FREE ROAM FOR 1 MINUTE
    ENDWH
ENDIF 
END

would something like this be possible? 

Discussion:    Add a Comment | Comments 1-6 of 6 | Latest Comment

January 12, 2007 6:14 PM

   I do know just a few about programing but I think you want to know something like this:

 

 

 

 

Horia Pernea
http://www.roboticage.eu

January 12, 2007 6:16 PM

RED = conditioning

Orange = Start / End ...Event

GREEN = Take action (play audio)

BLUE = Execute BodyCon (a series of actions & movements) 

Horia Pernea
http://www.roboticage.eu

January 14, 2007 7:08 AM

Dradts, could you give me a page number for where it says it can't handle nested if's?

RoboGuide - Your guide to hacking all things WowWee

January 14, 2007 1:47 PM

Its on this page:

http://www.wowweesupport.com/user_man...

 

There it says "NOTE: A conditional cannot be added to a conditional" (its  at the bottom of the "add conditional"-section).

January 14, 2007 5:48 PM

Well I tried this and the software certainly lets you and spits out the script with nested ifs ok. I dont think having free roam in there will work quite as you want though.  it look like you wanting the bot the roam about until he sees a red or a green object and then react accordingly but I dont think free roam would achieve that you may well have to write this as a shell script seperately from the editor and use the scripts output by the bodycon editor to give you an idea of how to walk about.

January 14, 2007 5:55 PM

Maybe it came with a later macro-editor software update?

Discussion:    Add a Comment | Back to Top | Comments 1-6 of 6 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

close this window
close this window