Commit 48c539c0 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[tests] use example_robot_data.load_full to get urdf path

parent 526105e5
......@@ -36,7 +36,7 @@ ADD_PROJECT_DEPENDENCY(sot-tools REQUIRED)
IF(BUILD_TESTING)
FIND_PACKAGE(Boost REQUIRED COMPONENTS unit_test_framework)
ADD_PROJECT_DEPENDENCY(example-robot-data)
ADD_PROJECT_DEPENDENCY(example-robot-data 3.8.0 REQUIRED)
ENDIF(BUILD_TESTING)
IF(BUILD_PYTHON_INTERFACE)
......
......@@ -8,6 +8,8 @@ import numpy as np
from dynamic_graph.sot.dynamic_pinocchio import DynamicPinocchio
from dynamic_graph.sot.dynamic_pinocchio.humanoid_robot import AbstractHumanoidRobot
from example_robot_data import load_full
class Robot(AbstractHumanoidRobot):
def __init__(self, name, urdfString=None, urdfFile=None):
......@@ -26,10 +28,9 @@ class Robot(AbstractHumanoidRobot):
class HumanoidRobotTest(unittest.TestCase):
def setUp(self):
from example_robot_data.path import EXAMPLE_ROBOT_DATA_MODEL_DIR
self.urdf_file_name = EXAMPLE_ROBOT_DATA_MODEL_DIR + \
'/talos_data/robots/talos_reduced.urdf'
self.name = "talos"
_, _, urdf, _ = load_full(self.name)
self.urdf_file_name = urdf
def test_non_instanciable_robot(self):
class NonInstanciableRobot(AbstractHumanoidRobot):
......
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