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
82ded0aa
Commit
82ded0aa
authored
14 years ago
by
Andrei Herdt
Committed by
Olivier Stasse
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Make setVertices and computeLinearSystem public methods of FCALS
parent
06193d0a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Mathematics/FootConstraintsAsLinearSystemForVelRef.cpp
+3
-5
3 additions, 5 deletions
src/Mathematics/FootConstraintsAsLinearSystemForVelRef.cpp
src/Mathematics/FootConstraintsAsLinearSystemForVelRef.h
+27
-27
27 additions, 27 deletions
src/Mathematics/FootConstraintsAsLinearSystemForVelRef.h
with
30 additions
and
32 deletions
src/Mathematics/FootConstraintsAsLinearSystemForVelRef.cpp
+
3
−
5
View file @
82ded0aa
...
...
@@ -151,8 +151,8 @@ FootConstraintsAsLinearSystemForVelRef::setFeetDimensions( CjrlHumanoidDynamicRo
int
FootConstraintsAsLinearSystemForVelRef
::
setVertices
(
std
::
vector
<
CH_Point
>
&
ZMPConstrVertices
,
std
::
vector
<
CH_Point
>
&
FeetPosConstrVertices
,
double
ZMPConvHullAngle
,
double
FeetPosConvHullAngle
,
double
&
ZMPConvHullAngle
,
double
&
FeetPosConvHullAngle
,
support_state_t
&
PrwSupport
)
{
...
...
@@ -215,7 +215,7 @@ FootConstraintsAsLinearSystemForVelRef::setVertices( std::vector<CH_Point> & ZMP
int
FootConstraintsAsLinearSystemForVelRef
::
computeLinearSystem
(
vector
<
CH_Point
>
aVecOfPoints
,
FootConstraintsAsLinearSystemForVelRef
::
computeLinearSystem
(
vector
<
CH_Point
>
&
aVecOfPoints
,
MAL_MATRIX
(
&
D
,
double
),
MAL_MATRIX
(
&
Dc
,
double
),
support_state_t
&
PrwSupport
)
...
...
@@ -308,7 +308,6 @@ FootConstraintsAsLinearSystemForVelRef::buildConstraintInequalities( deque< Foot
}
double
CurrentSupportAngle
=
FAP_it
->
theta
*
M_PI
/
180.0
;
//initialize the previewed support state before previewing
PrwSupport
.
Phase
=
CurrentSupport
.
Phase
;
PrwSupport
.
Foot
=
CurrentSupport
.
Foot
;
...
...
@@ -337,7 +336,6 @@ FootConstraintsAsLinearSystemForVelRef::buildConstraintInequalities( deque< Foot
FPConvHullOrientation
=
PreviewedSupportAngles
[
PrwSupport
.
StepNumber
-
1
];
//foot positioning constraints
//
if
(
PrwSupport
.
StateChanged
&&
PrwSupport
.
StepNumber
>
0
&&
PrwSupport
.
Phase
!=
0
)
{
ZMPConvHullOrientation
=
PreviewedSupportAngles
[
PrwSupport
.
StepNumber
-
1
];
...
...
This diff is collapsed.
Click to expand it.
src/Mathematics/FootConstraintsAsLinearSystemForVelRef.h
+
27
−
27
View file @
82ded0aa
...
...
@@ -101,6 +101,33 @@ namespace PatternGeneratorJRL
double
>&
PreviewedSupportAngles
,
int
&
NbOfConstraints
);
/// \brief Adapt vertices to the support foot and its orientation
///
/// \param ZMPConstrVertices vertices of the ZMP convex hull
/// \param FeetPosConstrVertices vertices of the foot position convex hull
/// \param ZMPConvHullOrientation
/// \param FeetPosConvHullOrientation
/// \param PrwSupport previewed support state
/// \return 0
int
setVertices
(
std
::
vector
<
CH_Point
>
&
ZMPConstrVertices
,
std
::
vector
<
CH_Point
>
&
FeetPosConstrVertices
,
double
&
ZMPConvHullOrientation
,
double
&
FeetPosConvHullOrientation
,
support_state_t
&
PrwSupport
);
/// \brief Compute the linear inequalities \f${\bf A}{\bf x} \geq {\bf b}\f$ associated with the
/// convex hull specified by a vector of points.
///
/// \param aVecOfPoints a vector of vertices
/// \param D left hand side of the inequalities
/// \param Dc right hand side of the inequalities
/// \param PrwSupport previewed support state
/// \return 0
int
computeLinearSystem
(
std
::
vector
<
CH_Point
>
&
aVecOfPoints
,
MAL_MATRIX
(
&
D
,
double
),
MAL_MATRIX
(
&
Dc
,
double
),
support_state_t
&
PrwSupport
);
/// \brief Reimplement the interface of SimplePluginManager
///
/// \param[in] Method: The method to be called.
...
...
@@ -131,33 +158,6 @@ namespace PatternGeneratorJRL
/// return 0
int
initFeetConstraints
();
/// \brief Adapt vertices to the support foot and its orientation
///
/// \param ZMPConstrVertices vertices of the ZMP convex hull
/// \param FeetPosConstrVertices vertices of the foot position convex hull
/// \param ZMPConvHullOrientation
/// \param FeetPosConvHullOrientation
/// \param PrwSupport previewed support state
/// \return 0
int
setVertices
(
std
::
vector
<
CH_Point
>
&
ZMPConstrVertices
,
std
::
vector
<
CH_Point
>
&
FeetPosConstrVertices
,
double
ZMPConvHullOrientation
,
double
FeetPosConvHullOrientation
,
support_state_t
&
PrwSupport
);
/// \brief Compute the linear inequalities \f${\bf A}{\bf x} \geq {\bf b}\f$ associated with the
/// convex hull specified by a vector of points.
///
/// \param aVecOfPoints a vector of vertices
/// \param D left hand side of the inequalities
/// \param Dc right hand side of the inequalities
/// \param PrwSupport previewed support state
/// \return 0
int
computeLinearSystem
(
std
::
vector
<
CH_Point
>
aVecOfPoints
,
MAL_MATRIX
(
&
D
,
double
),
MAL_MATRIX
(
&
Dc
,
double
),
support_state_t
&
PrwSupport
);
//
// Private members
//
...
...
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