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

Method forward

tests/python/test_continuous_dynamics.py:22–28  ·  view source on GitHub ↗
(self, x, u, data: dynamics.ODEData)

Source from the content-addressed store, hash-verified

20 super().__init__(manifolds.R3() * manifolds.SO3(), nu)
21
22 def forward(self, x, u, data: dynamics.ODEData):
23 assert isinstance(data, MyODEData)
24 _, R_quat = x[:3], x[3:] # R is quat
25 R_quat = Quaternion(R_quat)
26 R = R_quat.toRotationMatrix()
27 data.xdot[:3] = R @ data.v0
28 data.xdot[3:] = 0
29
30 def dForward(self, x, u, data: dynamics.ODEData):
31 Jp = data.Jx[:, :3]

Callers 15

test_multibody_freeFunction · 0.45
test_centroidalFunction · 0.45
test_centroidal_diffFunction · 0.45
test_kinodynamicsFunction · 0.45
test_kinodynamics_diffFunction · 0.45
test_wipFunction · 0.45
test_wip_diffFunction · 0.45
exp_dyn_fd_checkFunction · 0.45
direct_sum_test_implFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected