欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 健康 > 美食 > (八)lerobot开源项目扩展so100的仿真操控(操作记录)

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

2025/4/19 4:09:39 来源:https://blog.csdn.net/ou1531037815/article/details/147079572  浏览:    关键词:(八)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_pos[i] = ± target_pos[i] + 0

target_pos[0] = -target_pos[0] - 0.838   # =0
target_pos[1] =  target_pos[1] - 1.81     # =-3.14
target_pos[2] =  target_pos[2] + 1.1      # =3.14
target_pos[3] =  target_pos[3] - 1.413   # =0.817
target_pos[4] =  target_pos[4] - 2.23     # =0
target_pos[5] =  target_pos[5] - 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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

热搜词