sot-talos-balance  2.0.5
Collection of dynamic-graph entities aimed at implementing balance control on talos.
state-transformation.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2018, Gepetto team, LAAS-CNRS
3  *
4  * This file is part of sot-talos-balance.
5  * sot-talos-balance is free software: you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public License
7  * as published by the Free Software Foundation, either version 3 of
8  * the License, or (at your option) any later version.
9  * sot-talos-balance is distributed in the hope that it will be
10  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details. You should
13  * have received a copy of the GNU Lesser General Public License along
14  * with sot-talos-balance. If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef __sot_talos_balance_state_transformation_H__
18 #define __sot_talos_balance_state_transformation_H__
19 
20 /* --------------------------------------------------------------------- */
21 /* --- API ------------------------------------------------------------- */
22 /* --------------------------------------------------------------------- */
23 
24 #if defined(WIN32)
25 #if defined(state_transformation_EXPORTS)
26 #define STATETRANSFORMATION_EXPORT __declspec(dllexport)
27 #else
28 #define STATETRANSFORMATION_EXPORT __declspec(dllimport)
29 #endif
30 #else
31 #define STATETRANSFORMATION_EXPORT
32 #endif
33 
34 #include <sot/core/robot-utils.hh>
35 /* --------------------------------------------------------------------- */
36 /* --- INCLUDE --------------------------------------------------------- */
37 /* --------------------------------------------------------------------- */
38 
39 #include <dynamic-graph/linear-algebra.h>
40 #include <dynamic-graph/signal-helper.h>
41 
42 #include <map>
43 #include <sot/core/matrix-geometry.hh>
44 
45 #include "boost/assign.hpp"
46 
47 namespace dynamicgraph {
48 namespace sot {
49 namespace talos_balance {
50 
51 /* --------------------------------------------------------------------- */
52 /* --- CLASS ----------------------------------------------------------- */
53 /* --------------------------------------------------------------------- */
54 
56  : public ::dynamicgraph::Entity {
57  DYNAMIC_GRAPH_ENTITY_DECL();
58 
59  public:
60  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
61 
62  /* --- CONSTRUCTOR ---- */
63  StateTransformation(const std::string& name);
64 
65  void init();
66 
67  /* --- SIGNALS --- */
68  DECLARE_SIGNAL_IN(referenceFrame, MatrixHomogeneous);
69  DECLARE_SIGNAL_IN(q_in, dynamicgraph::Vector);
70  DECLARE_SIGNAL_IN(v_in, dynamicgraph::Vector);
71 
72  DECLARE_SIGNAL_OUT(q, dynamicgraph::Vector);
73  DECLARE_SIGNAL_OUT(v, dynamicgraph::Vector);
74 
75  /* --- COMMANDS --- */
76  /* --- ENTITY INHERITANCE --- */
77  virtual void display(std::ostream& os) const;
78 
79  protected:
80  bool
82 
83 }; // class StateTransformation
84 
85 } // namespace talos_balance
86 } // namespace sot
87 } // namespace dynamicgraph
88 
89 #endif // #ifndef __sot_talos_balance_state_transformation_H__
sot_talos_balance.test.appli_admittance_end_effector.q
list q
Definition: appli_admittance_end_effector.py:30
sot_talos_balance.test.appli_admittance_end_effector.sot
sot
Definition: appli_admittance_end_effector.py:117
dynamicgraph
Definition: treeview.dox:24
STATETRANSFORMATION_EXPORT
#define STATETRANSFORMATION_EXPORT
Definition: state-transformation.hh:31
dynamicgraph::sot::talos_balance::StateTransformation
Definition: state-transformation.hh:55
dynamicgraph::sot::talos_balance::StateTransformation::m_initSucceeded
bool m_initSucceeded
Definition: state-transformation.hh:81
dynamicgraph::sot::talos_balance::math::Vector
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: fwd.hh:36
sot_talos_balance.test.appli_dcm_zmp_control.name
name
Definition: appli_dcm_zmp_control.py:298