ShuoYangRobotics / Cerberus

Visual-Inertial-Leg Odometry For Legged Robots
GNU General Public License v3.0
272 stars 42 forks source link

Float value in foot force #2

Closed cyoahs closed 1 year ago

cyoahs commented 1 year ago

Hello.

From the bags I suppose that the effort in /hardware_a1/joint_foot is the foot force from LowState, but those values are of int16 type in unitree sdk and often postive. I found negative float values in the bag. Is there any conversions not included in this repo?

ShuoYangRobotics commented 1 year ago

I just converted int16 to float directly. They can be negative because when the foot restores it’s shape the pressure is smaller than nominal value.

cyoahs commented 1 year ago

I just converted int16 to float directly. They can be negative because when the foot restores it’s shape the pressure is smaller than nominal value.

Got it! ^-^