MCPcopy Create free account
hub / github.com/TeleHuman/TextOp / pd_control

Function pd_control

TextOpTracker/scripts/deploy_mujoco.py:686–688  ·  view source on GitHub ↗

Calculates torques from position commands

(target_q, q, kp, target_dq, dq, kd)

Source from the content-addressed store, hash-verified

684
685
686def pd_control(target_q, q, kp, target_dq, dq, kd):
687 """Calculates torques from position commands"""
688 return (target_q - q) * kp + (target_dq - dq) * kd
689
690
691if __name__ == "__main__":

Callers 1

deploy_mujoco.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected