更には、中ほどの「SELECT」で「通常」/「黄緑」/「オレンジ」 のモードを選択できるので、 20個(21-[select])×3=60パターンのコマンドコマンドが ある事になる。
これらを全部学習するぅ。
root@debian:~# mkdir /usr/local/lib/kuro-rs root@debian:~# cd !$ cd /usr/local/lib/kuro-rs root@debian:/usr/local/lib/kuro-rs# mkdir roboactor root@debian:/usr/local/lib/kuro-rs# cd !$ cd roboactor root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec FORWARD /dev/ttyUSB2 FORWARD - /dev/ttyUSB2 rec code waiting......... Create Rec File : [FORWARD] root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec BACKWARD /dev/ttyUSB2 BACKWARD - /dev/ttyUSB2 rec code waiting......... Create Rec File : [BACKWARD] root@debian:/usr/local/lib/kuro-rs/roboactor#さて、ここで問題。
後々面倒なことになりそうなので、 左のボタンを RIGHT のファイルに保存する。
root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec RIGHT /dev/ttyUSB2 RIGHT - /dev/ttyUSB2 rec code waiting......... Create Rec File : [RIGHT] root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec LEFT /dev/ttyUSB2 LEFT - /dev/ttyUSB2 rec code waiting......... Create Rec File : [LEFT] root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec RIGHT_ARM_UP /dev/ttyUSB2 RIGHT_ARM_UP - /dev/ttyUSB2 rec code waiting......... Create Rec File : [RIGHT_ARM_UP] root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec RIGHT_ARM_DOWN /dev/ttyUSB2 RIGHT_ARM_DOWN - /dev/ttyUSB2 rec code waiting......... Create Rec File : [RIGHT_ARM_DOWN] root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec RIGHT_ARM_IN /dev/ttyUSB2 RIGHT_ARM_IN - /dev/ttyUSB2 rec code waiting......... Create Rec File : [RIGHT_ARM_IN] root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec RIGHT_ARM_OUT /dev/ttyUSB2 RIGHT_ARM_OUT - /dev/ttyUSB2 rec code waiting......... Create Rec File : [RIGHT_ARM_OUT] root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec TILT_BODY_RIGHT /dev/ttyUSB2 TILT_BODY_RIGHT - /dev/ttyUSB2 rec code waiting......... Create Rec File : [TILT_BODY_RIGHT] : : root@debian:/usr/local/lib/kuro-rs/roboactor# /usr/local/src/kuro-rs/rs_rec POWER_OFF /dev/ttyUSB2 POWER_OFF - /dev/ttyUSB2 rec code waiting......... Create Rec File : [POWER_OFF] root@debian:/usr/local/lib/kuro-rs/roboactor# ls ALL_DEMO BURP HIGH5 LEFT_ARM_PICKUP LEFT_ARM_THUMP R RIGHT_ARM_STRIKE1 RIGHT_ARM_UP STEP ARMS_IN DANCE L LEFT_ARM_STRIKE1 LEFT_ARM_UP RIGHT RIGHT_ARM_STRIKE2 RIGHT_TURN_STEP TALK_BACK ARMS_OUT DEMO1 LEFT LEFT_ARM_STRIKE2 LEFT_TURN_STEP RIGHT_ARM_DOWN RIGHT_ARM_STRIKE3 ROAR TILT_BODY_LEFT BACKWARD DEMO2 LEFT_ARM_DOWN LEFT_ARM_STRIKE3 LISTEN RIGHT_ARM_IN RIGHT_ARM_SWEEP S TILT_BODY_RIGHT BACK_STEP EXECUTE LEFT_ARM_IN LEFT_ARM_SWEEP OOPS RIGHT_ARM_OUT RIGHT_ARM_THROW SLEEP WAKEUP BULLDOZER FORWARD LEFT_ARM_OUT LEFT_ARM_THROW POWER_OFF RIGHT_ARM_PICKUP RIGHT_ARM_THUMP SONIC WHISTLE root@debian:/usr/local/lib/kuro-rs/roboactor#若干足りないが。。。
|
|
←(前のページ) ロボアクターのリモコンの学習 |
当月のハックの記録 SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ |
(次のページ)→ ロボアクター制御ライブラリの作成 |