Kuavo Docs
Common Tools

Logging Tools

Log Description

The logs we provide come in two file types, .log and .bag, both stored on the lower-level controller. Both files are named by system time, for example 2025-04-14-13-59-42_6.bag. Log files are located at /home/lab/.ros/stdout/年-月-日_时-分-秒/, and bag files are located at /home/lab/.ros/. When troubleshooting an issue, you need to check the corresponding file.

Download Logs

  • Install the remote connection extension in VSCode

    Install the remote connection extension in VSCode

  • Connect to the robot computer remotely via ssh

    ssh remote connection

  • Click to configure the ssh config

    Configure sshConfig

  • Click connect to start connecting to the robot computer

    Click connect to host via ssh

  • Enter the password to access the remote connection

    Enter password to access remote

  • Locate the ~/.ros/stdout/ directory and right-click the file to download it

    Download log in VSCode

  • Locate the ~/.ros directory and right-click the file to download it

    Download bag file in VSCode

    • Some bag files have an .active suffix. This is usually caused by the file not being closed properly, which means the index is problematic; use rosbag reindex XXXXX.bag to repair it. If the file is corrupted, you may need to recover it or use further repair tools.

Log Data Description

When investigating issues, you generally focus on the following groups of data.

/monitor/system_info/cpu_frequency    #cpu内核运行频率
/monitor/system_info/cpu_temperature  #cpu内核温度
/monitor/system_info/cpu_usage        #cpu利用率占比

/motor_cmd/motor_cur  #算法下发的电机目标电流
/motor_cmd/motor_pos  #算法下发的电机目标位置
/motor_cmd/motor_vel  #算法下发的电机目标速度

/sensor_data/joint_data/error_vec         #驱动器报错信息
/sensor_data/joint_data/joint_cmd_torque  #驱动器收到的电流指令

/sensor_data_motor/motor_cur  #电机反馈的真实电流
/sensor_data_motor/motor_pos  #电机反馈的真实位置
/sensor_data_motor/motor_vel  #电机反馈的真实速度

/state_estimate/imu_data_flitered/angularVel   #经过滤波后的质心欧拉角数据
/state_estimate/imu_data_flitered/linearAccel  #经过滤波后的质心线加速度
  1. Motor numbering definition

Robot motor numbering definition

  1. Control-related data /humanoid_controller/*

    • Robot center of mass section /humanoid_controller/com

      • /com/r: center of mass position, in order the translational positions along the x, y, and z axes, unit: m

      • /com/r_des: desired center of mass position, same as above; can be compared with the center of mass position to evaluate tracking performance

      • /com/rd: center of mass velocity, unit: m/s

      • /com/rd_des: desired center of mass velocity

  2. Monitoring data /monitor/*

    • Monitor the wbc and mpc control frequency /monitor/frequency/*

      • /frequency/mpc: mpc control frequency, unit: Hz

      • /frequency/wbc: wbc control frequency, unit: Hz

    • Monitor the wbc and mpc computation time /monitor/time_cost/*

      • /time_cost/mpc: time taken by each mpc computation, unit: ms

      • /time_cost/wbc: time taken by each wbc computation, unit: ms

    • Monitor CPU and memory /monitor/system_info/*

      • /system_info/cpu_frequency: operating frequency of each CPU core on the motion control computer, unit: MHz

      • /system_info/cpu_temperature: temperature of each CPU core on the motion control computer, unit: ℃

      • /system_info/cpu_usage: usage percentage of each CPU core on the motion control computer, unit: %

      • /system_info/memory: memory usage of the motion control computer, in order: usage percentage %, used memory, total memory, available memory, unit: GB

  3. Raw IMU sensor data /sensor_data_raw/imu_data/*

    • imu_data/acc: accelerometer data reported by the IMU

    • imu_data/free_acc: IMU accelerometer data with the gravity term removed

    • imu_data/gyro: angular velocity (gyroscope) data reported by the IMU

    • imu_data/quat: quaternion data reported by the IMU

  4. Commands sent to and feedback data from the physical motors

  • Data sent to the motor driver layer after processing and conversion /motor_cmd/*

    • motor_cmd/motor_cur: torque sent to the motor driver layer after conversion, filtering, and other steps, unit: N*m

    • motor_cmd/motor_pos: angle sent to the motor driver layer after conversion, filtering, and other steps, unit: rad

    • motor_cmd/motor_vel: angular velocity sent to the motor driver layer after conversion, filtering, and other steps, unit: rad/sec

  • Motor sensor data fed back from the motor driver layer /sensor_data_motor/*

    • sensor_data_motor/motor_cur: motor current value fed back by the motor driver layer, unit: ampere, A

    • sensor_data_motor/motor_pos: motor angle value fed back by the motor driver layer, unit: rad

    • sensor_data_motor/motor_vel: motor angular velocity value fed back by the motor driver layer, unit: rad/sec

bag Visualization

  • There are multiple ways to visualize ROS bags, such as the ROS plugin PlotJuggler or Foxglove, an open-source robot development tool. They are mainly used for visualizing and debugging robot data.

PlotJuggler

  • Software download link https://www.realvnc.com/en/connect/download/viewer/

  • Connect to the robot computer's desktop using the robot's IP

    VNC connection interface

    Entering the computer desktop via VNC

  • Launch the plotjuggler software

    Click inside the VNC window to enter it, press Ctrl+Alt+T to open a terminal, enter the following command, and press Enter to launch the software

    rosrun plotjuggler plotjuggler
  • plotjuggler interface

    PlotJuggler interface

Foxglove

  • We provide a configuration template, and users can also customize it according to their own needs. Template path: /home/lab/kuavo-ros-opensource/docs/6常用工具/leju-layout.json
Usage Steps
  1. Import the bag file

    1

  2. Import the json configuration file

    2

  3. Overview of the visualization interface

    3

Official Documentation