Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
example-robot-data
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
Show more breadcrumbs
Gepetto
example-robot-data
Commits
255c3a52
Commit
255c3a52
authored
2 years ago
by
Guilhem Saurel
Browse files
Options
Downloads
Patches
Plain Diff
allegro has no mass informations
parent
610e48d9
No related branches found
No related tags found
No related merge requests found
Pipeline
#24300
passed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
unittest/test_load.py
+4
-4
4 additions, 4 deletions
unittest/test_load.py
with
4 additions
and
4 deletions
unittest/test_load.py
+
4
−
4
View file @
255c3a52
...
...
@@ -11,13 +11,13 @@ from example_robot_data import load_full
class
RobotTestCase
(
unittest
.
TestCase
):
def
check
(
self
,
name
,
expected_nq
,
expected_nv
,
one_kg_bodies
=
[]):
def
check
(
self
,
name
,
expected_nq
,
expected_nv
,
one_kg_bodies
=
[]
,
mass
=
True
):
"""
Helper function for the real tests
"""
robot
,
_
,
urdf
,
_
=
load_full
(
name
,
display
=
False
)
self
.
assertEqual
(
robot
.
model
.
nq
,
expected_nq
)
self
.
assertEqual
(
robot
.
model
.
nv
,
expected_nv
)
self
.
assertTrue
(
hasattr
(
robot
,
"
q0
"
))
if
pybullet
:
if
pybullet
and
mass
:
self
.
check_pybullet
(
urdf
,
one_kg_bodies
)
def
check_pybullet
(
self
,
urdf
,
one_kg_bodies
):
...
...
@@ -90,10 +90,10 @@ class RobotTestCase(unittest.TestCase):
self
.
check
(
"
panda
"
,
9
,
9
)
def
test_allegro_right
(
self
):
self
.
check
(
"
allegro_right_hand
"
,
16
,
16
)
self
.
check
(
"
allegro_right_hand
"
,
16
,
16
,
mass
=
False
)
def
test_allegro_left
(
self
):
self
.
check
(
"
allegro_left_hand
"
,
16
,
16
)
self
.
check
(
"
allegro_left_hand
"
,
16
,
16
,
mass
=
False
)
def
test_romeo
(
self
):
self
.
check
(
"
romeo
"
,
62
,
61
)
...
...
This diff is collapsed.
Click to expand it.
Guilhem Saurel
@gsaurel
mentioned in commit
3ea12bd7
·
2 years ago
mentioned in commit
3ea12bd7
mentioned in commit 3ea12bd7d66f4861b7aa1824eb8f1de1af6ecd0f
Toggle commit list
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