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
64eb8817
Commit
64eb8817
authored
14 years ago
by
Olivier Stasse
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Add members and change accessor names"
This reverts commit
8d4c499d
.
parent
5f28ddaf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Mathematics/intermediate-qp-matrices.cpp
+8
-8
8 additions, 8 deletions
src/Mathematics/intermediate-qp-matrices.cpp
src/Mathematics/intermediate-qp-matrices.hh
+19
-30
19 additions, 30 deletions
src/Mathematics/intermediate-qp-matrices.hh
with
27 additions
and
38 deletions
src/Mathematics/intermediate-qp-matrices.cpp
+
8
−
8
View file @
64eb8817
...
...
@@ -51,7 +51,7 @@ IntermedQPMat::~IntermedQPMat()
IntermedQPMat
::
objective_variant_t
const
&
IntermedQPMat
::
Objective
(
const
int
aObjectiveType
)
const
IntermedQPMat
::
operator
()
(
const
int
aObjectiveType
)
const
{
switch
(
aObjectiveType
)
{
...
...
@@ -68,7 +68,7 @@ IntermedQPMat::Objective( const int aObjectiveType ) const
IntermedQPMat
::
objective_variant_t
&
IntermedQPMat
::
Objective
(
const
int
aObjectiveType
)
IntermedQPMat
::
operator
()
(
const
int
aObjectiveType
)
{
switch
(
aObjectiveType
)
{
...
...
@@ -85,7 +85,7 @@ IntermedQPMat::Objective( const int aObjectiveType )
void
IntermedQPMat
::
dump
Objective
(
const
int
aObjectiveType
,
std
::
ostream
&
aos
)
IntermedQPMat
::
print
Objective
(
const
int
aObjectiveType
,
std
::
ostream
&
aos
)
{
IntermedQPMat
::
objective_variant_t
objective
;
switch
(
aObjectiveType
)
...
...
@@ -113,29 +113,29 @@ IntermedQPMat::dumpObjective( const int aObjectiveType, std::ostream &aos )
void
IntermedQPMat
::
dump
State
(
std
::
ostream
&
aos
)
IntermedQPMat
::
print
State
(
std
::
ostream
&
aos
)
{
}
void
IntermedQPMat
::
dump
Objective
(
const
char
*
filename
,
IntermedQPMat
::
print
Objective
(
const
char
*
filename
,
const
int
type
)
{
std
::
ofstream
aof
;
aof
.
open
(
filename
,
std
::
ofstream
::
out
);
dump
Objective
(
type
,
aof
);
print
Objective
(
type
,
aof
);
aof
.
close
();
}
void
IntermedQPMat
::
dump
State
(
const
char
*
filename
)
IntermedQPMat
::
print
State
(
const
char
*
filename
)
{
std
::
ofstream
aof
;
aof
.
open
(
filename
,
std
::
ofstream
::
out
);
dump
State
(
aof
);
print
State
(
aof
);
aof
.
close
();
}
...
...
This diff is collapsed.
Click to expand it.
src/Mathematics/intermediate-qp-matrices.hh
+
19
−
30
View file @
64eb8817
...
...
@@ -56,23 +56,24 @@ namespace PatternGeneratorJRL
/// \{
struct
state_variant_s
{
/// \brief Reference
reference_t
Ref
;
/// \brief reference values for the whole preview window
MAL_VECTOR
(
RefX
,
double
);
MAL_VECTOR
(
RefY
,
double
);
MAL_VECTOR
(
RefTheta
,
double
);
/// \brief State of the Center of Mass
com_t
CoM
;
/// \brief TrunkState
trunk_t
Trunk
;
/// \brief Selection matrix for the previewed and current feet positions.
MAL_MATRIX
(
V
,
double
);
MAL_MATRIX
(
VT
,
double
);
MAL_VECTOR
(
Vc
,
double
);
/// \brief Current support foot position
supportfoot_t
SupportFoot
;
double
fx
,
fy
;
/// \brief Number of free steps in the preview window
int
NbStepsPrw
;
/// \}
};
typedef
state_variant_s
state_variant_t
;
...
...
@@ -109,38 +110,26 @@ namespace PatternGeneratorJRL
/// \}
/// \brief Accessors to the state matrices
inline
state_variant_t
const
&
State
()
const
inline
state_variant_t
const
&
operator
()
()
const
{
return
m_StateMatrices
;
};
/// \brief Accessors to the objective dependent matrices
objective_variant_t
const
&
Objective
(
const
int
aObjectiveType
)
const
;
objective_variant_t
&
Objective
(
const
int
aObjectiveType
);
objective_variant_t
const
&
operator
()
(
const
int
aObjectiveType
)
const
;
objective_variant_t
&
operator
()
(
const
int
aObjectiveType
);
/// \brief Accessors to the Center of Mass
inline
com_t
const
&
CoM
()
const
{
return
m_StateMatrices
.
CoM
;
};
inline
void
CoM
(
const
com_t
&
CoM
)
//
inline com_t const &
operator ()()
//
{ return m_StateMatrices.CoM; };
void
operator
()(
com_t
CoM
)
{
m_StateMatrices
.
CoM
=
CoM
;
};
/// \brief Accessors to the reference
inline
reference_t
const
&
Reference
()
const
{
return
m_StateMatrices
.
Ref
;
};
inline
reference_t
&
Reference
()
{
return
m_StateMatrices
.
Ref
;
};
inline
void
Reference
(
reference_t
&
Ref
)
{
m_StateMatrices
.
Ref
=
Ref
;
};
/// \brief Printers
void
printObjective
(
const
int
ObjectiveType
,
std
::
ostream
&
aos
);
void
printState
(
std
::
ostream
&
aos
);
void
printObjective
(
const
char
*
filename
,
const
int
Objectivetype
);
void
printState
(
const
char
*
filename
);
/// \brief Accessors to the Center of Mass
inline
supportfoot_t
const
&
SupportFoot
()
const
{
return
m_StateMatrices
.
SupportFoot
;
};
inline
void
SupportFoot
(
const
supportfoot_t
&
SupportFoot
)
{
m_StateMatrices
.
SupportFoot
=
SupportFoot
;
};
/// \brief Dumping
void
dumpObjective
(
const
int
ObjectiveType
,
std
::
ostream
&
aos
);
void
dumpState
(
std
::
ostream
&
aos
);
void
dumpObjective
(
const
char
*
filename
,
const
int
Objectivetype
);
void
dumpState
(
const
char
*
filename
);
//
//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