Commit 692526bf authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

test details

parent 7a87520a
Pipeline #16252 failed with stage
in 45 seconds
......@@ -12,13 +12,12 @@ class TestTalosWalkContact(unittest.TestCase):
def test_talos_walk_contacts(self):
with ServerManager('hpp-rbprm-server'):
module_scenario = import_module(PATH + ".talos_flatGround")
if not hasattr(module_scenario, 'ContactGenerator'):
self.assertTrue(False)
self.assertTrue(hasattr(module_scenario, 'ContactGenerator'))
ContactGenerator = getattr(module_scenario, 'ContactGenerator')
cg = ContactGenerator()
cg.run()
self.assertTrue(len(cg.configs) > 5)
self.assertTrue(len(cg.configs) < 10)
self.assertGreater(len(cg.configs), 5)
self.assertLess(len(cg.configs), 10)
self.assertEqual(cg.q_init, cg.configs[0])
self.assertEqual(cg.q_goal, cg.configs[-1])
......
......@@ -13,15 +13,14 @@ class TestTalosWalkPath(unittest.TestCase):
def test_talos_walk_path(self):
with ServerManager('hpp-rbprm-server'):
module_scenario = import_module(PATH + ".talos_flatGround_path")
if not hasattr(module_scenario, 'PathPlanner'):
self.assertTrue(False)
self.assertTrue(hasattr(module_scenario, 'PathPlanner'))
PathPlanner = getattr(module_scenario, 'PathPlanner')
planner = PathPlanner()
planner.run()
ps = planner.ps
self.assertEqual(ps.numberPaths(), 1)
self.assertTrue(ps.pathLength(0) > 6.)
self.assertTrue(ps.pathLength(0) < 7.)
self.assertGreater(ps.pathLength(0), 6.)
self.assertLess(ps.pathLength(0), 7.)
self.assertEqual(planner.q_init, ps.configAtParam(0, 0))
self.assertEqual(planner.q_goal, ps.configAtParam(0, ps.pathLength(0)))
......
Markdown is supported
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