Fix postion -> position in HighCmd.msg

This commit is contained in:
Koki Shinjo 2022-04-09 18:21:50 +09:00
parent 3c0fe3c97d
commit 312eaaa626
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ uint8 gaitType # 0.idle 1.trot 2.trot running 3.climb stair
uint8 speedLevel # 0. default low speed. 1. medium speed 2. high speed. during walking, only respond MODE 3
float32 footRaiseHeight # (unit: m, default: 0.08m), foot up height while walking
float32 bodyHeight # (unit: m, default: 0.28m),
float32[2] postion # (unit: m), desired position in inertial frame
float32[2] position # (unit: m), desired position in inertial frame
float32[3] euler # (unit: rad), roll pitch yaw in stand mode
float32[2] velocity # (unit: m/s), forwardSpeed, sideSpeed in body frame
float32 yawSpeed # (unit: rad/s), rotateSpeed in body frame

View File

@ -208,7 +208,7 @@ UNITREE_LEGGED_SDK::HighCmd ToLcm(unitree_legged_msgs::HighCmd& ros, UNITREE_LEG
lcm.crc = ros.crc;
for(int i(0); i<2; ++i){
lcm.postion[i] = ros.postion[i];
lcm.position[i] = ros.position[i];
lcm.velocity[i] = ros.velocity[i];
}