Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jrl-walkgen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Guilhem Saurel
jrl-walkgen
Commits
7436a10b
Commit
7436a10b
authored
14 years ago
by
Olivier Stasse
Browse files
Options
Downloads
Patches
Plain Diff
Remove trailing whitespace for FootConstraints.
parent
f46e2511
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Mathematics/FootConstraintsAsLinearSystemForVelRef.cpp
+30
-30
30 additions, 30 deletions
src/Mathematics/FootConstraintsAsLinearSystemForVelRef.cpp
with
30 additions
and
30 deletions
src/Mathematics/FootConstraintsAsLinearSystemForVelRef.cpp
+
30
−
30
View file @
7436a10b
/*
* Copyright 2010,
* Copyright 2010,
*
* Mehdi Benallegue
* Andrei Herdt
* Olivier Stasse
*
*
*
* JRL, CNRS/AIST
*
...
...
@@ -21,7 +21,7 @@
* You should have received a copy of the GNU Lesser General Public License
* along with walkGenJrl. If not, see <http://www.gnu.org/licenses/>.
*
* Research carried out within the scope of the
* Research carried out within the scope of the
* Joint Japanese-French Robotics Laboratory (JRL)
*/
/** \file FootConstraintAsLinearSystemForVelRef.cpp
...
...
@@ -41,9 +41,9 @@ using namespace PatternGeneratorJRL;
FootConstraintsAsLinearSystemForVelRef
::
FootConstraintsAsLinearSystemForVelRef
(
SimplePluginManager
*
aSPM
,
CjrlHumanoidDynamicRobot
*
aHS
,
double
ConstraintOnX
,
FootConstraintsAsLinearSystemForVelRef
(
SimplePluginManager
*
aSPM
,
CjrlHumanoidDynamicRobot
*
aHS
,
double
ConstraintOnX
,
double
ConstraintOnY
)
:
SimplePlugin
(
aSPM
)
{
...
...
@@ -62,7 +62,7 @@ FootConstraintsAsLinearSystemForVelRef(SimplePluginManager *aSPM,
{
cerr
<<
"Problem with the reading of the left foot"
<<
endl
;
}
lLeftFoot
->
getSoleSize
(
lLeftFootHalfWidth
,
lLeftFootHalfHeight
);
...
...
@@ -363,13 +363,13 @@ int FootConstraintsAsLinearSystemForVelRef::buildLinearConstraintInequalities(de
if
((
m_FullDebug
>
2
)
&&
(
i
==
1
))
{
ofstream
aof
;
aof
.
open
(
"/tmp/ConvexHull.dat"
,
ofstream
::
app
);
aof
<<
TheConvexHull
[
j
].
col
<<
" "
<<
TheConvexHull
[
j
].
row
<<
" "
<<
endl
;
aof
.
close
();
}
}
//foot positionning constraints
...
...
@@ -445,28 +445,28 @@ int FootConstraintsAsLinearSystemForVelRef::buildLinearConstraintInequalities(de
QueueOfLConstraintInequalitiesFreeFeet
.
push_back
(
aLCI
);
//Determine the number of constraints
//Determine the number of constraints
deque
<
LinearConstraintInequalityFreeFeet_t
>::
iterator
LCIFF_it
;
LCIFF_it
=
QueueOfLConstraintInequalitiesFreeFeet
.
begin
();
int
IndexConstraint
=
0
;
for
(
int
i
=
0
;
i
<
m_QP_N
;
i
++
)
{
if
(
LCIFF_it
==
QueueOfLConstraintInequalitiesFreeFeet
.
end
())
{
break
;
}
IndexConstraint
+=
MAL_MATRIX_NB_ROWS
(
LCIFF_it
->
D
);
LCIFF_it
++
;
}
if
(
PrwSupport
.
StepNumber
>
0
)
{
LCIFF_it
=
QueueOfFeetPosInequalities
.
begin
();
IndexConstraint
+=
double
(
PrwSupport
.
StepNumber
)
*
MAL_MATRIX_NB_ROWS
(
LCIFF_it
->
D
);
}
NbOfConstraints
=
IndexConstraint
;
LCIFF_it
=
QueueOfLConstraintInequalitiesFreeFeet
.
begin
();
int
IndexConstraint
=
0
;
for
(
int
i
=
0
;
i
<
m_QP_N
;
i
++
)
{
if
(
LCIFF_it
==
QueueOfLConstraintInequalitiesFreeFeet
.
end
())
{
break
;
}
IndexConstraint
+=
MAL_MATRIX_NB_ROWS
(
LCIFF_it
->
D
);
LCIFF_it
++
;
}
if
(
PrwSupport
.
StepNumber
>
0
)
{
LCIFF_it
=
QueueOfFeetPosInequalities
.
begin
();
IndexConstraint
+=
double
(
PrwSupport
.
StepNumber
)
*
MAL_MATRIX_NB_ROWS
(
LCIFF_it
->
D
);
}
NbOfConstraints
=
IndexConstraint
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment