本项目使用 PyO3 为 MotrixSim 的 Rust SDK 做 Python Binding。开始前,请先仔细阅读 PyO3 文档
以下所有命令在 motrixsim-py 目录下执行
根据 pyproject.toml 中声明的 requires-python 属性安装 Python 解释器:
PDM 提供了两种安装策略,任选一种即可:
-
安装符合要求的最小版本
pdm use --auto-install-min
-
安装符合要求的最大版本
pdm use --auto-install-max
pdm sync -G:all -v
在legged_gym文件夹下执行下面命令:
pdm run scripts/train.py
pdm run scripts/play.py