sot-core  4.11.8
Hierarchical task solver plug-in for dynamic-graph.
feature-point6d-relative.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_POINT6DRELATIVE_HH__
11 #define __SOT_FEATURE_POINT6DRELATIVE_HH__
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
17 /* SOT */
22 
23 /* --------------------------------------------------------------------- */
24 /* --- API ------------------------------------------------------------- */
25 /* --------------------------------------------------------------------- */
26 
27 #if defined(WIN32)
28 #if defined(feature_point6d_relative_EXPORTS)
29 #define SOTFEATUREPOINT6DRELATIVE_EXPORT __declspec(dllexport)
30 #else
31 #define SOTFEATUREPOINT6DRELATIVE_EXPORT __declspec(dllimport)
32 #endif
33 #else
34 #define SOTFEATUREPOINT6DRELATIVE_EXPORT
35 #endif
36 
37 /* --------------------------------------------------------------------- */
38 /* --- CLASS ----------------------------------------------------------- */
39 /* --------------------------------------------------------------------- */
40 
41 namespace dynamicgraph {
42 namespace sot {
43 
50 class [[deprecated("replaced by FeaturePose")]] SOTFEATUREPOINT6DRELATIVE_EXPORT
52  public:
53  static const std::string CLASS_NAME;
54  virtual const std::string &getClassName(void) const { return CLASS_NAME; }
55 
56  protected:
57  dynamicgraph::Matrix L;
58 
59  /* --- SIGNALS ------------------------------------------------------------ */
60  public:
61  dynamicgraph::SignalPtr<MatrixHomogeneous, int> positionReferenceSIN;
62  dynamicgraph::SignalPtr<dynamicgraph::Matrix, int>
64 
72  dynamicgraph::SignalPtr<MatrixHomogeneous, int> dotpositionSIN;
74  dynamicgraph::SignalPtr<MatrixHomogeneous, int> dotpositionReferenceSIN;
78 
79  public:
80  FeaturePoint6dRelative(const std::string &name);
81  virtual ~FeaturePoint6dRelative(void) {}
82 
83  virtual dynamicgraph::Vector &computeError(dynamicgraph::Vector & res,
84  int time);
85  virtual dynamicgraph::Vector &computeErrorDot(dynamicgraph::Vector & res,
86  int time);
87  virtual dynamicgraph::Matrix &computeJacobian(dynamicgraph::Matrix & res,
88  int time);
89 
90  virtual void display(std::ostream & os) const;
91 
92  void initCommands(void);
93  void initSdes(const std::string &featureDesiredName);
94 };
95 
96 } /* namespace sot */
97 } /* namespace dynamicgraph */
98 
99 #endif // #ifndef __SOT_FEATURE_POINT6DRELATIVE_HH__
100 
101 /*
102  * Local variables:
103  * c-basic-offset: 2
104  * End:
105  */
Class that defines the motion of a point of the body wrt. another point.
Definition: feature-point6d-relative.hh:51
void initSdes(const std::string &featureDesiredName)
dynamicgraph::Matrix L
Definition: feature-point6d-relative.hh:57
virtual dynamicgraph::Vector & computeError(dynamicgraph::Vector &res, int time)
Compute the error between the desired feature and the current value of the feature measured or deduce...
virtual ~FeaturePoint6dRelative(void)
Definition: feature-point6d-relative.hh:81
virtual dynamicgraph::Matrix & computeJacobian(dynamicgraph::Matrix &res, int time)
Compute the Jacobian of the error according the robot state.
virtual const std::string & getClassName(void) const
Returns the name class.
Definition: feature-point6d-relative.hh:54
dynamicgraph::SignalPtr< dynamicgraph::Matrix, int > articularJacobianReferenceSIN
Definition: feature-point6d-relative.hh:63
dynamicgraph::SignalPtr< MatrixHomogeneous, int > dotpositionSIN
Definition: feature-point6d-relative.hh:72
dynamicgraph::SignalPtr< MatrixHomogeneous, int > dotpositionReferenceSIN
Definition: feature-point6d-relative.hh:74
FeaturePoint6dRelative(const std::string &name)
virtual void display(std::ostream &os) const
static const std::string CLASS_NAME
Definition: feature-point6d-relative.hh:53
dynamicgraph::SignalPtr< MatrixHomogeneous, int > positionReferenceSIN
Definition: feature-point6d-relative.hh:61
virtual dynamicgraph::Vector & computeErrorDot(dynamicgraph::Vector &res, int time)
Class that defines point-6d control feature.
Definition: feature-point6d.hh:52
Feature that controls the relative (or absolute) pose between two frames A (or world) and B.
Definition: feature-pose.hh:62
FeaturePoint6d * getReference(void)
Definition: feature-abstract.hh:240
#define SOTFEATUREPOINT6DRELATIVE_EXPORT
Definition: feature-point6d-relative.hh:34
Definition: abstract-sot-external-interface.hh:17