Skip to content

Commit d81174c

Browse files
erez-tomcopybara-github
authored andcommitted
Fix typo in comment.
PiperOrigin-RevId: 604606631 Change-Id: I0238a9646cfb3ff4eff4b0c3445f68833402846d
1 parent e3d8a54 commit d81174c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/mujoco_mpc/demos/direct/direct_optimizer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def qpos_to_qvel_qacc(
8686
qpos: npt.ArrayLike,
8787
horizon: int,
8888
) -> Tuple[npt.ArrayLike, npt.ArrayLike]:
89-
"""Velocity and acceleration from mujoco_mpc.demos.configuration.
89+
"""Compute velocity and acceleration using configurations.
9090
9191
v1 = (q1 - q0) / h
9292
a1 = (v2 - v1) / h = (q2 - 2q1 + q0) / h^2
@@ -97,7 +97,8 @@ def qpos_to_qvel_qacc(
9797
horizon (int): number of timesteps
9898
9999
Returns:
100-
Tuple[npt.ArrayLike, npt.ArrayLike]: velocity and accelerations trajectories
100+
Tuple[npt.ArrayLike, npt.ArrayLike]: velocity and accelerations
101+
trajectories
101102
"""
102103
qvel = np.zeros((model.nv, horizon))
103104
qacc = np.zeros((model.nv, horizon))

0 commit comments

Comments
 (0)