feature-visual-point.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * François Bleibel,
4  * Olivier Stasse,
5  *
6  * CNRS/AIST
7  *
8  */
9 
10 #ifndef __SOT_FEATURE_VISUALPOINT_HH__
11 #define __SOT_FEATURE_VISUALPOINT_HH__
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
17 /* SOT */
20 
21 /* --------------------------------------------------------------------- */
22 /* --- API ------------------------------------------------------------- */
23 /* --------------------------------------------------------------------- */
24 
25 #if defined(WIN32)
26 #if defined(feature_visual_point_EXPORTS)
27 #define SOTFEATUREVISUALPOINT_EXPORT __declspec(dllexport)
28 #else
29 #define SOTFEATUREVISUALPOINT_EXPORT __declspec(dllimport)
30 #endif
31 #else
32 #define SOTFEATUREVISUALPOINT_EXPORT
33 #endif
34 
35 /* --------------------------------------------------------------------- */
36 /* --- CLASS ----------------------------------------------------------- */
37 /* --------------------------------------------------------------------- */
38 
39 namespace dynamicgraph {
40 namespace sot {
41 
47  : public FeatureAbstract,
48  public FeatureReferenceHelper<FeatureVisualPoint> {
49  public:
50  static const std::string CLASS_NAME;
51  virtual const std::string &getClassName(void) const { return CLASS_NAME; }
52 
53  protected:
55 
56  /* --- SIGNALS ------------------------------------------------------------ */
57  public:
63 
67 
69 
70  public:
71  FeatureVisualPoint(const std::string &name);
72  virtual ~FeatureVisualPoint(void) {}
73 
74  virtual size_type &getDimension(size_type &dim, sigtime_t time);
75 
76  virtual dynamicgraph::Vector &computeError(dynamicgraph::Vector &res,
77  sigtime_t time);
78  virtual dynamicgraph::Matrix &computeJacobian(dynamicgraph::Matrix &res,
79  sigtime_t time);
80 
82  inline static Flags selectX(void) { return Flags("10"); }
83  inline static Flags selectY(void) { return Flags("01"); }
84 
85  virtual void display(std::ostream &os) const;
86 };
87 
88 } /* namespace sot */
89 } /* namespace dynamicgraph */
90 
91 #endif // #ifndef __SOT_FEATURE_VISUALPOINT_HH__
92 
93 /*
94  * Local variables:
95  * c-basic-offset: 2
96  * End:
97  */
dynamicgraph::sot::FeatureVisualPoint::~FeatureVisualPoint
virtual ~FeatureVisualPoint(void)
Definition: feature-visual-point.hh:72
dynamicgraph::sot::FeatureAbstract::errorSOUT
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > errorSOUT
This signal returns the error between the desired value and the current value : .
Definition: feature-abstract.hh:185
dynamicgraph::sot::FeatureReferenceHelper
Definition: feature-abstract.hh:229
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t >
dynamicgraph::sot::FeatureVisualPoint::xySIN
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t > xySIN
Definition: feature-visual-point.hh:58
dynamicgraph
dynamicgraph::sot::FeatureVisualPoint::CLASS_NAME
static const std::string CLASS_NAME
Definition: feature-visual-point.hh:50
DECLARE_REFERENCE_FUNCTIONS
#define DECLARE_REFERENCE_FUNCTIONS(FeatureSpecialized)
Definition: feature-abstract.hh:251
dynamicgraph::sot::FeatureAbstract::selectionSIN
SignalPtr< Flags, sigtime_t > selectionSIN
This vector specifies which dimension are used to perform the computation. For instance let us assume...
Definition: feature-abstract.hh:173
dynamicgraph::Matrix
Eigen::MatrixXd Matrix
dynamicgraph::sot::FeatureAbstract::jacobianSOUT
SignalTimeDependent< dynamicgraph::Matrix, sigtime_t > jacobianSOUT
Jacobian of the error wrt the robot state: .
Definition: feature-abstract.hh:193
feature-abstract.hh
dynamicgraph::sot::FeatureVisualPoint::L
dynamicgraph::Matrix L
Definition: feature-visual-point.hh:54
dynamicgraph::sot::FeatureAbstract
This class gives the abstract definition of a feature.
Definition: feature-abstract.hh:76
dynamicgraph::sot::FeatureVisualPoint::ZSIN
dynamicgraph::SignalPtr< double, sigtime_t > ZSIN
Definition: feature-visual-point.hh:61
dynamicgraph::sigtime_t
int64_t sigtime_t
dynamicgraph::sot::FeatureVisualPoint::selectX
static Flags selectX(void)
Definition: feature-visual-point.hh:82
dynamicgraph::sot::FeatureVisualPoint::getClassName
virtual const std::string & getClassName(void) const
Returns the name class.
Definition: feature-visual-point.hh:51
dynamicgraph::size_type
Matrix::Index size_type
display
dynamicgraph::Vector
Eigen::VectorXd Vector
dynamicgraph::sot::FeatureVisualPoint
Class that defines 2D visualPoint visual feature.
Definition: feature-visual-point.hh:46
exception-task.hh
dynamicgraph::sot::FeatureVisualPoint::articularJacobianSIN
dynamicgraph::SignalPtr< dynamicgraph::Matrix, sigtime_t > articularJacobianSIN
Definition: feature-visual-point.hh:62
dynamicgraph::sot::Flags
Definition: flags.hh:33
dynamicgraph::sot::FeatureVisualPoint::selectY
static Flags selectY(void)
Definition: feature-visual-point.hh:83
SOTFEATUREVISUALPOINT_EXPORT
#define SOTFEATUREVISUALPOINT_EXPORT
Definition: feature-visual-point.hh:32
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