sot-talos-balance  2.0.5
Collection of dynamic-graph entities aimed at implementing balance control on talos.
simple-reference-frame.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_simple_reference_frame_H__
18 #define __sot_talos_balance_simple_reference_frame_H__
19 
20 /* --------------------------------------------------------------------- */
21 /* --- API ------------------------------------------------------------- */
22 /* --------------------------------------------------------------------- */
23 
24 #if defined(WIN32)
25 #if defined(simple_reference_frame_EXPORTS)
26 #define SIMPLEREFERENCEFRAME_EXPORT __declspec(dllexport)
27 #else
28 #define SIMPLEREFERENCEFRAME_EXPORT __declspec(dllimport)
29 #endif
30 #else
31 #define SIMPLEREFERENCEFRAME_EXPORT
32 #endif
33 
34 /* --------------------------------------------------------------------- */
35 /* --- INCLUDE --------------------------------------------------------- */
36 /* --------------------------------------------------------------------- */
37 #include <pinocchio/fwd.hpp>
38 
39 // include pinocchio first
40 
41 #include <dynamic-graph/linear-algebra.h>
42 #include <dynamic-graph/signal-helper.h>
43 
44 #include <map>
45 #include <sot/core/matrix-geometry.hh>
46 #include <sot/core/robot-utils.hh>
47 
48 #include "boost/assign.hpp"
49 
50 namespace dynamicgraph {
51 namespace sot {
52 namespace talos_balance {
53 
54 /* --------------------------------------------------------------------- */
55 /* --- CLASS ----------------------------------------------------------- */
56 /* --------------------------------------------------------------------- */
57 
59  : public ::dynamicgraph::Entity {
60  DYNAMIC_GRAPH_ENTITY_DECL();
61 
62  public:
63  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
64 
65  /* --- CONSTRUCTOR ---- */
66  SimpleReferenceFrame(const std::string& name);
67 
68  void init(const std::string& robotName);
69 
70  /* --- SIGNALS --- */
71  DECLARE_SIGNAL_IN(footLeft, MatrixHomogeneous);
72  DECLARE_SIGNAL_IN(footRight, MatrixHomogeneous);
73  DECLARE_SIGNAL_IN(reset, bool);
74 
75  DECLARE_SIGNAL_OUT(referenceFrame, MatrixHomogeneous);
76 
77  /* --- COMMANDS --- */
78  /* --- ENTITY INHERITANCE --- */
79  virtual void display(std::ostream& os) const;
80 
81  protected:
82  RobotUtilShrPtr m_robot_util;
84  MatrixHomogeneous m_referenceFrame;
85  bool m_first;
86  bool
88 
89 }; // class SimpleReferenceFrame
90 
91 } // namespace talos_balance
92 } // namespace sot
93 } // namespace dynamicgraph
94 
95 #endif // #ifndef __sot_talos_balance_simple_reference_frame_H__
sot_talos_balance.test.appli_admittance_end_effector.sot
sot
Definition: appli_admittance_end_effector.py:117
sot_talos_balance.test.appli_ankle_admittance.robotName
string robotName
Definition: appli_ankle_admittance.py:33
dynamicgraph::sot::talos_balance::SimpleReferenceFrame::m_first
bool m_first
Definition: simple-reference-frame.hh:85
dynamicgraph
Definition: treeview.dox:24
SIMPLEREFERENCEFRAME_EXPORT
#define SIMPLEREFERENCEFRAME_EXPORT
Definition: simple-reference-frame.hh:31
dynamicgraph::sot::talos_balance::SimpleReferenceFrame::m_initSucceeded
bool m_initSucceeded
Definition: simple-reference-frame.hh:87
dynamicgraph::sot::talos_balance::SimpleReferenceFrame
Definition: simple-reference-frame.hh:58
dynamicgraph::sot::talos_balance::SimpleReferenceFrame::m_robot_util
RobotUtilShrPtr m_robot_util
Definition: simple-reference-frame.hh:82
dynamicgraph::sot::talos_balance::math::Vector
Eigen::Matrix< Scalar, Eigen::Dynamic, 1 > Vector
Definition: fwd.hh:36
dynamicgraph::sot::talos_balance::SimpleReferenceFrame::m_referenceFrame
MatrixHomogeneous m_referenceFrame
Definition: simple-reference-frame.hh:84
sot_talos_balance.test.appli_dcm_zmp_control.name
name
Definition: appli_dcm_zmp_control.py:298
dynamicgraph::sot::talos_balance::SimpleReferenceFrame::m_rightFootSoleXYZ
Vector m_rightFootSoleXYZ
Definition: simple-reference-frame.hh:83