Gains.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015-2022 CNRS-UM LIRMM, CNRS-AIST JRL
3  */
4 
5 #pragma once
6 
7 #include <Eigen/Core>
8 
9 namespace mc_rbdyn
10 {
11 
23 template<int N>
24 struct Gains : public Eigen::Matrix<double, N, 1>
25 {
26  static_assert(N > 0, "This is only usable for fixed-size gains");
27 
28  using Eigen::Matrix<double, N, 1>::Matrix;
29 
30  Gains(double value) { this->setConstant(value); }
31 };
32 
33 using Gains2d = Gains<2>;
34 using Gains3d = Gains<3>;
35 using Gains6d = Gains<6>;
36 
37 } // namespace mc_rbdyn
mc_rbdyn::Gains::Gains
Gains(double value)
Definition: Gains.h:30
mc_rbdyn::Gains
Definition: Gains.h:24
mc_rbdyn
Definition: generic_gripper.h:14