Skip to content

Commit f6c550d

Browse files
Olivier StasseOlivier Stasse
Olivier Stasse
authored and
Olivier Stasse
committed
Merge pull request #31 from francois-keith/master
Update travis, correct windows dependency, close #27
2 parents 45a5610 + 03250da commit f6c550d

24 files changed

+170
-401
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "cmake"]
22
path = cmake
33
url = git://github.com/jrl-umi3218/jrl-cmakemodules.git
4+
[submodule ".travis"]
5+
path = .travis
6+
url = git://github.com/jrl-umi3218/jrl-travis

.travis

Submodule .travis added at 127d03a

.travis.yml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
1-
branches:
2-
only:
3-
- master
4-
before_install:
5-
- git submodule update --init --recursive
6-
- sudo apt-get update -qq
7-
- sudo apt-get install -qq doxygen doxygen-latex libboost-all-dev libeigen3-dev liblapack-dev libblas-dev gfortran python-dev python-sphinx
8-
- sudo pip install cpp-coveralls --use-mirrors
9-
env:
10-
global:
11-
secure: SnIBG/xLIHX3CSvUbqqsX8xTVqIqQ7fFS6HWO6KZQVBsT6yugTwYHbyhNiU531JejYJ/I3ZrDhXfYH3qFZiYxnH1sifvwV+fnTtMXpPN7qPZwIymkjcmm6gJF51e0C7VOfUbvKFv0ngwj+ul21rgZSMuoEvxPK0WxtE3/ZSfn9c=
1+
language: cpp
122
compiler:
133
- clang
144
- gcc
15-
script: ./.travis/build
16-
language: cpp
17-
notifications:
18-
email:
5+
env:
6+
global:
7+
- secure: "SnIBG/xLIHX3CSvUbqqsX8xTVqIqQ7fFS6HWO6KZQVBsT6yugTwYHbyhNiU531JejYJ/I3ZrDhXfYH3qFZiYxnH1sifvwV+fnTtMXpPN7qPZwIymkjcmm6gJF51e0C7VOfUbvKFv0ngwj+ul21rgZSMuoEvxPK0WxtE3/ZSfn9c="
8+
- APT_DEPENDENCIES="doxygen doxygen-latex libboost-all-dev libeigen3-dev liblapack-dev libblas-dev gfortran python-dev python-sphinx"
9+
- GIT_DEPENDENCIES="jrl-umi3218/jrl-mathtools jrl-umi3218/jrl-mal stack-of-tasks/dynamic-graph stack-of-tasks/dynamic-graph-python"
10+
- DEBSIGN_KEYID=5AE5CD75
11+
notifications:
12+
email:
1913
- hpp-source@laas.fr
20-
after_success:
21-
- coveralls -e _travis/install -e tests
22-
- git config --global user.name "Travis CI"
23-
- git config --global user.email "thomas.moulard+travis@gmail.com"
24-
- git remote set-url origin https://thomas-moulard:${GH_TOKEN}@github.com/stack-of-tasks/sot-core.git
25-
- git fetch origin gh-pages:gh-pages
26-
- cd _travis/build/doc && ../../../cmake/github/update-doxygen-doc.sh
14+
branches:
15+
only:
16+
- master
17+
- debian
2718
matrix:
2819
allow_failures:
2920
- compiler: clang
21+
script: ./.travis/run build
22+
after_success: ./.travis/run after_success
23+
after_failure: ./.travis/run after_failure
24+
before_install: ./.travis/run before_install

.travis/build

Lines changed: 0 additions & 49 deletions
This file was deleted.

debian/changelog

Lines changed: 0 additions & 23 deletions
This file was deleted.

debian/compat

Lines changed: 0 additions & 1 deletion
This file was deleted.

debian/control

Lines changed: 0 additions & 63 deletions
This file was deleted.

debian/copyright

Lines changed: 0 additions & 23 deletions
This file was deleted.

debian/docs

Lines changed: 0 additions & 3 deletions
This file was deleted.

debian/libsot-core-dev.install

Lines changed: 0 additions & 4 deletions
This file was deleted.

debian/libsot-core-doc.doc-base

Lines changed: 0 additions & 9 deletions
This file was deleted.

debian/libsot-core-doc.install

Lines changed: 0 additions & 1 deletion
This file was deleted.

debian/libsot-core1.1.1.install

Lines changed: 0 additions & 2 deletions
This file was deleted.

debian/rules

Lines changed: 0 additions & 35 deletions
This file was deleted.

debian/shlibs

Lines changed: 0 additions & 1 deletion
This file was deleted.

debian/source/format

Lines changed: 0 additions & 1 deletion
This file was deleted.

debian/watch

Lines changed: 0 additions & 8 deletions
This file was deleted.

include/sot/core/feature-abstract.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ namespace dynamicgraph {
189189
virtual std::ostream & writeGraph(std::ostream & os) const;
190190

191191
/// Return true for children that provide the errordot output signal
192-
virtual bool withErrorDot( void ) const SOT_CORE_DEPRECATED
192+
SOT_CORE_DEPRECATED virtual bool withErrorDot( void ) const
193193
{
194194
return true;
195195
}

include/sot/core/gripper-control.hh

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -59,40 +59,45 @@ namespace dynamicgraph { namespace sot {
5959

6060
namespace dg = dynamicgraph;
6161

62+
/*! \brief The goal of this entity is to ensure that the maximal torque will not
63+
* be exceeded during a grasping task.
64+
* If the maximal torque is reached, then the current position of the gripper is
65+
kept
66+
*
67+
*/
6268
class SOTGRIPPERCONTROL_EXPORT GripperControl
6369
{
6470
protected:
6571

6672
double offset;
6773
static const double OFFSET_DEFAULT;
74+
//! \brief The multiplication
6875
ml::Vector factor;
6976

7077
public:
7178
GripperControl( void );
7279

80+
//! \brief Computes the
81+
// if the torque limit is reached, the normalized position is reduced by
82+
// (offset)
7383
void computeIncrement( const ml::Vector& torques,
74-
const ml::Vector& torqueLimits,
75-
const ml::Vector& currentNormPos );
76-
77-
static void computeNormalizedPosition( const ml::Vector& currentPos,
78-
const ml::Vector& upperLim,
79-
const ml::Vector& lowerLim,
80-
ml::Vector& currentNormPos );
81-
static void computeDenormalizedPosition( const ml::Vector& currentNormPos,
82-
const ml::Vector& upperLim,
83-
const ml::Vector& lowerLim,
84-
ml::Vector& currentPos );
84+
const ml::Vector& torqueLimits,
85+
const ml::Vector& currentNormVel );
8586

87+
//! \brief
8688
ml::Vector& computeDesiredPosition( const ml::Vector& currentPos,
87-
const ml::Vector& torques,
88-
const ml::Vector& upperLim,
89-
const ml::Vector& lowerLim,
90-
const ml::Vector& torqueLimits,
91-
ml::Vector& desPos );
89+
const ml::Vector& desiredPos,
90+
const ml::Vector& torques,
91+
const ml::Vector& torqueLimits,
92+
ml::Vector& referencePos );
93+
94+
/*! \brief select only some of the values of the vector fullsize,
95+
* based on the Flags vector.
96+
*/
9297

9398
static ml::Vector& selector( const ml::Vector& fullsize,
94-
const Flags& selec,
95-
ml::Vector& desPos );
99+
const Flags& selec,
100+
ml::Vector& desPos );
96101
};
97102

98103
/* --------------------------------------------------------------------- */
@@ -119,19 +124,14 @@ class SOTGRIPPERCONTROL_EXPORT GripperControlPlugin
119124

120125
/* --- INPUTS --- */
121126
dg::SignalPtr<ml::Vector,int> positionSIN;
122-
dg::SignalPtr<ml::Vector,int> upperLimitSIN;
123-
dg::SignalPtr<ml::Vector,int> lowerLimitSIN;
127+
dg::SignalPtr<ml::Vector,int> positionDesSIN;
124128
dg::SignalPtr<ml::Vector,int> torqueSIN;
125129
dg::SignalPtr<ml::Vector,int> torqueLimitSIN;
126130
dg::SignalPtr<Flags,int> selectionSIN;
127131

128132
/* --- INTERMEDIARY --- */
129133
dg::SignalPtr<ml::Vector,int> positionFullSizeSIN;
130134
dg::SignalTimeDependent<ml::Vector,int> positionReduceSOUT;
131-
dg::SignalPtr<ml::Vector,int> upperLimitFullSizeSIN;
132-
dg::SignalTimeDependent<ml::Vector,int> upperLimitReduceSOUT;
133-
dg::SignalPtr<ml::Vector,int> lowerLimitFullSizeSIN;
134-
dg::SignalTimeDependent<ml::Vector,int> lowerLimitReduceSOUT;
135135
dg::SignalPtr<ml::Vector,int> torqueFullSizeSIN;
136136
dg::SignalTimeDependent<ml::Vector,int> torqueReduceSOUT;
137137
dg::SignalPtr<ml::Vector,int> torqueLimitFullSizeSIN;

include/sot/core/joint-trajectory-entity.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace ml= maal::boost;
3737
// API
3838

3939
#if defined (WIN32)
40-
# if defined (sot_joint_trajectory_entity_EXPORTS)
40+
# if defined (joint_trajectory_entity_EXPORTS)
4141
# define SOTJOINT_TRAJECTORY_ENTITY_EXPORT __declspec(dllexport)
4242
# else
4343
# define SOTJOINT_TRAJECTORY_ENTITY_EXPORT __declspec(dllimport)

0 commit comments

Comments
 (0)