Skip to content

Andy-xiong6/pointfoot-mujoco-sim

 
 

Repository files navigation

pointfoot-mujoco-sim

1. 运行仿真

  • 打开一个 Bash 终端。

  • 下载 MuJoCo 仿真器代码:

    git clone --recurse https://github.com/limxdynamics/pointfoot-mujoco-sim.git
    
  • 安装运动控制开发库:

    • Linux x86_64 环境

      pip install pointfoot-mujoco-sim/pointfoot-sdk-lowlevel/python3/amd64/limxsdk-*-py3-none-any.whl
      
    • Linux aarch64 环境

      pip install pointfoot-mujoco-sim/pointfoot-sdk-lowlevel/python3/aarch64/limxsdk-*-py3-none-any.whl
      
  • 设置机器人类型

    • 通过 Shell 命令 tree -L 1 pointfoot-mujoco-sim/robot-description/pointfoot 列出可用的机器人类型:

      limx@limx:~$ tree -L 1 pointfoot-mujoco-sim/robot-description/pointfoot
      pointfoot-mujoco-sim/robot-description/pointfoot
      ├── PF_P441A
      ├── PF_P441B
      ├── PF_P441C
      └── PF_P441C2
      
      
    • PF_P441C(请根据实际机器人类型进行替换)为例,设置机器人型号类型:

      echo 'export ROBOT_TYPE=PF_P441C' >> ~/.bashrc && source ~/.bashrc
      
  • 运行 MuJoCo 仿真器:

    python pointfoot-mujoco-sim/simulator.py
    

2. 编译运行控制

  • 打开一个 Bash 终端。

  • 安装编译所需环境

    sudo apt update
    sudo apt install -y cmake build-essential
    
  • 编译控制器SDK示例:

    cd pointfoot-mujoco-sim/pointfoot-sdk-lowlevel
    mkdir -p build
    cd build
    cmake ..
    make
    
  • 运行控制器SDK示例:

    ./examples/pf_groupJoints_move
    

3. 仿真展示

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%