Commit 2a45f195 authored by Carlos Mastalli's avatar Carlos Mastalli
Browse files

[unittest] Import the entire example_robot_data module

parent b7a633cc
#!/usr/bin/env python2 #!/usr/bin/env python2
import unittest import unittest
import example_robot_data
from example_robot_data import loadHyQ, loadICub, loadTalos, loadTalosArm, loadTiago, loadTiagoNoHand
class RobotTestCase(unittest.TestCase): class RobotTestCase(unittest.TestCase):
...@@ -23,43 +22,43 @@ class RobotTestCase(unittest.TestCase): ...@@ -23,43 +22,43 @@ class RobotTestCase(unittest.TestCase):
class TalosArmTest(RobotTestCase): class TalosArmTest(RobotTestCase):
RobotTestCase.ROBOT = loadTalosArm() RobotTestCase.ROBOT = example_robot_data.loadTalosArm()
RobotTestCase.NQ = 7 RobotTestCase.NQ = 7
RobotTestCase.NV = 7 RobotTestCase.NV = 7
class TalosArmFloatingTest(RobotTestCase): class TalosArmFloatingTest(RobotTestCase):
RobotTestCase.ROBOT = loadTalosArm() RobotTestCase.ROBOT = example_robot_data.loadTalosArm()
RobotTestCase.NQ = 14 RobotTestCase.NQ = 14
RobotTestCase.NV = 13 RobotTestCase.NV = 13
class TalosTest(RobotTestCase): class TalosTest(RobotTestCase):
RobotTestCase.ROBOT = loadTalos() RobotTestCase.ROBOT = example_robot_data.loadTalos()
RobotTestCase.NQ = 39 RobotTestCase.NQ = 39
RobotTestCase.NV = 38 RobotTestCase.NV = 38
class HyQTest(RobotTestCase): class HyQTest(RobotTestCase):
RobotTestCase.ROBOT = loadHyQ() RobotTestCase.ROBOT = example_robot_data.loadHyQ()
RobotTestCase.NQ = 19 RobotTestCase.NQ = 19
RobotTestCase.NV = 18 RobotTestCase.NV = 18
class TiagoTest(RobotTestCase): class TiagoTest(RobotTestCase):
RobotTestCase.ROBOT = loadTiago() RobotTestCase.ROBOT = example_robot_data.loadTiago()
RobotTestCase.NQ = 50 RobotTestCase.NQ = 50
RobotTestCase.NV = 48 RobotTestCase.NV = 48
class TiagoNoHandTest(RobotTestCase): class TiagoNoHandTest(RobotTestCase):
RobotTestCase.ROBOT = loadTiagoNoHand() RobotTestCase.ROBOT = example_robot_data.loadTiagoNoHand()
RobotTestCase.NQ = 14 RobotTestCase.NQ = 14
RobotTestCase.NV = 12 RobotTestCase.NV = 12
class ICubTest(RobotTestCase): class ICubTest(RobotTestCase):
RobotTestCase.ROBOT = loadICub(reduced=False) RobotTestCase.ROBOT = example_robot_data.loadICub(reduced=False)
RobotTestCase.NQ = 39 RobotTestCase.NQ = 39
RobotTestCase.NV = 38 RobotTestCase.NV = 38
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment