LeRobot documentation

OMX

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v0.7.0).
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

OMX

OMX

パーツの注文と組み立て

まず、公式の組み立てガイドに従ってOMXハードウェアを組み立てます。

OMX 組立ガイド: https://ai.robotis.com/omx/assembly_guide_omx.html

OMX ロボットは、工場出荷時にプリセット済みです。モーター ID、通信パラメータ、関節オフセットがすでに設定されているため、LeRobot を使用する前に追加のモーター設定やキャリブレーションは不要です。

LeRobot🤗のインストール

LeRobotをインストールするには、インストールガイドに従ってください。

これらの手順に加えて、Dynamixelモーターのサポートをインストールする必要があります:

pip install -e ".[dynamixel]"

ロボットを接続する

各バスサーボアダプタのポートを見つけるには、このスクリプトを実行します:

lerobot-find-port

This command runs and when prompted, disconnect the USB cable from either the leader or follower arm and press Enter. The output will show ‘The port of this MotorsBus is [port]’. This identifies the port for the disconnected arm. Repeat for the other arm to identify both ports.

Mac
Linux

macOSでの出力例:

Finding all available ports for the MotorBus.
['/dev/tty.usbmodem575E0032081', '/dev/tty.usbmodem575E0031751']
Remove the USB cable from your MotorsBus and press Enter when done.

[...Disconnect corresponding leader or follower arm and press Enter...]

The port of this MotorsBus is /dev/tty.usbmodem575E0032081
Reconnect the USB cable.

検出されたポートは、リーダーアームまたはフォロワーアームに対応する/dev/tty.usbmodem575E0032081です。

遠隔操作

正しいポートを特定した後、リーダーアームを使用してフォロワーアームを直接テレオペレーションできます。

Mac
Linux

カメラなしで遠隔操作

lerobot-teleoperate \
  --robot.type=omx_follower \
  --robot.port=<your_follower_port> \
  --robot.id=omx_follower_arm \
  --teleop.type=omx_leader \
  --teleop.port=<your_leader_port> \
  --teleop.id=omx_leader_arm

テレオペレーション中、リーダーアームの動きはフォロワーアームによってリアルタイムでミラーリングされます。OMXはすでに事前設定が完了しているため、キャリブレーションの手順なしで、すぐにテレオペレーションを開始できます。

カメラで遠隔操作

カメラ設定をフォロワーアームに指定することで、テレオペレーション中にカメラ入力を有効にすることもできます。

lerobot-teleoperate \
  --robot.type=omx_follower \
  --robot.port=<your_follower_port> \
  --robot.id=omx_follower_arm \
  --robot.cameras="{front: {type: opencv, index_or_path: '/dev/video0', width: 640, height: 480, fps: 30}}" \
  --teleop.type=omx_leader \
  --teleop.port=<your_leader_port> \
  --teleop.id=omx_leader_arm \
  --display_data=true

カメラが有効な場合、カメラの映像がリアルタイムで表示され、ロボットの状態と同期されます。この設定は視覚的な監視に有用であり、後でデモの録画や模倣学習に再利用できます。

おめでとうございます🎉。ロボットがタスクを独自に学習する準備が整いました。

ご質問やご支援が必要な場合は、Discordまでご連絡ください。

Update on GitHub