Feature ExamplesKuavo 5 Examplespytree Examples
case_wheel_test_arm.py - Wheel-Arm Arm Control Test
Function Description
- Demonstrates precise control of the robot arm
- Generates arm motion trajectories based on AprilTag positions
- Supports multiple control modes: joint control and end-effector control
Key Features
- Sets a fake AprilTag position for testing (ODOM coordinate frame)
- Automatically generates grasp keypoints for the left and right arms
- Supports three control modes:
- Joint control mode (joint): joint trajectory control, directly controlling each joint angle
- World-frame end-effector control (eef_world): end-effector trajectory control based on the world coordinate frame
- Base-frame end-effector control (eef_base): end-effector trajectory control based on the robot base coordinate frame
- Executes through a behavior tree sequence: set tag → compute trajectory → execute motion
- Real-time status feedback and visualization
Troubleshooting Runtime Issues
During operation, you may encounter issues related to SDK installation and msgs. The detailed solutions are as follows: Troubleshooting
Configuration Parameters
TAG_ID = config.pick.tag_id # AprilTag ID
FAKE_TAG_POS = (0.50, 0.0, 0.75) # 虚假标签位置 (x, y, z 米)
FAKE_TAG_EULER = (90, 0, -90) # 虚假标签姿态 (roll, pitch, yaw 度)Launch Instructions
Launching the Wheel-Arm Low-Level Controller
Launch the Low-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.launchLaunching the Upper-Level Program
TF Tree Republisher (websocket server)
Start it in a new terminal:
cd ~/kuavo_ros_application
source devel/setup.bash
roslaunch kuavo_tf2_web_republisher start_websocket_server.launchIf this program is not started, when the Python SDK/policy retrieves TF transforms via /republish_tfs, it will report an error similar to the kuavo_tf2_web_republisher node not running.
Launch the PyTree Wheel-Arm 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_arm.pyUsage
python3 case_wheel_test_arm.pySupported Environments
- MuJoCo simulation environment
- Gazebo simulation environment
- Real robot