Complete list of "shellable" commands?

6 posts / 0 new
Last post
roschler
roschler's picture
Complete list of "shellable" commands?

Has anyone put together a complete list of the commands and their parameters that are runnable from a shell script?

 I'm talking about all the commands you see in one of the RS Media shell scripts, for example:

 

 # Number of Media:2
# C:\Robot\Personalities\Butler\Macros\CONANIM01\CONANIM01.mp3
# C:\Robot\Personalities\Butler\Macros\CONANIM01\butler_01_Songs.sh
#!bash
./butler_01_Songs.sh &
/usr/bin/robot/scripts/DefaultBcon.sh 2f
/usr/bin/robot/scripts/time_delay.sh 3000
# movement group nuber:0
/usr/bin/robot/scripts/MotorRel.sh 03 05 08
/usr/bin/robot/scripts/wait_rtn.sh 836
# movement group nuber:1
/usr/bin/robot/scripts/MotorRel.sh 03 07 08
/usr/bin/robot/scripts/MotorRel.sh 04 05 08
/usr/bin/robot/scripts/wait_rtn.sh 816
# movement group nuber:2
/usr/bin/robot/scripts/MotorRel.sh 03 16 08
/usr/bin/robot/scripts/MotorRel.sh 04 16 08
/usr/bin/robot/scripts/wait_rtn.sh 816
#TotalTime: 2598#Time After OverHead: 2468

 There must be a ton of them.  Motors, robot to robot interaction commands (infrared signals), multimedia commands.  It would be great to have a complete listing of what they are and what the acceptable parameters are.

 Thanks.

 

 

The Cylon
The Cylon's picture

Yeah we're attempting to organize this under

software engineering the RS Media  (in this forum)

 Join us!

roschler
roschler's picture

The Cylon,

 Yes and I'm watching that project expectantly.  But I was hoping that WowWee staff would jump in with a list of items so I added this thread.  They've got to have them somewhere in engineering because the software suite has to know what line items to write to the shell script.

The Cylon
The Cylon's picture

I've looked at 5  shell scripts so far.

 

MotorRel.sh

time_delay.sh

wait_rtn.sh

DefaultBcon.sh

BasicMove.sh

 

Looks like they take between 1 and 3 parameters.

Looks like the parameters are in hex

This is the bash shell.

 

The  commands appear to be divided up between

group 0, 1 ,2 (Head, Body,Arms?)

 

roschler
roschler's picture

Talk about finding treasure on the web.  This blog post talks about using a Ruby script to read Robosapien RS Media scripts created with the RS Media editing suite, and convert them to Java calls:

http://blogs.sun.com/slowhog/entry/having_fun_with_robosapien

Even if you don't know Ruby or Java, it's pretty easy to ferret out the important motor movement parameters and time delay items from the Ruby code.  This knowledge will let me create scripts directly from code.

Have fun! 

Santa Matt
Santa Matt's picture

roschler said:
Has anyone put together a complete list of the commands and their parameters that are runnable from a shell script?
 I'm talking about all the commands you see in one of the RS Media shell scripts, for example:
 # Number of Media:2
# C:\Robot\Personalities\Butler\Macros\CONANIM01\CONANIM01.mp3
# C:\Robot\Personalities\Butler\Macros\CONANIM01\butler_01_Songs.sh
#!bash
./butler_01_Songs.sh &
/usr/bin/robot/scripts/DefaultBcon.sh 2f
/usr/bin/robot/scripts/time_delay.sh 3000
# movement group nuber:0
/usr/bin/robot/scripts/MotorRel.sh 03 05 08
/usr/bin/robot/scripts/wait_rtn.sh 836
# movement group nuber:1
/usr/bin/robot/scripts/MotorRel.sh 03 07 08
/usr/bin/robot/scripts/MotorRel.sh 04 05 08
/usr/bin/robot/scripts/wait_rtn.sh 816
# movement group nuber:2
/usr/bin/robot/scripts/MotorRel.sh 03 16 08
/usr/bin/robot/scripts/MotorRel.sh 04 16 08
/usr/bin/robot/scripts/wait_rtn.sh 816
#TotalTime: 2598#Time After OverHead: 2468

 There must be a ton of them.  Motors, robot to robot interaction commands (infrared signals), multimedia commands.  It would be great to have a complete listing of what they are and what the acceptable parameters are.
 Thanks.

The groups are movements that are grouped together. With the help from
http://bytebin.net/robotics/rsmedia/articles/accessinglinuxdir.html

And some assistance from Nocturnal, I have plotted 90% + of the commands, both as scripts and as raw parameters sent to send_robot_cmd. I will be posting this to my personal website shortly keep an eye out on this thread: 

http://www.robocommunity.com/forum/thread/15084/Programming-RSMEDIA/?page=3

for an announcement of when it is posted.

 Santa Matt