9 namespace system_test {
11 template <
int StatesAtCompileTime,
int InputsAtCompileTime,
12 int OutputsAtCompileTime>
13 std::shared_ptr<AffineSystem<EigenVector<StatesAtCompileTime>::template type,
17 size_t num_outputs,
bool direct_feedthrough =
true) {
24 Eigen::Matrix<double, StatesAtCompileTime, StatesAtCompileTime>::Random(
25 num_states, num_states)
28 Eigen::Matrix<double, StatesAtCompileTime, InputsAtCompileTime>::Random(
29 num_states, num_inputs)
32 Eigen::Matrix<double, OutputsAtCompileTime, StatesAtCompileTime>::Random(
33 num_outputs, num_states)
37 Eigen::Matrix<double, OutputsAtCompileTime, InputsAtCompileTime>::Random(
38 num_outputs, num_inputs)
40 Eigen::Matrix<double, OutputsAtCompileTime, InputsAtCompileTime>::Zero(
41 num_outputs, num_inputs)
44 Eigen::Matrix<double, StatesAtCompileTime, 1>::Random(num_states, 1)
47 Eigen::Matrix<double, OutputsAtCompileTime, 1>::Random(num_outputs, 1)
49 return std::allocate_shared<ReturnType>(
50 Eigen::aligned_allocator<ReturnType>(),
A,
B, xdot0,
C,
D, y0);
std::shared_ptr< AffineSystem< EigenVector< StatesAtCompileTime >::template type, EigenVector< InputsAtCompileTime >::template type, EigenVector< OutputsAtCompileTime >::template type > > CreateRandomAffineSystem(size_t num_states, size_t num_inputs, size_t num_outputs, bool direct_feedthrough=true)
Definition: system_test_util.h:16
NOTE: The contents of this class are for the most part direct ports of drake/systems/plants//inverseK...
Definition: Function.h:14
AffineSystem<StateVector, InputVector, OutputVector>
Definition: LinearSystem.h:21
EigenVector<Rows>::type<ScalarType>
Definition: Vector.h:46
SNOPTData & D
Definition: SnoptSolver.cpp:126