Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
loco-3d
Multicontact-api
Commits
aa9ad648
Commit
aa9ad648
authored
May 11, 2020
by
Pierre Fernbach
Browse files
Revert "[Tests][Python] update example test with the changes of trajectory used"
This reverts commit
31cc74a1
.
parent
6bf963a2
Changes
1
Show whitespace changes
Inline
Side-by-side
unittest/python/serialization_examples.py
View file @
aa9ad648
...
...
@@ -211,13 +211,13 @@ class ExamplesSerialization(unittest.TestCase):
def
test_walk_20cm
(
self
):
cs
=
ContactSequence
()
cs
.
loadFromBinary
(
str
(
PATH
/
"walk_20cm.cs"
))
self
.
assertEqual
(
cs
.
size
(),
15
)
self
.
assertEqual
(
cs
.
size
(),
23
)
self
.
assertTrue
(
cs
.
haveConsistentContacts
())
def
test_walk_20cm_COM
(
self
):
cs
=
ContactSequence
()
cs
.
loadFromBinary
(
str
(
PATH
/
"walk_20cm_COM.cs"
))
self
.
assertEqual
(
cs
.
size
(),
15
)
self
.
assertEqual
(
cs
.
size
(),
23
)
self
.
assertTrue
(
cs
.
haveConsistentContacts
())
self
.
assertTrue
(
cs
.
haveTimings
())
self
.
assertTrue
(
cs
.
haveCentroidalValues
())
...
...
@@ -227,18 +227,18 @@ class ExamplesSerialization(unittest.TestCase):
def
test_walk_20cm_REF
(
self
):
cs
=
ContactSequence
()
cs
.
loadFromBinary
(
str
(
PATH
/
"walk_20cm_REF.cs"
))
self
.
assertEqual
(
cs
.
size
(),
15
)
self
.
assertEqual
(
cs
.
size
(),
23
)
self
.
assertTrue
(
cs
.
haveConsistentContacts
())
self
.
assertTrue
(
cs
.
haveTimings
())
self
.
assertTrue
(
cs
.
haveCentroidalValues
())
self
.
assertTrue
(
cs
.
haveCentroidalTrajectories
())
self
.
assertTrue
(
cs
.
haveEffectorsTrajectories
(
1e-2
))
self
.
assertTrue
(
cs
.
haveEffectorsTrajectories
())
checkCS
(
self
,
cs
,
root
=
True
,
effector
=
True
,
wholeBody
=
False
)
def
test_walk_20cm_WB
(
self
):
cs
=
ContactSequence
()
cs
.
loadFromBinary
(
str
(
PATH
/
"walk_20cm_WB.cs"
))
self
.
assertEqual
(
cs
.
size
(),
15
)
self
.
assertEqual
(
cs
.
size
(),
23
)
self
.
assertTrue
(
cs
.
haveConsistentContacts
())
self
.
assertTrue
(
cs
.
haveTimings
())
self
.
assertTrue
(
cs
.
haveCentroidalValues
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment