From fae61cfa743f8255931a56f7a9e8ae6e542c9977 Mon Sep 17 00:00:00 2001 From: silencht Date: Wed, 13 Nov 2024 14:23:33 +0800 Subject: [PATCH] [fix] fix dex3-1 default value. --- unitree_sdk2py/idl/default.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/unitree_sdk2py/idl/default.py b/unitree_sdk2py/idl/default.py index f21210f..89d567d 100644 --- a/unitree_sdk2py/idl/default.py +++ b/unitree_sdk2py/idl/default.py @@ -226,13 +226,16 @@ def unitree_hg_msg_dds__LowState_(): def unitree_hg_msg_dds__PressSensorState_(): return HGPressSensorState_([0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], - [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]) + [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 0, 0) def unitree_hg_msg_dds__HandCmd_(): - return HGHandCmd_([]) + return HGHandCmd_([unitree_hg_msg_dds__MotorCmd_() for i in range(7)], [0, 0, 0, 0]) def unitree_hg_msg_dds__HandState_(): - return HGHandState([], unitree_hg_msg_dds__IMUState_(), [], 0.0, 0.0, [0, 0]) + return HGHandState_([unitree_hg_msg_dds__MotorState_() for i in range(7)], + [unitree_hg_msg_dds__PressSensorState_() for i in range(7)], + unitree_hg_msg_dds__IMUState_(), + 0.0, 0.0, 0.0, 0.0, [0, 0], [0, 0]) """