36 PendulumDynamicsSolver::PendulumDynamicsSolver()
43 void PendulumDynamicsSolver::AssignScene(
ScenePtr scene_in)
45 const int num_positions_in = scene_in->GetKinematicTree().GetNumControlledJoints();
47 if (num_positions_in != 1)
50 if (parameters_.FrictionCoefficient < 0)
51 ThrowPretty(
"Coefficient of friction is less than 0 (" << parameters_.FrictionCoefficient <<
").");
52 if (parameters_.FrictionCoefficient > 1.5)
53 WARNING_NAMED(
"PendulumDynamicsSolver",
"Coefficient of friction " << parameters_.FrictionCoefficient <<
" might be too high!");
54 b_ = parameters_.FrictionCoefficient;
85 fu << 0, 1.0 / (
l_ *
l_ *
m_);
#define REGISTER_DYNAMICS_SOLVER_TYPE(TYPE, DERIV)
#define WARNING_NAMED(name, x)
std::shared_ptr< Scene > ScenePtr
Eigen::Matrix< T, NU, 1 > ControlVector
Eigen::Matrix< T, NX, 1 > StateVector