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
c876bcdd
Commit
c876bcdd
authored
13 years ago
by
Andrei
Browse files
Options
Downloads
Patches
Plain Diff
See previous commmit
parent
af777960
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/Polynome.h
+5
-0
5 additions, 0 deletions
src/Mathematics/Polynome.h
tests/TestObject.cpp
+40
-16
40 additions, 16 deletions
tests/TestObject.cpp
with
45 additions
and
16 deletions
src/Mathematics/Polynome.h
+
5
−
0
View file @
c876bcdd
...
...
@@ -44,6 +44,7 @@ namespace PatternGeneratorJRL
{
public:
/*! Constructor */
Polynome
(
int
Degree
);
...
...
@@ -62,6 +63,10 @@ namespace PatternGeneratorJRL
/*! Set the coefficients. */
void
SetCoefficients
(
std
::
vector
<
double
>
&
lCoefficients
);
inline
int
Degree
()
{
return
m_Degree
;
};
/*! Print the coefficient. */
void
print
();
...
...
This diff is collapsed.
Click to expand it.
tests/TestObject.cpp
+
40
−
16
View file @
c876bcdd
...
...
@@ -153,7 +153,7 @@ namespace PatternGeneratorJRL
aFileName
+=
"TestFGPI_description.dat"
;
aof
.
open
(
aFileName
.
c_str
(),
ofstream
::
out
);
string
Titles
[
26
]
=
string
Titles
[
38
]
=
{
"Time"
,
"Com X"
,
"Com Y"
,
...
...
@@ -167,12 +167,24 @@ namespace PatternGeneratorJRL
"Left Foot X"
,
"Left Foot Y"
,
"Left Foot Z"
,
"Left Foot dX"
,
"Left Foot dY"
,
"Left Foot dZ"
,
"Left Foot ddX"
,
"Left Foot ddY"
,
"Left Foot ddZ"
,
"Left Foot Theta"
,
"Left Foot Omega"
,
"Left Foot Omega2"
,
"Right Foot X"
,
"Right Foot Y"
,
"Right Foot Z"
,
"Right Foot dX"
,
"Right Foot dY"
,
"Right Foot dZ"
,
"Right Foot ddX"
,
"Right Foot ddY"
,
"Right Foot ddZ"
,
"Right Foot Theta"
,
"Right Foot Omega"
,
"Right Foot Omega2"
,
...
...
@@ -180,7 +192,7 @@ namespace PatternGeneratorJRL
"ZMP Y (world ref.)"
,
"Waist X (world ref.)"
,
"Waist Y (world ref.)"
};
for
(
unsigned
i
=
0
;
i
<
26
;
i
++
)
for
(
unsigned
i
=
0
;
i
<
38
;
i
++
)
aof
<<
i
+
1
<<
". "
<<
Titles
[
i
]
<<
std
::
endl
;
aof
.
close
();
...
...
@@ -216,26 +228,38 @@ namespace PatternGeneratorJRL
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
x
)
<<
" "
// 11
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
y
)
<<
" "
// 12
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
z
)
<<
" "
// 13
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
theta
)
<<
" "
// 14
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
omega
)
<<
" "
// 15
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
omega2
)
<<
" "
// 16
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
x
)
<<
" "
// 17
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
y
)
<<
" "
// 18
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
z
)
<<
" "
// 19
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
theta
)
<<
" "
// 20
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
omega
)
<<
" "
// 21
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
omega2
)
<<
" "
// 22
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
dx
)
<<
" "
// 14
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
dy
)
<<
" "
// 15
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
dz
)
<<
" "
// 16
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
ddx
)
<<
" "
// 17
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
ddy
)
<<
" "
// 18
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
ddz
)
<<
" "
// 19
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
theta
)
<<
" "
// 20
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
omega
)
<<
" "
// 21
<<
filterprecision
(
m_OneStep
.
LeftFootPosition
.
omega2
)
<<
" "
// 22
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
x
)
<<
" "
// 23
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
y
)
<<
" "
// 24
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
z
)
<<
" "
// 25
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
dx
)
<<
" "
// 26
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
dy
)
<<
" "
// 27
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
dz
)
<<
" "
// 28
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
ddx
)
<<
" "
// 29
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
ddy
)
<<
" "
// 30
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
ddz
)
<<
" "
// 31
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
theta
)
<<
" "
// 32
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
omega
)
<<
" "
// 33
<<
filterprecision
(
m_OneStep
.
RightFootPosition
.
omega2
)
<<
" "
// 34
<<
filterprecision
(
m_OneStep
.
ZMPTarget
(
0
)
*
cos
(
m_CurrentConfiguration
(
5
))
-
m_OneStep
.
ZMPTarget
(
1
)
*
sin
(
m_CurrentConfiguration
(
5
))
+
m_CurrentConfiguration
(
0
)
)
<<
" "
//
2
3
+
m_CurrentConfiguration
(
0
)
)
<<
" "
// 3
5
<<
filterprecision
(
m_OneStep
.
ZMPTarget
(
0
)
*
sin
(
m_CurrentConfiguration
(
5
))
+
m_OneStep
.
ZMPTarget
(
1
)
*
cos
(
m_CurrentConfiguration
(
5
))
+
m_CurrentConfiguration
(
1
)
)
<<
" "
//
24
<<
filterprecision
(
m_CurrentConfiguration
(
0
)
)
<<
" "
//
25
<<
filterprecision
(
m_CurrentConfiguration
(
1
)
)
<<
" "
//
26
+
m_CurrentConfiguration
(
1
)
)
<<
" "
//
36
<<
filterprecision
(
m_CurrentConfiguration
(
0
)
)
<<
" "
//
37
<<
filterprecision
(
m_CurrentConfiguration
(
1
)
)
<<
" "
//
38
<<
endl
;
aof
.
close
();
m_NbOfStoredVariables
=
26
;
m_NbOfStoredVariables
=
38
;
}
}
...
...
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