2025å¹´ã¯ããã身è¿ã«ãããããã¼ãã¦ã§ã¢ã¨AIãããè¿ãã«æãããããããã¯ãï¼ã¢ã¼ã ãã³ã³ãã¥ã¼ã¿ããã¥ã¼ããã¤ãâ¥ï¼ãå¤ãç»å ´ãã¾ããã
ãã®ä¸ã§ãSO-101ã¯å ¥éã«æé©ãªããããã ã¨æãã¾ãã
ä»åã¯ããã®SO-101ãã¤ãã£ããå¥ã®ãä½¿ãæ¹ãç´¹ä»ãã¾ãã
SO-101ã¨ã¯ï¼
SO-101ã¯ãHugging Faceã®ãLeRobotãããã¸ã§ã¯ããå ¬éããä½ã³ã¹ãã»ãªã¼ãã³ã½ã¼ã¹ã®ããããã¢ã¼ã ãããã§ãã
3Dããªã³ãé¨åã¨æ¯è¼çå ¥æã容æãªãµã¼ãã¢ã¼ã¿ã¼ã§çµã¿ç«ã¦ããããªã¼ãã¼ã¢ã¼ã ã¨ãã©ãã¯ã¼ã¢ã¼ã ã®2å°æ§æã§æ¨¡å£å¦ç¿ãå¼·åå¦ç¿ã®å®é¨ã«é©ãã¾ãã
夿®µã»å ¥ææ§ã¨ãã«ã¨ã¦ã身è¿ãªããã¤ã¹ã§ä½æã§ãããã¨ããåå¿è ã«ãæããããã¥ã¡ã³ããã¼ã¸ãç¨æããã¦ãããã¨ãããåå¦è ã«ã¨ã¦ãããããã§ãã
å æã®MakerFaire Tokyoã§ãªã¼ãã¼ãã©ãã¯ã¼ãã¢ã®ä½é¨ããã¾ããããä½é å»¶ã§åæã®åããåä½ãå®ç¾ãã¦ãã¦ãå²ã¨å£ãã«ãããã ã£ãã®ã«ã¯é©ãã¾ããã
SO-101ãROS 2ã§ï¼
SO-101ã¯Pythonãã¼ã¹ã®éçºç°å¢ã§ã®å®é¨ãæ³å®ãã¦ãã¾ãããå®ã¯ROS ã§åãããããã¥ã¬ã¼ã¿ã¼å ¥éæ©ã¨ãã¦æé©ãªã®ã§ã¯ãªããï¼ã¨èããããã«ãªãã¾ããã
ãã£ã¼ãããã¯ããããæãã説æãã¤ãã¦ããã¢ã¼ã ã4ä¸åã§è²·ãã¦ãã¾ãã
ç§ãçµæ§åããæ¨é²ãã¦ãããé«å°çåãROSè¬ç¿ãã«ããã大ããªèª²é¡ã®ä¸ã¤ãå¦ç¿ã«ãããè²»ç¨é¢ã解決ã§ããããããã¾ããã
MoveItã¨ã®ç¹ããã¿ã¾ã§
ããããã¯ããããããros2_controlã§ç¹ããã¿ãæçµçã«MoveIt2ã§åãããããã«ããã¨ããã«ã¤ãã¦èª¬æãã¾ãã
以ä¸ãå¿ è¦ãªç°å¢ã§ã
- SO-101ã®ãã©ãã¯ã¼å´ï¼ãã®ãæããããªæ¹ï¼
- Ubuntu22.04ãªã©ãROS-Humbleãããã¯Jazzyã®MoveIt2ã«é¢ããä¾åé¢ä¿ã解決ã§ããLinux PC
- Ar-Ray-code/feetech_ros2_driver
- Ar-Ray-code/lerobot_ws
ä»åã®å®è£ ã«ããã¦ã¯ãæ¢ã«ä½æããã¦ããç°å¢ãçµã¿åãããã ãã§ããªã宿ã«è¿ã¥ãããã¦ãã¾ããæè¬ï¼ð
1. ç°å¢æ§ç¯
ã¾ãã¯ãã¯ã¼ã¯ã¹ãã¼ã¹ã使ãã¾ãã
ROS 2ç°å¢ãäºåã«æ´ãã¦ãã ããã
mkdir -p ~/ros2_ws/src cd ~/ros2_ws/ git clone https://github.com/Ar-Ray-code/lerobot_ws.git -b sts_servo git clone https://github.com/Ar-Ray-code/feetech_ros2_driver.git -b auto_calib rosdep install --from-paths src --ignore-src -r -y
ãã«ããã¾ãã
export DISTRO=humble
source /opt/ros/${DISTRO}/setup.bash
colcon build
2. ãã£ãªãã¬ã¼ã·ã§ã³
ãããã¥ã¬ã¼ã¿ã¼ã¨PCãUSBã±ã¼ãã«ã§æ¥ç¶ãã¾ãããã¼ããã¦ã¼ã¶ã¼ããæä½ã§ããããã«
dialoutã°ã«ã¼ãã«æå±ãããå¿ è¦ãããã¾ãã
ãã£ãªãã¬ã¼ã·ã§ã³ãè¡ãã¾ãã
ãã£ãªãã¬ã¼ã·ã§ã³æ¹æ³ã¯ã以ä¸ã®ã³ãã³ãã§ãã£ãªãã¬ã¼ã·ã§ã³éå§ã³ãã³ããå®è¡å¾ãLeRobotããã¸ã§ã¯ãã®ãã¥ã¼ããªã¢ã«ã¨åæ§ãåé¢ç¯ã®ãµã¼ãã¢ã¼ã¿ã¼ä¸éå°ç¹ã§åºå®ãã¦Enterãä¸éã»ä¸éã¾ã§åãã¦Enterãæ¼ãã¾ãã
source ~/ros2_ws/install/setup.bash ros2 run feetech_ros2_driver feetech_calibration_node --ros-args -p usb_port:=/dev/ttyACM0 -p save_path:=./path_to_save_location.json
âç§ãå®éã«ãã£ãªãã¬ã¼ã·ã§ã³ãè¡ã£ãçµæã®jsonã¯ä»¥ä¸ã«ããã¾ããï¼æçµè»¸ãééã£ã¦ããã®ã§æ³¨æï¼
3. MoveIt2ã§æä½
ãã®ãã£ãªãã¬ã¼ã·ã§ã³çµæã使ã£ã¦MoveIt2ã§SO-101ãåããã¦ã¿ã¾ãããããããããã¿ã¼ããã«ã3ã¤å¿ è¦ã§ãã
ã¿ã¼ããã«1
SO-101ãros2_controlã使ã£ã¦ROS 2ã«ç¹ããã¿ã¾ãã
export DISTRO=humble
source /opt/ros/${DISTRO}/setup.bash
ros2 launch lerobot_controller so101_controller.launch.py is_sim:=False usb_port:=/dev/ttyACM0
ã¿ã¼ããã«2
MoveIt2ãèµ·åãã¾ãã
export DISTRO=humble
source /opt/ros/${DISTRO}/setup.bash
ros2 launch lerobot_controller so101_controller.launch.py is_sim:=False
ã¿ã¼ããã«3
Rviz2 ãèµ·åãã¾ãã
export DISTRO=humble
source /opt/ros/${DISTRO}/setup.bash
rviz
GUIã«MoveIt2ã®ãã©ã°ã¤ã³ã追å ãã¾ãã(moveit_ros_visualization -> MotionPlanning)

ãã¨ã¯ãç¢å°ãåãããç¯å²ã§ä½ç½®ãæå®ãã¦ãPlan and Executeããæ¼ãã ãï¼

ããã§èª°ã§ãMoveItæ²¼ã«å ¥ãã¾ããï¼ð«
ãã¾ãï¼RaspberryPi4ã«ç¹ãè¾¼ãã§ã¿ã
RaspberryPi OSã«ros2_controlã®ã¤ã³ã¿ãã§ã¼ã¹ãçããï¼ç°¡åã§ã¯ãªãï¼ã¦ãã¾ãã°ãLANã±ã¼ãã«ãæ¥ç¶ããã ãã§ROS 2ããç°¡åã«ããããã¢ã¼ã ã«ã¢ã¯ã»ã¹ã§ãã¾ããã
â¥ã¨ããããã§æ§ç¯ãã¦ã¿ã¾ããã

æ®å¿µãªããMoveItã¯ãã«ãã§ããªãã£ããããros2_controlã®ã¿ã§ããï¼ããããMoveItã¯ã©ãºãã¤ã§ã¯éãããâ¥ï¼
ãã«ãæ¹æ³ã¯rpi-bullseye-ros2ã®Bookwormã»Jazzyçããã¦ã³ãã¼ããã¦ãã¦ãso101.repos ã®å 容ãcloneãã¦ãã«ããã¾ãã
Xã«æç¨¿ããã¨ããã15ããã¯ãã¼ã¯ãããã¤ãã¦ããã®ã«ã¹ã¿ã¼ã¯1ã¤ããã¤ãã¦ãã¾ããã§ããâ¥(å¿ããªãã§ã)ððâ
mkdir -p ~/ros2_ws/src cd ~/ros2_ws/src curl -O https://raw.githubusercontent.com/Ar-Ray-code/rpi-bullseye-ros2/b84943f1d58fbefe196a02ec64a17bffbf389172/repos/so101.repos vcs import < so101.repos curl https://raw.githubusercontent.com/Ar-Ray-code/rpi-bullseye-ros2/b84943f1d58fbefe196a02ec64a17bffbf389172/install-list/so101.txt | xargs sudo apt install -y pip install --break-system-packages empy==3.3.4
ãã«ãã¯Raspberry Pi5ã§1æéããããããã¾ãã
DISTRO=jazzy
source /opt/ros/${DISTRO}/setup.bash
colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
serviceãã¡ã¤ã«ãä½ã£ã¦ããã¾ããããã®ãã¡ã¤ã³ã¹ãã¼ã©ã¼ãä½ã£ã¦ããã¾ã ð
ããã¾ã§ãSO-101ã®MoveItç¹ããã¿ã®æé ãç°¡åã«è§£èª¬ãã¾ããã
ããããæ¬¡åã®rosjpã§å¬åãããæ°ãããã®ã§ãç¶ãã¯ããã§ã話ã§ãããã¨æãã¾ãã
















