LeRobot documentation

OMX

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입니다.

원격 조작

ports를 올바르게 식별한 후, 리더 암을 사용하여 팔로워 암을 직접 텔레오퍼레이트할 수 있습니다.

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

원격 조작(teleoperation) 중 리더 암의 움직임은 팔로워 암에 의해 실시간으로 미러링됩니다. 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