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

Method test_linear

tests/python/test_dynamics.py:86–93  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84 ldd = dynamics.LinearDiscreteDynamics(A, B, c)
85
86 def test_linear(self):
87 space = self.ldd.space
88
89 x0 = space.neutral()
90 u0 = np.random.randn(self.nu)
91 lddata = self.ldd.createData()
92 print(lddata)
93 self.ldd.forward(x0, u0, lddata)
94
95 def test_direct_sum(self):
96 direct_sum_test_impl(self.ldd, self.ldd)

Callers

nothing calls this directly

Calls 3

neutralMethod · 0.80
createDataMethod · 0.45
forwardMethod · 0.45

Tested by

no test coverage detected