Skip to content
Snippets Groups Projects
Commit 520d7a66 authored by Pierre-Alexandre Leziart's avatar Pierre-Alexandre Leziart
Browse files

Do not sent reference height in goals for WBC

parent 38ee7769
No related branches found
No related tags found
No related merge requests found
Pipeline #16117 failed
...@@ -333,7 +333,7 @@ class Controller: ...@@ -333,7 +333,7 @@ class Controller:
# Desired position, orientation and velocities of the base # Desired position, orientation and velocities of the base
if not self.gait.getIsStatic(): if not self.gait.getIsStatic():
self.xgoals[[0, 1, 5], 0] = np.zeros((3,)) self.xgoals[[0, 1, 5], 0] = np.zeros((3,))
self.xgoals[2:5, 0] = [self.h_ref, 0.0, 0.0] # Height (in horizontal frame!) self.xgoals[2:5, 0] = [0.0, 0.0, 0.0] # Height (in horizontal frame!)
else: else:
self.xgoals[2:5, 0] += self.vref_filt_mpc[2:5, 0] * self.dt_wbc self.xgoals[2:5, 0] += self.vref_filt_mpc[2:5, 0] * self.dt_wbc
...@@ -406,7 +406,7 @@ class Controller: ...@@ -406,7 +406,7 @@ class Controller:
# Display desired feet positions in WBC as green spheres # Display desired feet positions in WBC as green spheres
oTh_pyb = device.dummyPos.reshape((-1, 1)) oTh_pyb = device.dummyPos.reshape((-1, 1))
# print("h: ", oTh_pyb[2, 0], " ", self.h_ref) # print("h: ", oTh_pyb[2, 0], " ", self.h_ref)
oTh_pyb[2, 0] += 0.02 oTh_pyb[2, 0] += 0.0
oRh_pyb = pin.rpy.rpyToMatrix(0.0, 0.0, device.imu.attitude_euler[2]) oRh_pyb = pin.rpy.rpyToMatrix(0.0, 0.0, device.imu.attitude_euler[2])
for i in range(4): for i in range(4):
pos = oRh_pyb @ self.feet_p_cmd[:, i:(i+1)] + oTh_pyb pos = oRh_pyb @ self.feet_p_cmd[:, i:(i+1)] + oTh_pyb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment