🧪 新しいチュートリアルを公開中 — ロボットアームからセンサーまで
コンテンツへスキップ

環境構築(macOS) ​

黒いリーダーアームは 5V6A 電源アダプタを使用します

白いフォロワーアームは 12V5A 電源アダプタを使用します

権限の付与 ​

図 1

Miniconda のインストール ​

https://www.anaconda.com/download

pip のミラーソース変更 ​

Shell
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple

conda のミラーソース変更 ​

Shell
# 既存の .condarc 設定をクリア(任意、競合を回避)
echo "" > ~/.condarc

# 清華ミラーの設定を書き込む
cat << EOF > ~/.condarc
channels:
  - defaults
show_channel_urls: true
default_channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:
  conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
EOF

# キャッシュをクリアして設定を反映させる
conda clean -i

仮想環境の作成 ​

Shell
conda create -y -n lerobot python=3.12

仮想環境への入り方 ​

Shell
conda activate lerobot

ffmpeg のインストール ​

Shell
conda install *ffmpeg*=7.1.1 *-c* conda-forge -y

インストールの成功を確認します

Shell
ffmpeg

図 2

LeRobot のダウンロード ​

  • LeRobot 公式コードリポジトリをダウンロードします
Shell
git clone https://github.com/huggingface/lerobot.git

コードリポジトリのインストール ​

Shell
# cd lerobot-main
cd lerobot
pip install -e ".[feetech]"

図 3

図 4

インストール成功の確認 ​

Shell
lerobot-info

python

import lerobot
import torch
torch.cuda.is_available()
import scservo_sdk

図 5

図 6