Computes the velocities of the motion.
(self)
| 164 | return index_0, index_1, blend |
| 165 | |
| 166 | def _compute_velocities(self): |
| 167 | """Computes the velocities of the motion.""" |
| 168 | self.motion_base_lin_vels = torch.gradient(self.motion_base_poss, spacing=self.output_dt, dim=0)[0] |
| 169 | self.motion_dof_vels = torch.gradient(self.motion_dof_poss, spacing=self.output_dt, dim=0)[0] |
| 170 | self.motion_base_ang_vels = self._so3_derivative(self.motion_base_rots, self.output_dt) |
| 171 | |
| 172 | def _so3_derivative(self, rotations: torch.Tensor, dt: float) -> torch.Tensor: |
| 173 | """Computes the derivative of a sequence of SO3 rotations. |
no test coverage detected