Skip to content

Commit f161b98

Browse files
Revert "[feature-pose] Reorganize such that feature-pose.hxx is not in feature-pose.hh"
This reverts commit 9d9004a.
1 parent ca802b8 commit f161b98

File tree

4 files changed

+20
-29
lines changed

4 files changed

+20
-29
lines changed

include/sot/core/feature-pose.hh

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -169,31 +169,7 @@ extern template class SOT_CORE_DLLAPI FeaturePose<R3xSO3Representation>;
169169
} /* namespace sot */
170170
} /* namespace dynamicgraph */
171171

172-
173-
using namespace std;
174-
using namespace dynamicgraph;
175-
using namespace dynamicgraph::sot;
176-
177-
typedef pinocchio::CartesianProductOperation<
178-
pinocchio::VectorSpaceOperationTpl<3, double>,
179-
pinocchio::SpecialOrthogonalOperationTpl<3, double> >
180-
R3xSO3_t;
181-
typedef pinocchio::SpecialEuclideanOperationTpl<3, double> SE3_t;
182-
183-
namespace dynamicgraph {
184-
namespace sot {
185-
namespace dg = dynamicgraph;
186-
187-
template <Representation_t representation> struct LG_t {
188-
typedef typename boost::mpl::if_c<representation == SE3Representation, SE3_t,
189-
R3xSO3_t>::type type;
190-
};
191-
192-
typedef FeaturePose<R3xSO3Representation> FeaturePose_t;
193-
typedef FeaturePose<SE3Representation> FeaturePoseSE3_t;
194-
}
195-
}
196-
172+
#include <sot/core/feature-pose.hxx>
197173

198174
#endif // #ifndef __SOT_FEATURE_TRANSFORMATION_HH__
199175

include/sot/core/feature-pose.hxx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,29 @@
2727
#include <sot/core/factory.hh>
2828
#include <sot/core/feature-pose.hh>
2929

30+
using namespace std;
31+
using namespace dynamicgraph;
32+
using namespace dynamicgraph::sot;
33+
34+
typedef pinocchio::CartesianProductOperation<
35+
pinocchio::VectorSpaceOperationTpl<3, double>,
36+
pinocchio::SpecialOrthogonalOperationTpl<3, double> >
37+
R3xSO3_t;
38+
typedef pinocchio::SpecialEuclideanOperationTpl<3, double> SE3_t;
39+
3040
namespace dynamicgraph {
3141
namespace sot {
3242
namespace dg = dynamicgraph;
3343

44+
template <Representation_t representation> struct LG_t {
45+
typedef typename boost::mpl::if_c<representation == SE3Representation, SE3_t,
46+
R3xSO3_t>::type type;
47+
};
48+
49+
typedef FeaturePose<R3xSO3Representation> FeaturePose_t;
50+
typedef FeaturePose<SE3Representation> FeaturePoseSE3_t;
51+
52+
3453
/* --------------------------------------------------------------------- */
3554
/* --- CLASS ----------------------------------------------------------- */
3655
/* --------------------------------------------------------------------- */

src/feature/feature-pose.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <sot/core/debug.hh>
2929
#include <sot/core/factory.hh>
3030
#include <sot/core/feature-pose.hh>
31-
#include <sot/core/feature-pose.hxx>
3231

3332
using namespace std;
3433
using namespace dynamicgraph;

tests/features/test_feature_generic.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,17 @@
2727

2828
#include <Eigen/SVD>
2929
#include <dynamic-graph/linear-algebra.h>
30-
#include <dynamic-graph/factory.h>
3130
#include <sot/core/debug.hh>
3231
#include <sot/core/feature-abstract.hh>
3332
#include <sot/core/feature-generic.hh>
3433
#include <sot/core/feature-pose.hh>
35-
#include <sot/core/feature-pose.hxx>
3634
#include <sot/core/gain-adaptive.hh>
3735
#include <sot/core/sot.hh>
3836
#include <sot/core/task.hh>
3937

4038
using namespace std;
4139
using namespace dynamicgraph::sot;
4240
using namespace dynamicgraph;
43-
namespace dg = dynamicgraph;
4441

4542
#define EIGEN_VECTOR_IS_APPROX(Va, Vb, precision) \
4643
BOOST_CHECK_MESSAGE((Va).isApprox(Vb, precision), \

0 commit comments

Comments
 (0)