MCPcopy Create free account
hub / github.com/MotrixLab/insactor / compute_pd_control

Function compute_pd_control

diffmimic/mimic_envs/pd_controller.py:8–12  ·  view source on GitHub ↗
(target_angles, current_angles, current_velocities, Kp, Kd)

Source from the content-addressed store, hash-verified

6
7
8def compute_pd_control(target_angles, current_angles, current_velocities, Kp, Kd):
9 error = target_angles - current_angles
10 error_derivative = -current_velocities
11 control_output = Kp * error + Kd * error_derivative
12 return control_output
13
14
15def apply_reduced(self, act: jp.ndarray, qp_p: QP, qp_c: QP) -> Tuple[P, P]:

Callers 1

apply_reducedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected