Roban2 Docs
Roban2 (ROS1) Legacy VersionsDevelopment Interfaces

Using the Simulation Environment

Deploying the Simulation Environment

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

  • Make sure you have cloned the code repository code repository

  • You can build the Docker image yourself using ./docker/Dockerfile according to the following sections, or download the pre-built image:

Container download link: https://kuavo.lejurobot.com/docker_images/kuavo_opensource_mpc_wbc_img_latest.tar.gz
  • Run the following command to import the container image:
docker load -i kuavo_opensource_mpc_wbc_img_latest.tar.gz
  • After running ./docker/run.sh in the <kuavo-ros-opensource> directory to enter the container, you will be in the mapped repository directory /root/kuavo_ws by default

  • 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 is required to configure ccache, otherwise the compiler may not be found
source installed/setup.zsh
catkin build humanoid_controllers # This compiles all dependencies

If it fails, run

rm -r devel/ build/

and compile again

Running

source devel/setup.bash
roslaunch humanoid_controllers load_kuavo_mujoco_sim.launch # Launch the controller, mpc, wbc, and the mujoco simulator

Simulation interface