Troubleshooting
Hardware
I. EC Master Fails to Run
-
Slave not found:
- Check the XML file: Make sure the correct XML configuration file is used; this file defines the topology of the EtherCAT network.
- Check the EtherCAT cable: Check whether the cable is connected firmly and whether it is disconnected or has poor contact. You can try replacing the cable. If the connection still shows as disconnected after replacement, the drive socket may be damaged and the drive needs to be replaced.
-
DCM out (timeout):
- Program hang: Check whether the program contains an infinite loop or blocking that causes the process to hang.
- CPU core isolation: Confirm that CPU core isolation has been performed to prevent other processes from interfering with the real-time control program.
- Program version: Confirm that the latest version of the program is used, since older versions may contain known bugs.
-
Communication frame loss:
- Cable connection: Check that the cable connection is firm and reliable.
- Cable quality: Use high-quality EtherCAT cables to avoid communication problems caused by inferior cables.
- Cold solder joints on the drive connector: Check whether the drive connector has cold solder joints.
- Drive connector: Check whether the drive connector has mechanical damage or poor contact.
Software
I. Docker Build Errors
- catkin build humanoid_humanollers reports an error related to motion_capture_ik:

Build this package separately with catkin build motion_capture_ik
- An error about a missing .so file is reported

Run echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/drake/lib' >> ~/.zshrc && source ~/.zshrc (if you are using a bash environment, modify bashrc instead)
- catkin build humanoid_humanollers reports an error related to gazebo_sim:

sudo apt-get update
sudo apt-get install ros-noetic-gazebo-dev
sudo apt-get install ros-noetic-gazebo-ros-pkgs ros-noetic-gazebo-ros-control
catkin build realsense_ros_gazebo
catkin build humanoid_controllers- catking config workspace is incorrect

Rename /home/lab/.catkin_tools to .catkin_tools.bak
- A humanoid_interface dependency error occurs during compilation

#运行下面命令
source installed/setup.zsh
catkin build humanoid_controllers- When the desktop software tool cannot connect to the robot, first try turning off the computer's firewall.

The situation is as shown above: after following the documentation, it keeps loading for a long time and cannot connect to the robot.
II. Host Computer
- load_robot_head.launch reports an error:

Pull the latest commit of the master branch
#确保目前处于master分支
git fetch
git pull
source /opt/ros/noetic/setup.bash
catkin build apriltag_ros
catkin build - When the host computer is an AGX, compiling the kuavo-ros-application repository reports an error about vision_msgs:

sudo apt install ros-noetic-vision-msgs
catkin build apriltag_ros
catkin build - When rviz is opened on the host computer, there is no lidar data:
- Enter
ifconfigin the terminal to check whether the computer is connected to a Wi-Fi network in the192.168.1.xxsubnet.

- If it is, disconnect from the .1 subnet Wi-Fi and connect to a Wi-Fi network on a subnet other than .1.
III. Lower-Level Controller
- Troubleshooting the robot falling forward during simulator startup
-
Problem description: When running the MuJoCo / Isaac / Gazebo simulators, the robot may fall forward. This problem may be related to the number of CPU threads.
-
Solution steps:
-
Check the number of CPU threads in the system: Enter
lscpuin the terminal. If the CPU(S) value in the output is less than 18, the system does not have enough CPU threads, which may result in insufficient computing resources being allocated to the simulation tasks when the simulator runs, thereby affecting the stability of robot control and causing the robot to fall. -
Modify the corresponding simulator source code: For example, in the file
/home/lab/kuavo-ros-opensourcesrc/humanoid-control/humanoid_controllers/launch/load_kuavo_mujoco_sim.launch: Search for 18 in the file and find the following configuration item:launch-prefix="taskset -c 12"Simply delete the part boxed in the image.
Wheeled Arm
I. Software
- When the robot is started with roslaunch humanoid_controllers load_kuavo_real.launch joystick_type:=h12, the arm shakes accompanied by abnormal noise:
Solution: Open the file task.info under /kuavo-ros-opensource/src/humanoid-control/humanoid_controllers/config/kuavo_v45/mpc/,
change the parameter value in
to 1, restart the robot, compile again, and then start it with the command
roslaunch humanoid_controllers load_kuavo_real.launch only_half_up_body:=true joystick_type:=h12
The arm shaking problem disappears, there are no other errors, and the arm trajectory planning example can be invoked.