Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
example-robot-data
Commits
2a45f195
Commit
2a45f195
authored
Aug 28, 2019
by
Carlos Mastalli
Browse files
[unittest] Import the entire example_robot_data module
parent
b7a633cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
unittest/test_load.py
View file @
2a45f195
#!/usr/bin/env python2
import
unittest
from
example_robot_data
import
loadHyQ
,
loadICub
,
loadTalos
,
loadTalosArm
,
loadTiago
,
loadTiagoNoHand
import
example_robot_data
class
RobotTestCase
(
unittest
.
TestCase
):
...
...
@@ -23,43 +22,43 @@ class RobotTestCase(unittest.TestCase):
class
TalosArmTest
(
RobotTestCase
):
RobotTestCase
.
ROBOT
=
loadTalosArm
()
RobotTestCase
.
ROBOT
=
example_robot_data
.
loadTalosArm
()
RobotTestCase
.
NQ
=
7
RobotTestCase
.
NV
=
7
class
TalosArmFloatingTest
(
RobotTestCase
):
RobotTestCase
.
ROBOT
=
loadTalosArm
()
RobotTestCase
.
ROBOT
=
example_robot_data
.
loadTalosArm
()
RobotTestCase
.
NQ
=
14
RobotTestCase
.
NV
=
13
class
TalosTest
(
RobotTestCase
):
RobotTestCase
.
ROBOT
=
loadTalos
()
RobotTestCase
.
ROBOT
=
example_robot_data
.
loadTalos
()
RobotTestCase
.
NQ
=
39
RobotTestCase
.
NV
=
38
class
HyQTest
(
RobotTestCase
):
RobotTestCase
.
ROBOT
=
loadHyQ
()
RobotTestCase
.
ROBOT
=
example_robot_data
.
loadHyQ
()
RobotTestCase
.
NQ
=
19
RobotTestCase
.
NV
=
18
class
TiagoTest
(
RobotTestCase
):
RobotTestCase
.
ROBOT
=
loadTiago
()
RobotTestCase
.
ROBOT
=
example_robot_data
.
loadTiago
()
RobotTestCase
.
NQ
=
50
RobotTestCase
.
NV
=
48
class
TiagoNoHandTest
(
RobotTestCase
):
RobotTestCase
.
ROBOT
=
loadTiagoNoHand
()
RobotTestCase
.
ROBOT
=
example_robot_data
.
loadTiagoNoHand
()
RobotTestCase
.
NQ
=
14
RobotTestCase
.
NV
=
12
class
ICubTest
(
RobotTestCase
):
RobotTestCase
.
ROBOT
=
loadICub
(
reduced
=
False
)
RobotTestCase
.
ROBOT
=
example_robot_data
.
loadICub
(
reduced
=
False
)
RobotTestCase
.
NQ
=
39
RobotTestCase
.
NV
=
38
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment