Kuavo Docs
Development Interfaces

Simulation Environment Usage

Deploying the Simulation Environment

If you do not have a robot runtime environment available, you can use the Docker environment for compilation and simulation.

  • Make sure the lower-level controller code repository has been cloned lower-level controller code repository

  • You can build the Docker image yourself using ./docker/Dockerfile as described in the following sections, or download a pre-built image:

容器下载链接:https://kuavo.lejurobot.com/kuavo_research_editiion/docker_images/kuavo_opensource_mpc_wbc_img_v1.3.0.tar.gz
  • Run the following command to import the container image:
docker load -i kuavo_opensource_mpc_wbc_img_v1.3.0.tar.gz
  • Run ./docker/run.sh in the /home/lab/kuavo-ros-opensource directory to enter the container. By default, you will be in the repository's mapped directory /root/kuavo_ws

  • Run the following commands to start compiling:

rm -r devel/ build/
catkin config -DCMAKE_ASM_COMPILER=/usr/bin/as -DCMAKE_BUILD_TYPE=Release # Important! 
# -DCMAKE_ASM_COMPILER=/usr/bin/as 为配置了ccache必要操作,否则可能出现找不到编译器的情况
source installed/setup.zsh
catkin build humanoid_controllers #会编译所有依赖项

If it fails, run

rm -r devel/ build/

and then compile again.

Running

source devel/setup.zsh
roslaunch humanoid_controllers load_kuavo_mujoco_sim.launch # 启动控制器、mpc、wbc、mujoco仿真器

Simulation interface

Simulation Run - Enable Upper Body Only (with Lower Limbs)

source devel/setup.zsh
roslaunch humanoid_controllers load_kuavo_mujoco_sim_half_up_body.launch

Simulation interface - upper body