Skip to content

Commit

Permalink
Internal change.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 604590579
Change-Id: If05d1c7eb60fe65b0a72d02cdb2da54591f8b6f0
  • Loading branch information
nimrod-gileadi authored and copybara-github committed Feb 6, 2024
1 parent dca5455 commit 3046acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mujoco_mpc/demos/direct/direct_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def qpos_to_qvel_qacc(
qpos: npt.ArrayLike,
horizon: int,
) -> Tuple[npt.ArrayLike, npt.ArrayLike]:
"""Velocity and acceleration from configuration.
"""Velocity and acceleration from mujoco_mpc.demos.configuration.
v1 = (q1 - q0) / h
a1 = (v2 - v1) / h = (q2 - 2q1 + q0) / h^2
Expand Down Expand Up @@ -131,7 +131,7 @@ def diff_qpos_to_qvel_qacc(
) -> Tuple[
npt.ArrayLike, npt.ArrayLike, npt.ArrayLike, npt.ArrayLike, npt.ArrayLike
]:
"""Velocity and acceleration from configurations (derivatives wrt configurations.
"""Velocity and acceleration from mujoco_mpc.demos.configurations (derivatives wrt configurations.
Args:
model (mujoco.MjModel): MuJoCo model
Expand Down

0 comments on commit 3046acd

Please sign in to comment.