feature-posture.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * Florent Lamiraux
4  * Thomas Moulard,
5  *
6  * CNRS/AIST
7  *
8  */
9 
10 #ifndef SOT_CORE_FEATURE_POSTURE_HH
11 #define SOT_CORE_FEATURE_POSTURE_HH
12 
15 #include <dynamic-graph/value.h>
16 
17 #include "sot/core/api.hh"
19 /* --------------------------------------------------------------------- */
20 /* --- API ------------------------------------------------------------- */
21 /* --------------------------------------------------------------------- */
22 
23 #if defined(WIN32)
24 #if defined(feature_posture_EXPORTS)
25 #define SOTFEATUREPOSTURE_EXPORT __declspec(dllexport)
26 #else
27 #define SOTFEATUREPOSTURE_EXPORT __declspec(dllimport)
28 #endif
29 #else
30 #define SOTFEATUREPOSTURE_EXPORT
31 #endif
32 
33 namespace dynamicgraph {
34 namespace sot {
35 using command::Command;
36 using command::Value;
37 
50  class SelectDof;
51  friend class SelectDof;
52 
54 
55  public:
59 
61 
62  explicit FeaturePosture(const std::string &name);
63  virtual ~FeaturePosture();
64  virtual size_type &getDimension(size_type &res, sigtime_t);
65  void selectDof(std::size_t dofId, bool control);
66 
67  protected:
68  virtual dynamicgraph::Vector &computeError(dynamicgraph::Vector &res,
69  sigtime_t);
70  virtual dynamicgraph::Matrix &computeJacobian(dynamicgraph::Matrix &res,
71  sigtime_t);
72  virtual dynamicgraph::Vector &computeErrorDot(dynamicgraph::Vector &res,
73  sigtime_t time);
74 
79 
80  private:
81  std::vector<bool> activeDofs_;
82  std::size_t nbActiveDofs_;
83 }; // class FeaturePosture
84 } // namespace sot
85 } // namespace dynamicgraph
86 
87 #endif // SOT_CORE_FEATURE_POSTURE_HH
dynamicgraph::sot::FeaturePosture::nbActiveDofs_
std::size_t nbActiveDofs_
Definition: feature-posture.hh:82
signal-ptr.h
dynamicgraph::sot::FeaturePosture::posture_
signalIn_t posture_
Definition: feature-posture.hh:76
signal-time-dependent.h
dynamicgraph::sot::FeaturePosture::signalIn_t
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t > signalIn_t
Definition: feature-posture.hh:56
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t >
dynamicgraph
dynamicgraph::Matrix
Eigen::MatrixXd Matrix
feature-abstract.hh
dynamicgraph::sot::FeaturePosture::activeDofs_
std::vector< bool > activeDofs_
Definition: feature-posture.hh:81
dynamicgraph::sot::FeatureAbstract
This class gives the abstract definition of a feature.
Definition: feature-abstract.hh:76
SOTFEATUREPOSTURE_EXPORT
#define SOTFEATUREPOSTURE_EXPORT
Definition: feature-posture.hh:30
DYNAMIC_GRAPH_ENTITY_DECL
#define DYNAMIC_GRAPH_ENTITY_DECL()
dynamicgraph::sigtime_t
int64_t sigtime_t
api.hh
value.h
dynamicgraph::size_type
Matrix::Index size_type
dynamicgraph::Vector
Eigen::VectorXd Vector
dynamicgraph::sot::FeaturePosture
Definition: feature-posture.hh:49
dynamicgraph::sot::FeaturePosture::DECLARE_NO_REFERENCE
DECLARE_NO_REFERENCE
Definition: feature-posture.hh:60
dynamicgraph::sot::FeaturePosture::error_
signalOut_t error_
Definition: feature-posture.hh:78
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t >
dynamicgraph::sot::FeaturePosture::state_
signalIn_t state_
Definition: feature-posture.hh:75
dynamicgraph::sot::FeaturePosture::signalOut_t
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t > signalOut_t
Definition: feature-posture.hh:58
dynamicgraph::sot::FeaturePosture::SelectDof
Definition: feature-posture.cpp:21
dynamicgraph::sot::FeaturePosture::postureDot_
signalIn_t postureDot_
Definition: feature-posture.hh:77
compile.name
name
Definition: compile.py:23


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