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

Method __init__

sandbox/simulation_utils.py:41–44  ·  view source on GitHub ↗
(self, model: pin.Model, damping_factor: float)

Source from the content-addressed store, hash-verified

39
40class FreeFloatingRobotDampingPolicy(Policy):
41 def __init__(self, model: pin.Model, damping_factor: float):
42 self.actuation = np.zeros((model.nv, model.nv - 6))
43 self.actuation[6:, :] = np.eye(model.nv - 6)
44 self.damping_factor = damping_factor
45
46 def act(
47 self, simulator: simple.Simulator, q: np.ndarray, v: np.ndarray, dt

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected