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

Method act

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

Source from the content-addressed store, hash-verified

57 self.damping_factor = damping_factor
58
59 def act(
60 self, simulator: simple.Simulator, q: np.ndarray, v: np.ndarray, dt
61 ) -> np.ndarray:
62 # Note: simulator and model should coincide
63 tau_act = -self.damping_factor * v
64 return self.actuation @ tau_act
65
66
67def setPhysicsProperties(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected