Skip to content

Commit 4fa17b4

Browse files
author
Rohan Budhiraja
committed
[eigen] Replacing jrl-mal with eigen. Removed solvers sot-h, weighted-sot, solver-hierarchical-inequalities.
>Todo: computederivation template specialization for vectorquaternion in derivator.h >Removed solvers >does not build
1 parent 0e77ee0 commit 4fa17b4

File tree

148 files changed

+1407
-4481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+1407
-4481
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
1717

1818
INCLUDE(cmake/base.cmake)
1919
INCLUDE(cmake/boost.cmake)
20+
INCLUDE(cmake/eigen.cmake)
2021
INCLUDE(cmake/lapack.cmake)
2122
INCLUDE(cmake/cpack.cmake)
2223

@@ -43,8 +44,8 @@ PKG_CONFIG_APPEND_LIBS("sot-core")
4344
# Boost
4445
SET(BOOST_COMPONENTS thread filesystem program_options unit_test_framework system regex )
4546
SEARCH_FOR_BOOST()
47+
SEARCH_FOR_EIGEN()
4648

47-
ADD_REQUIRED_DEPENDENCY("jrl-mal >= 1.8.0")
4849
ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 1.0.0")
4950
ADD_REQUIRED_DEPENDENCY("dynamic-graph-python")
5051

include/CMakeLists.txt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ SET(NEWHEADERS
1818
sot/core/abstract-sot-external-interface.hh
1919
sot/core/device.hh
2020
sot/core/robot-simu.hh
21-
sot/core/matrix-homogeneous.hh
22-
sot/core/matrix-rotation.hh
23-
sot/core/vector-utheta.hh
24-
sot/core/vector-rotation.hh
21+
sot/core/matrix-geometry.hh
22+
sot/core/matrix-svd.hh
2523
sot/core/contiifstream.hh
2624
sot/core/debug.hh
2725
sot/core/exception-abstract.hh
@@ -44,11 +42,7 @@ SET(NEWHEADERS
4442
sot/core/factory.hh
4543
sot/core/macros-signal.hh
4644
sot/core/pool.hh
47-
sot/core/matrix-force.hh
48-
sot/core/matrix-twist.hh
4945
sot/core/op-point-modifier.hh
50-
sot/core/vector-quaternion.hh
51-
sot/core/vector-roll-pitch-yaw.hh
5246
sot/core/feature-point6d.hh
5347
sot/core/feature-vector3.hh
5448
sot/core/feature-abstract.hh
@@ -71,13 +65,8 @@ SET(NEWHEADERS
7165
sot/core/task.hh
7266
sot/core/gain-hyperbolic.hh
7367
sot/core/flags.hh
74-
sot/core/sot-qr.hh
7568
sot/core/memory-task-sot.hh
76-
sot/core/sot-h.hh
7769
sot/core/sot.hh
78-
sot/core/rotation-simple.hh
79-
sot/core/weighted-sot.hh
80-
sot/core/solver-hierarchical-inequalities.hh
8170
sot/core/reader.hh
8271
sot/core/utils-windows.hh
8372
sot/core/time-stamp.hh

include/sot/core/binary-op.hh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
/* --------------------------------------------------------------------- */
2727

2828
/* Matrix */
29-
#include <jrl/mal/boost.hh>
29+
#include <dynamic-graph/linear-algebra.h>
3030

3131
/* SOT */
3232
#include <sot/core/flags.hh>
3333
#include <dynamic-graph/entity.h>
3434
#include <sot/core/pool.hh>
3535
#include <dynamic-graph/all-signals.h>
36-
#include <sot/core/vector-quaternion.hh>
36+
#include <sot/core/matrix-geometry.hh>
3737

3838
/* STD */
3939
#include <string>

include/sot/core/clamp-workspace.hh

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,14 @@
2525
#include <utility>
2626

2727
/* Matrix */
28-
#include <jrl/mal/boost.hh>
29-
namespace ml = maal::boost;
28+
#include <dynamic-graph/linear-algebra.h>
29+
namespace dg = dynamicgraph;
3030

3131
/* SOT */
3232
#include <dynamic-graph/entity.h>
3333
#include <sot/core/exception-task.hh>
3434
#include <dynamic-graph/all-signals.h>
35-
#include <sot/core/vector-roll-pitch-yaw.hh>
36-
#include <sot/core/matrix-rotation.hh>
37-
#include <sot/core/matrix-homogeneous.hh>
38-
#include <sot/core/matrix-twist.hh>
35+
#include <sot/core/matrix-geometry.hh>
3936

4037

4138
/* --------------------------------------------------------------------- */
@@ -71,8 +68,8 @@ class SOTCLAMPWORKSPACE_EXPORT ClampWorkspace
7168

7269
dg::SignalPtr< MatrixHomogeneous,int > positionrefSIN;
7370
dg::SignalPtr< MatrixHomogeneous,int > positionSIN;
74-
dg::SignalTimeDependent< ml::Matrix,int > alphaSOUT;
75-
dg::SignalTimeDependent< ml::Matrix,int > alphabarSOUT;
71+
dg::SignalTimeDependent< dg::Matrix,int > alphaSOUT;
72+
dg::SignalTimeDependent< dg::Matrix,int > alphabarSOUT;
7673
dg::SignalTimeDependent< MatrixHomogeneous,int > handrefSOUT;
7774

7875
public:
@@ -82,8 +79,8 @@ class SOTCLAMPWORKSPACE_EXPORT ClampWorkspace
8279

8380
void update( int time );
8481

85-
virtual ml::Matrix& computeOutput( ml::Matrix& res, int time );
86-
virtual ml::Matrix& computeOutputBar( ml::Matrix& res, int time );
82+
virtual dg::Matrix& computeOutput( dg::Matrix& res, int time );
83+
virtual dg::Matrix& computeOutputBar( dg::Matrix& res, int time );
8784
virtual MatrixHomogeneous& computeRef( MatrixHomogeneous& res, int time );
8885

8986
virtual void display( std::ostream& ) const;
@@ -95,10 +92,10 @@ class SOTCLAMPWORKSPACE_EXPORT ClampWorkspace
9592

9693
int timeUpdate;
9794

98-
ml::Matrix alpha;
99-
ml::Matrix alphabar;
95+
dg::Matrix alpha;
96+
dg::Matrix alphabar;
10097
MatrixHomogeneous prefMp;
101-
ml::Vector pd;
98+
dg::Vector pd;
10299
MatrixRotation Rd;
103100
MatrixHomogeneous handref;
104101

include/sot/core/com-freezer.hh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
/* --------------------------------------------------------------------- */
2727

2828
/* Matrix */
29-
#include <jrl/mal/boost.hh>
30-
namespace ml = maal::boost;
29+
#include <dynamic-graph/linear-algebra.h>
30+
namespace dg = dynamicgraph;
3131

3232
/* SOT */
3333
#include <dynamic-graph/entity.h>
@@ -64,7 +64,7 @@ class SOTCOMFREEZER_EXPORT CoMFreezer
6464
virtual const std::string & getClassName() const { return CLASS_NAME; }
6565

6666
private:
67-
ml::Vector m_lastCoM;
67+
dg::Vector m_lastCoM;
6868
bool m_previousPGInProcess;
6969
int m_lastStopTime;
7070

@@ -73,12 +73,12 @@ class SOTCOMFREEZER_EXPORT CoMFreezer
7373
virtual ~CoMFreezer(void);
7474

7575
public: /* --- SIGNAL --- */
76-
dg::SignalPtr<ml::Vector, int> CoMRefSIN;
76+
dg::SignalPtr<dg::Vector, int> CoMRefSIN;
7777
dg::SignalPtr<unsigned, int> PGInProcessSIN;
78-
dg::SignalTimeDependent<ml::Vector, int> freezedCoMSOUT;
78+
dg::SignalTimeDependent<dg::Vector, int> freezedCoMSOUT;
7979

8080
public: /* --- FUNCTION --- */
81-
ml::Vector& computeFreezedCoM(ml::Vector & freezedCoM, const int& time);
81+
dg::Vector& computeFreezedCoM(dg::Vector & freezedCoM, const int& time);
8282

8383
public: /* --- PARAMS --- */
8484
virtual void display(std::ostream & os) const;

include/sot/core/constraint.hh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
/* --------------------------------------------------------------------- */
2727

2828
/* Matrix */
29-
#include <jrl/mal/boost.hh>
30-
namespace ml = maal::boost;
29+
#include <dynamic-graph/linear-algebra.h>
30+
namespace dg = dynamicgraph;
3131

3232
/* STD */
3333
#include <string>
@@ -66,7 +66,7 @@ namespace dynamicgraph {
6666
: public TaskAbstract
6767
{
6868
protected:
69-
typedef std::list< Signal<ml::Matrix,int>* > JacobianList;
69+
typedef std::list< Signal<dg::Matrix,int>* > JacobianList;
7070
JacobianList jacobianList;
7171

7272
public:
@@ -76,15 +76,15 @@ namespace dynamicgraph {
7676
public:
7777
Constraint( const std::string& n );
7878

79-
void addJacobian( Signal<ml::Matrix,int>& sig );
79+
void addJacobian( Signal<dg::Matrix,int>& sig );
8080
void clearJacobianList( void );
8181

8282
void setControlSelection( const Flags& act );
8383
void addControlSelection( const Flags& act );
8484
void clearControlSelection( void );
8585

8686
/* --- COMPUTATION --- */
87-
ml::Matrix& computeJacobian( ml::Matrix& J,int time );
87+
dg::Matrix& computeJacobian( dg::Matrix& J,int time );
8888

8989
/* --- DISPLAY ------------------------------------------------------------ */
9090
SOTCONSTRAINT_EXPORT friend std::ostream& operator<< ( std::ostream& os,const Constraint& t );

include/sot/core/control-gr.hh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
/* --------------------------------------------------------------------- */
2727

2828
/* Matrix */
29-
#include <jrl/mal/boost.hh>
30-
namespace ml = maal::boost;
29+
#include <dynamic-graph/linear-algebra.h>
30+
namespace dg = dynamicgraph;
3131

3232
/* SOT */
3333
#include <dynamic-graph/signal-time-dependent.h>
@@ -90,15 +90,15 @@ namespace dynamicgraph {
9090

9191
public: /* --- SIGNALS --- */
9292

93-
SignalPtr<ml::Matrix,int> matrixASIN;
94-
SignalPtr<ml::Vector,int> accelerationSIN;
95-
SignalPtr<ml::Vector,int> gravitySIN;
96-
SignalTimeDependent<ml::Vector,int> controlSOUT;
93+
SignalPtr<dg::Matrix,int> matrixASIN;
94+
SignalPtr<dg::Vector,int> accelerationSIN;
95+
SignalPtr<dg::Vector,int> gravitySIN;
96+
SignalTimeDependent<dg::Vector,int> controlSOUT;
9797

9898
protected:
9999

100100
double& setsize(int dimension);
101-
ml::Vector& computeControl( ml::Vector& tau,int t );
101+
dg::Vector& computeControl( dg::Vector& tau,int t );
102102

103103
};
104104

include/sot/core/control-pd.hh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
/* --------------------------------------------------------------------- */
2727

2828
/* Matrix */
29-
#include <jrl/mal/boost.hh>
30-
namespace ml = maal::boost;
29+
#include <dynamic-graph/linear-algebra.h>
30+
namespace dg = dynamicgraph;
3131

3232
/* SOT */
3333
#include <dynamic-graph/signal-time-dependent.h>
@@ -88,18 +88,18 @@ namespace dynamicgraph {
8888

8989
public: /* --- SIGNALS --- */
9090

91-
SignalPtr<ml::Vector,int> KpSIN;
92-
SignalPtr<ml::Vector,int> KdSIN;
93-
SignalPtr<ml::Vector,int> positionSIN;
94-
SignalPtr<ml::Vector,int> desiredpositionSIN;
95-
SignalPtr<ml::Vector,int> velocitySIN;
96-
SignalPtr<ml::Vector,int> desiredvelocitySIN;
97-
SignalTimeDependent<ml::Vector,int> controlSOUT;
91+
SignalPtr<dg::Vector,int> KpSIN;
92+
SignalPtr<dg::Vector,int> KdSIN;
93+
SignalPtr<dg::Vector,int> positionSIN;
94+
SignalPtr<dg::Vector,int> desiredpositionSIN;
95+
SignalPtr<dg::Vector,int> velocitySIN;
96+
SignalPtr<dg::Vector,int> desiredvelocitySIN;
97+
SignalTimeDependent<dg::Vector,int> controlSOUT;
9898

9999
protected:
100100

101101
double& setsize(int dimension);
102-
ml::Vector& computeControl( ml::Vector& tau,int t );
102+
dg::Vector& computeControl( dg::Vector& tau,int t );
103103

104104
};
105105

include/sot/core/derivator-impl.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define __SOT_DERIVATOR_IMPL_H__
2323

2424
#include <sot/core/derivator.hh>
25-
#include <sot/core/vector-quaternion.hh>
25+
#include <sot/core/matrix-geometry.hh>
2626

2727
/* --------------------------------------------------------------------- */
2828
/* --- API ------------------------------------------------------------- */
@@ -58,8 +58,8 @@ namespace dg = dynamicgraph;
5858
#endif
5959

6060
DECLARE_SPECIFICATION(DerivatorDouble,double)
61-
DECLARE_SPECIFICATION(DerivatorVector,ml::Vector)
62-
DECLARE_SPECIFICATION(DerivatorMatrix,ml::Matrix)
61+
DECLARE_SPECIFICATION(DerivatorVector,dg::Vector)
62+
DECLARE_SPECIFICATION(DerivatorMatrix,dg::Matrix)
6363
DECLARE_SPECIFICATION(DerivatorVectorQuaternion,VectorQuaternion)
6464
} /* namespace sot */} /* namespace dynamicgraph */
6565

include/sot/core/derivator.hh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@
2626
/* --------------------------------------------------------------------- */
2727

2828
/* Matrix */
29-
#include <jrl/mal/boost.hh>
30-
namespace ml = maal::boost;
29+
#include <dynamic-graph/linear-algebra.h>
3130

3231
/* SOT */
3332
#include <sot/core/flags.hh>
3433
#include <sot/core/pool.hh>
3534
#include <dynamic-graph/entity.h>
3635
#include <dynamic-graph/all-signals.h>
37-
#include <sot/core/vector-quaternion.hh>
36+
#include <sot/core/matrix-geometry.hh>
3837

3938
/* STD */
4039
#include <string>

0 commit comments

Comments
 (0)