Kuavo Docs
Feature ExamplesKuavo 5 Examplespytree Examples

case_wheel_test_torso.py - Wheel-Arm Torso Control Test

Function Description

  • Demonstrates position and orientation control of the robot torso
  • Precisely controls the torso's position and orientation in 3D space

Key Features

  • 6DOF torso control (position + orientation)
  • Asynchronous execution mode
  • Control based on the BASE coordinate frame
  • Real-time motion state monitoring

Troubleshooting Runtime Issues

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

Configuration Parameters

TORSO_TARGET_POS = (0.2, 0.0, 0.5)      # 目标位置 (x, y, z 米)
TORSO_TARGET_EULER = (0.0, 10°, 90°)    # 目标姿态 (roll, pitch, yaw 度)

Startup Instructions

Start the Wheel-Arm 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

Note: The launch files above are located in src/humanoid-control/humanoid_controllers/launch/ and are used for the Gazebo and MuJoCo simulation environments respectively.

2. Start the Lower-Level Camera Coordinate Transform Robot Program

Only needed when tag recognition is required:

cd ~/kuavo-ros-opensource
sudo su
source devel/setup.bash
rosrun ar_control ar_control_node.py

Start the Upper-Level Program

TF Tree Forwarding Program (websocket server)

Start 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.

Start the PyTree Wheel-Arm Example

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

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_torso.py

Usage

python3 case_wheel_test_torso.py

Supported Environments

  • MuJoCo simulation environment
  • Gazebo simulation environment