Kuavo 5-W Wheel-Arm Combination Examples
case_wheel_test_move_and_arm.py: wheeled-arm version combined movement + arm examplecase_wheel_pick_and_place.py: wheeled-arm version of the complete "search for tag + move box + place box" flow (argparse parameters such as walk-mode are optional)case_wheel_pick_and_place_by_reach_topic.py: wheeled-arm version of the complete flow (uses the topic/lb_cmd_pose_reach_timeto dynamically wait for/synchronize motions)
Launch Instructions
Before running PyTree on the wheeled-arm robot, you usually need to start two types of programs first:
Troubleshooting Runtime Issues
During operation, you may encounter SDK installation and msgs related issues. The detailed solutions are as follows: Troubleshooting
Preparation
In Gazebo simulation, if you use apriltag_ros for continuous detection, you usually need to first change the system's tag configuration to match the actual tag size in the simulation (only needs to be done once):
sudo vim /opt/ros/noetic/share/apriltag_ros/config/tags.yamlFor a reference configuration, see the "Preparation" section of src/kuavo_humanoid_sdk/docs/markdown/pages/kuavo_strategy_v2.md.
Start the Wheeled-Arm Lower-Level Programs
1. 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.launchNote: The above two launch files are located in src/humanoid-control/humanoid_controllers/launch/ and are used for the two different simulation environments, Gazebo and MuJoCo, respectively.
2. Start the lower-level camera coordinate frame transformation program
Only needed when tag recognition is required:
cd ~/kuavo-ros-opensource
source devel/setup.bash
rosrun ar_control ar_control_node.pyStart the Upper-Level Programs
1. TF tree republisher (websocket server)
Start 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/strategy obtains TF transforms via /republish_tfs, it will report an error indicating that the kuavo_tf2_web_republisher node is not running.
2. Start the camera program
Only needed when tag recognition is required; start in a new terminal:
cd ~/kuavo_ros_application
source devel/setup.bash
roslaunch dynamic_biped apriltag.launchLaunch the PyTree Wheeled-Arm Examples
Start in another terminal (it is recommended to first cd to the repository root and source the environment):
- Combined movement + arm example:
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_and_arm.py- Complete flow (argparse parameters such as walk-mode are optional):
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_pick_and_place.py- Complete flow (uses the topic
/lb_cmd_pose_reach_timeto dynamically wait for/synchronize motions):
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_pick_and_place_by_reach_topic.py