Browse Source

Fix compile error in waist debug logging

Use GetDataWithTime().data instead of GetData().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
main
Joe DiPrima 4 weeks ago
parent
commit
bf0f1136bd
  1. 4
      gear_sonic_deploy/src/g1/g1_deploy_onnx_ref/src/g1_deploy_onnx_ref.cpp

4
gear_sonic_deploy/src/g1/g1_deploy_onnx_ref/src/g1_deploy_onnx_ref.cpp

@ -2849,8 +2849,8 @@ class G1Deploy {
static int waist_log_cnt = 0;
if (++waist_log_cnt >= 100) {
waist_log_cnt = 0;
auto ls = low_state_buffer_.GetData();
float hw_q = ls ? ls->motor_state()[14].q() : -999.0f;
const auto ls_dbg = low_state_buffer_.GetDataWithTime().data;
float hw_q = ls_dbg ? ls_dbg->motor_state()[14].q() : -999.0f;
std::cout << "[WAIST_DBG] cmd_q=" << motor_command_tmp.q_target.at(14)
<< " hw_q=" << hw_q
<< " kp=" << motor_command_tmp.kp.at(14)

Loading…
Cancel
Save