File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
python/mujoco_mpc/demos/direct Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 ))
You can’t perform that action at this time.
0 commit comments