admittance-control-op-point.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2019
3  *
4  * LAAS-CNRS
5  *
6  * NoĆ«lie Ramuzat
7  * This file is part of sot-core.
8  * See license file.
9  */
10 
11 #ifndef __sot_core_admittance_control_op_point_H__
12 #define __sot_core_admittance_control_op_point_H__
13 
14 /* --------------------------------------------------------------------- */
15 /* --- API ------------------------------------------------------------- */
16 /* --------------------------------------------------------------------- */
17 
18 #if defined(WIN32)
19 #if defined(admittance_control_op_point_EXPORTS)
20 #define ADMITTANCECONTROLOPPOINT_EXPORT __declspec(dllexport)
21 #else
22 #define ADMITTANCECONTROLOPPOINT_EXPORT __declspec(dllimport)
23 #endif
24 #else
25 #define ADMITTANCECONTROLOPPOINT_EXPORT
26 #endif
27 
28 /* --------------------------------------------------------------------- */
29 /* --- INCLUDE --------------------------------------------------------- */
30 /* --------------------------------------------------------------------- */
31 
33 
35 
36 #include "pinocchio/spatial/force.hpp"
37 #include "pinocchio/spatial/motion.hpp"
38 #include "pinocchio/spatial/se3.hpp"
39 
40 namespace dynamicgraph {
41 namespace sot {
42 namespace core {
43 
44 /* --------------------------------------------------------------------- */
45 /* --- CLASS ----------------------------------------------------------- */
46 /* --------------------------------------------------------------------- */
47 
60  : public ::dynamicgraph::Entity {
62 
63  public:
64  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
65 
66  /* --- CONSTRUCTOR ---- */
67  AdmittanceControlOpPoint(const std::string &name);
73  void init(const double &dt);
74 
75  /* --- SIGNALS --- */
91 
96 
99 
100  /* --- COMMANDS --- */
104  void resetDq();
105 
106  /* --- ENTITY INHERITANCE --- */
107  virtual void display(std::ostream &os) const;
108 
109  protected:
117  double m_dt;
118  // Weight of the end-effector
119  double m_mass;
120 
121 }; // class AdmittanceControlOpPoint
122 
123 } // namespace core
124 } // namespace sot
125 } // namespace dynamicgraph
126 
127 #endif // #ifndef __sot_core_admittance_control_op_point_H__
init
void init(bool compute_local_aabb=true)
dynamicgraph::sot::MatrixHomogeneous
Eigen::Transform< double, 3, Eigen::Affine > SOT_CORE_EXPORT MatrixHomogeneous
Definition: matrix-geometry.hh:75
dynamicgraph::sot::core::AdmittanceControlOpPoint::m_dt
double m_dt
Time step of the control.
Definition: admittance-control-op-point.hh:117
dynamicgraph
dynamicgraph::Entity
DECLARE_SIGNAL_IN
#define DECLARE_SIGNAL_IN(name, type)
DYNAMIC_GRAPH_ENTITY_DECL
#define DYNAMIC_GRAPH_ENTITY_DECL()
dynamicgraph::sot::core::AdmittanceControlOpPoint::m_w_dq
dynamicgraph::Vector m_w_dq
Internal state.
Definition: admittance-control-op-point.hh:115
dynamicgraph::sot::core::AdmittanceControlOpPoint::m_initSucceeded
bool m_initSucceeded
True if the entity has been successfully initialized.
Definition: admittance-control-op-point.hh:113
DECLARE_SIGNAL_INNER
#define DECLARE_SIGNAL_INNER(name, type)
dynamicgraph::size_type
Matrix::Index size_type
display
dynamicgraph::Vector
Eigen::VectorXd Vector
ADMITTANCECONTROLOPPOINT_EXPORT
#define ADMITTANCECONTROLOPPOINT_EXPORT
Definition: admittance-control-op-point.hh:25
DECLARE_SIGNAL_OUT
#define DECLARE_SIGNAL_OUT(name, type)
signal-helper.h
matrix-geometry.hh
dynamicgraph::sot::core::AdmittanceControlOpPoint
Admittance controller for an operational point wrt to a force sensor. It can be a point of the model ...
Definition: admittance-control-op-point.hh:59
test-parameter-server.dt
float dt
Definition: test-parameter-server.py:14
dynamicgraph::sot::core::AdmittanceControlOpPoint::m_mass
double m_mass
Definition: admittance-control-op-point.hh:119
dq
dq
compile.name
name
Definition: compile.py:23
dynamicgraph::sot::core::AdmittanceControlOpPoint::m_n
size_type m_n
Dimension of the force signals and of the output.
Definition: admittance-control-op-point.hh:111


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31