MCPcopy Create free account
hub / github.com/Simple-Robotics/Simple / act

Method act

sandbox/simulation_utils.py:46–51  ·  view source on GitHub ↗
(
        self, simulator: simple.Simulator, q: np.ndarray, v: np.ndarray, dt
    )

Source from the content-addressed store, hash-verified

44 self.damping_factor = damping_factor
45
46 def act(
47 self, simulator: simple.Simulator, q: np.ndarray, v: np.ndarray, dt
48 ) -> np.ndarray:
49 # Note: simulator and model should coincide
50 tau_act = -self.damping_factor * v[6:]
51 return self.actuation @ tau_act
52
53
54class RobotArmDampingPolicy(Policy):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected