Skip to content

Commit 8358f6d

Browse files
yuvaltassacopybara-github
authored andcommitted
Don't use actuator_moment in lqr_solver.py
PiperOrigin-RevId: 692141608 Change-Id: I852624640304be8211d07a52dcf7f3aa7c92a29f
1 parent 8eb70f8 commit 8358f6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dm_control/suite/lqr_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def solve(env):
6060
(dt * j + np.hstack((np.zeros((n, n)), np.eye(n))), j))
6161

6262
# Control transition matrix b.
63-
b = env.physics.data.actuator_moment.T
63+
b = np.vstack((np.eye(m), np.zeros((n - m, m))))
6464
bc = np.linalg.solve(mass, b)
6565
b = dt * np.vstack((dt * bc, bc))
6666

0 commit comments

Comments
 (0)