Skip to content

Commit f9eb830

Browse files
author
Guilhem Saurel
committed
remove shell, fix #58
1 parent d776d94 commit f9eb830

Some content is hidden

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

74 files changed

+204
-1909
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ADD_REQUIRED_DEPENDENCY("dynamic-graph >= 3.0.0")
5050

5151
OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
5252
IF(BUILD_PYTHON_INTERFACE)
53-
FINDPYTHON()
53+
FINDPYTHON(2.7 EXACT REQUIRED)
5454
STRING(REGEX REPLACE "-" "_" PY_NAME ${PROJECT_NAME})
5555
SET(${PY_NAME}_INSTALL_DIR ${PYTHON_SITELIB}/${PY_NAME})
5656
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIRS})

include/sot/core/binary-int-to-uint.hh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
/* --- API ------------------------------------------------------------- */
3535
/* --------------------------------------------------------------------- */
3636

37-
#if defined (WIN32)
37+
#if defined (WIN32)
3838
# if defined (binary_int_to_uint_EXPORTS)
3939
# define SOTBINARYINTTOUINT_EXPORT __declspec(dllexport)
40-
# else
40+
# else
4141
# define SOTBINARYINTTOUINT_EXPORT __declspec(dllimport)
42-
# endif
42+
# endif
4343
#else
4444
# define SOTBINARYINTTOUINT_EXPORT
4545
#endif
@@ -67,9 +67,6 @@ public:
6767
virtual unsigned& computeOutput( unsigned& res,int time );
6868

6969
virtual void display( std::ostream& os ) const;
70-
void commandLine( const std::string& cmdLine,
71-
std::istringstream& cmdArgs,
72-
std::ostream& os );
7370
};
7471

7572

include/sot/core/clamp-workspace.hh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ class SOTCLAMPWORKSPACE_EXPORT ClampWorkspace
8484
virtual MatrixHomogeneous& computeRef( MatrixHomogeneous& res, int time );
8585

8686
virtual void display( std::ostream& ) const;
87-
void commandLine( const std::string& cmdLine,
88-
std::istringstream& cmdArgs,
89-
std::ostream& os );
9087

9188
private:
9289

include/sot/core/constraint.hh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ namespace dg = dynamicgraph;
4444
/* --- API ------------------------------------------------------------- */
4545
/* --------------------------------------------------------------------- */
4646

47-
#if defined (WIN32)
47+
#if defined (WIN32)
4848
# if defined (constraint_EXPORTS)
4949
# define SOTCONSTRAINT_EXPORT __declspec(dllexport)
50-
# else
50+
# else
5151
# define SOTCONSTRAINT_EXPORT __declspec(dllimport)
52-
# endif
52+
# endif
5353
#else
5454
# define SOTCONSTRAINT_EXPORT
5555
#endif
@@ -68,8 +68,8 @@ namespace dynamicgraph {
6868
protected:
6969
typedef std::list< Signal<dg::Matrix,int>* > JacobianList;
7070
JacobianList jacobianList;
71-
72-
public:
71+
72+
public:
7373
static const std::string CLASS_NAME;
7474
virtual const std::string& getClassName( void ) const { return CLASS_NAME; }
7575

@@ -88,11 +88,6 @@ namespace dynamicgraph {
8888

8989
/* --- DISPLAY ------------------------------------------------------------ */
9090
SOTCONSTRAINT_EXPORT friend std::ostream& operator<< ( std::ostream& os,const Constraint& t );
91-
92-
/* --- PARAMS --- */
93-
virtual void commandLine( const std::string& cmdLine
94-
,std::istringstream& cmdArgs
95-
,std::ostream& os );
9691
};
9792
} // namespace sot
9893
} // namespace dynamicgraph

include/sot/core/device.hh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ namespace dynamicgraph {
6363
virtual const std::string& getClassName(void) const {
6464
return CLASS_NAME;
6565
}
66-
66+
6767
enum ForceSignalSource
6868
{
6969
FORCE_SIGNAL_RLEG,
7070
FORCE_SIGNAL_LLEG,
7171
FORCE_SIGNAL_RARM,
7272
FORCE_SIGNAL_LARM
7373
};
74-
74+
7575
protected:
7676
dg::Vector state_;
7777
dg::Vector velocity_;
@@ -82,12 +82,12 @@ namespace dynamicgraph {
8282
PeriodicCall periodicCallBefore_;
8383
PeriodicCall periodicCallAfter_;
8484
public:
85-
85+
8686
/* --- CONSTRUCTION --- */
8787
Device(const std::string& name);
8888
/* --- DESTRUCTION --- */
8989
virtual ~Device();
90-
90+
9191
virtual void setStateSize(const unsigned int& size);
9292
virtual void setState(const dg::Vector& st);
9393
void setVelocitySize(const unsigned int& size);
@@ -96,7 +96,7 @@ namespace dynamicgraph {
9696
virtual void setNoIntegration();
9797
virtual void setControlInputType(const std::string& cit);
9898
virtual void increment(const double & dt = 5e-2);
99-
99+
100100
public: /* --- DISPLAY --- */
101101
virtual void display(std::ostream& os) const;
102102
SOT_CORE_EXPORT friend std::ostream&
@@ -129,9 +129,6 @@ namespace dynamicgraph {
129129
/*! \brief The ZMP reference send by the previous controller. */
130130
dynamicgraph::Signal<dg::Vector,int> ZMPPreviousControllerSOUT;
131131

132-
public: /* --- COMMANDS --- */
133-
void commandLine(const std::string&, std::istringstream&,
134-
std::ostream&){}
135132
protected:
136133
/// Compute roll pitch yaw angles of freeflyer joint.
137134
void integrateRollPitchYaw(dg::Vector& state, const dg::Vector& control,

include/sot/core/exception-tools.hh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ namespace dynamicgraph {
4848

4949
,CORBA
5050
,KALMAN_SIZE
51-
,PY_SHELL_PTR
5251
};
5352

5453
static const std::string EXCEPTION_NAME;

include/sot/core/feature-generic.hh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ class SOTFEATUREGENERIC_EXPORT FeatureGeneric
128128
/*! \brief Display the information related to this generic implementation. */
129129
virtual void display( std::ostream& os ) const;
130130

131-
void commandLine( const std::string& cmdLine,
132-
std::istringstream& cmdArgs,
133-
std::ostream& os );
134-
135131
/*! \name Dealing with the reference value to be reach with this feature.
136132
@{
137133
*/

include/sot/core/feature-joint-limits.hh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,6 @@ class SOTFEATUREJOINTLIMITS_EXPORT FeatureJointLimits
104104
inline static Flags selectActuated( void );
105105

106106
virtual void display( std::ostream& os ) const;
107-
void commandLine( const std::string& cmdLine,
108-
std::istringstream& cmdArgs,
109-
std::ostream& os );
110-
111-
112107
} ;
113108

114109
} /* namespace sot */} /* namespace dynamicgraph */

include/sot/core/feature-line-distance.hh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ class SOTFEATURELINEDISTANCE_EXPORT FeatureLineDistance
9595

9696
virtual void display( std::ostream& os ) const;
9797

98-
virtual void commandLine( const std::string& cmdLine,
99-
std::istringstream& cmdArgs,
100-
std::ostream& os );
101-
10298
} ;
10399

104100

include/sot/core/feature-point6d-relative.hh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ class SOTFEATUREPOINT6DRELATIVE_EXPORT FeaturePoint6dRelative
9898
virtual dg::Matrix& computeJacobian( dg::Matrix& res,int time );
9999

100100
virtual void display( std::ostream& os ) const;
101-
virtual void commandLine( const std::string& cmdLine,
102-
std::istringstream& cmdArgs,
103-
std::ostream& os );
101+
104102
void initCommands( void );
105103
void initSdes( const std::string& featureDesiredName );
106104

0 commit comments

Comments
 (0)