Kuavo Docs
Feature ExamplesKuavo 5 Examplespytree Examples

case_wheel_test_move.py - Wheel-Legged Robot Movement Control Test

Function Description

  • Demonstrates the robot's navigation and movement capabilities
  • Calculates the target position based on the detected AprilTag
  • Supports multiple movement control modes

Key Features

  • Three control modes: cmd_pos_world, cmd_pos, cmd_vel
  • Coordinate frame transformation (tag frame → world frame)
  • Can use real or simulated AprilTag data
  • Automatic path planning and execution

Troubleshooting Runtime Issues

During operation you may encounter issues related to SDK installation and msgs. Detailed solutions are as follows: Troubleshooting

Launch Instructions

Before running PyTree on the wheel-legged robot, you usually need to start two types of programs first:

Preparation

If apriltag_ros continuous detection is used in the Gazebo simulation, you usually need to change the system's tag configuration to match the actual tag size in the simulation first (only needs to be done once):

sudo vim /opt/ros/noetic/share/apriltag_ros/config/tags.yaml

For a reference configuration, see the "Preparation" section of src/kuavo_humanoid_sdk/docs/markdown/pages/kuavo_strategy_v2.md.

Start the Wheel-Legged Lower-Level Controller Program

Start the Lower-Level Main Program

  • Gazebo simulation: use load_kuavo_gazebo_sim_wheel.launch
cd ~/kuavo-ros-opensource
sudo su
source devel/setup.bash
roslaunch humanoid_controllers load_kuavo_gazebo_sim_wheel.launch
  • MuJoCo simulation: use load_kuavo_mujoco_sim_wheel.launch
cd ~/kuavo-ros-opensource
sudo su
source devel/setup.bash
roslaunch humanoid_controllers load_kuavo_mujoco_sim_wheel.launch
  • Real robot: use load_kuavo_real_wheel.launch
cd ~/kuavo-ros-opensource
sudo su
source devel/setup.bash
roslaunch humanoid_controllers load_kuavo_real_wheel.launch

Start the Upper-Level Program

TF Tree Forwarding Program (websocket server)

Start it in a new terminal:

cd ~/kuavo_ros_application
source devel/setup.bash
roslaunch kuavo_tf2_web_republisher start_websocket_server.launch

If this program is not started, when the Python SDK/strategy obtains TF transforms via /republish_tfs, it will report an error similar to the kuavo_tf2_web_republisher node not running.

Launch the PyTree Wheel-Legged Example

Start it in another terminal (it is recommended to first cd to the repository root and source the environment):

cd ~/kuavo-ros-opensource
sudo su
source devel/setup.bash
cd src/kuavo_humanoid_sdk/kuavo_humanoid_sdk/kuavo_strategy_pytree/pick_place_box
python3 case_wheel_test_move.py

Usage

python3 case_wheel_test_move.py  # Use the default cmd_pos_world mode

# Specify the control mode
python3 case_wheel_test_move.py --control-mode cmd_pos_world
python3 case_wheel_test_move.py --control-mode cmd_vel

Supported Environments

  • MuJoCo simulation environment
  • Gazebo simulation environment
  • Real robot