GCC Code Coverage Report


Directory: ./
File: include/sot/core/feature-point6d-relative.hh
Date: 2024-12-13 12:22:33
Exec Total Coverage
Lines: 0 2 0.0%
Branches: 0 0 -%

Line Branch Exec Source
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 */
18 #include <sot/core/exception-task.hh>
19 #include <sot/core/feature-abstract.hh>
20 #include <sot/core/feature-point6d.hh>
21 #include <sot/core/matrix-geometry.hh>
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
44 /*!
45 \class FeaturePoint6dRelative
46 \brief Class that defines the motion of a point of the body wrt. another
47 point.
48 \deprecated This class was replaced by FeaturePose.
49 */
50 class [[deprecated("replaced by FeaturePose")]] SOTFEATUREPOINT6DRELATIVE_EXPORT
51 FeaturePoint6dRelative : public FeaturePoint6d {
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>
63 articularJacobianReferenceSIN;
64
65 /*! dynamicgraph::Signals related to the computation of the derivative of
66 the error
67 @{ */
68
69 /*! dynamicgraph::Signals giving the derivative of the input signals.
70 @{*/
71 /*! Derivative of the relative position. */
72 dynamicgraph::SignalPtr<MatrixHomogeneous, int> dotpositionSIN;
73 /*! Derivative of the reference position. */
74 dynamicgraph::SignalPtr<MatrixHomogeneous, int> dotpositionReferenceSIN;
75 /*! @} */
76
77 using FeaturePoint6d::getReference;
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 */
106