(八)lerobot开源项目扩展so100的仿真操控(操作记录)

一、项目地址

复制代码
git clone https://gitee.com/mrqiguan/lerobot_so100_sim.git

二、环境配置

复制代码
conda create -n lerobot_so100_sim --clone lerobot  # 在lerobot环境里安装下面的包即可
conda activate lerobot_so100_sim

pip install rl_zoo3
pip install git+https://github.com/perezjln/gym-lowcostrobot.git

三、仿真操控

复制代码
conda activate lerobot_so100_sim
sudo chmod 777 /dev/ttyACM0

1、在mujoco里控制so100模型

复制代码
python 1_so100_feetech_mujoco_control_sim.py

2、利用实机控制mujoco的so100模型

复制代码
python 2_so100_feetech_mujoco_control_realTosim.py

注意:根据实机,修改2_so100_feetech_mujoco_control_realTosim.py,改变机械臂当前运动状态,观察符号(转向)和偏移值(置0),修改参数直到和初始位置符合

initial post 0 -3.14 3.14 0.817 0 -0.157

Adjust the plus-minus sign and the offsets

target_posi = ± target_posi + 0

target_pos0 = -target_pos0 - 0.838 # =0

target_pos1 = target_pos1 - 1.81 # =-3.14

target_pos2 = target_pos2 + 1.1 # =3.14

target_pos3 = target_pos3 - 1.413 # =0.817

target_pos4 = target_pos4 - 2.23 # =0

target_pos5 = target_pos5 - 0.626 # =-0.157

四、参考链接

jpata/gym-so100 at integrationhttps://github.com/jpata/gym-so100/tree/integrationmichel-aractingi/Sim-LeRobotHackathon: This simulation environment that will be used for the LeRobot Hackathon 2024.https://github.com/michel-aractingi/Sim-LeRobotHackathon?tab=readme-ov-file

相关推荐
小爷毛毛_卓寿杰1 天前
我把一个 3B 模型塞进了 Xinference,然后它干掉了 DeepSeek V3.2
人工智能·开源·github
秦先生在广东1 天前
Agent 闭环才是真正的护城河:Anthropic “300 个 Agent“ 背后被忽视的秘密
人工智能
Bigfish_coding1 天前
前端转agent-【python】- 14 记忆系统优化:摘要与遗忘
人工智能
Bigfish_coding1 天前
前端转agent-【python】-13 Ollama Python流式输出教程:stream=True 与 async 实践
人工智能
字节跳动数据库1 天前
文章分享——相似函数处理方法
人工智能·后端·程序员
Bigfish_coding1 天前
前端转agent-【python】-12 LangChain 入门实战:RAG + LCEL 链式调用
人工智能
程序员cxuan1 天前
读懂 Claude Code 架构分析系列,第一篇,开始!
人工智能·后端·架构
饼干哥哥1 天前
扣子3.0测评:我让 Codex 和 Claude Code 住同一个桌面,结果它们打架了!
人工智能·开源·代码规范
Token炼金师1 天前
IP-Adapter:解耦交叉注意力如何让扩散模型看见图像
人工智能
Bigfish_coding1 天前
前端转agent-【python】-11 LangGraph 高级特性:时间旅行与人工介入
人工智能