Commit c684fdaa authored by Olivier Stasse's avatar Olivier Stasse
Browse files

Fix installation path for tests scripts

Uses talos-data instead of talos_description to find urdf file.
parent b06bc6d7
...@@ -78,7 +78,7 @@ IF(TALOS_DATA_FOUND) ...@@ -78,7 +78,7 @@ IF(TALOS_DATA_FOUND)
INSTALL(FILES INSTALL(FILES
${PROJECT_BINARY_DIR}/tests/${py_filename}.py ${PROJECT_BINARY_DIR}/tests/${py_filename}.py
DESTINATION DESTINATION
${CMAKE_INSTALL_PREFIX}/${PROJECT_NAME}/tests ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/tests
) )
ENDFOREACH(py_filename) ENDFOREACH(py_filename)
ENDIF(TALOS_DATA_FOUND) ENDIF(TALOS_DATA_FOUND)
......
...@@ -81,8 +81,8 @@ class Talos(AbstractHumanoidRobot): ...@@ -81,8 +81,8 @@ class Talos(AbstractHumanoidRobot):
from rospkg import RosPack from rospkg import RosPack
rospack = RosPack() rospack = RosPack()
urdfPath = rospack.get_path('talos_description')+"/robots/talos_reduced.urdf" urdfPath = rospack.get_path('talos_data')+"/robots/talos_reduced.urdf"
urdfDir = [rospack.get_path('talos_description')+"/../"] urdfDir = [rospack.get_path('talos_data')+"/../"]
# Create a wrapper to access the dynamic model provided through an urdf file. # Create a wrapper to access the dynamic model provided through an urdf file.
from pinocchio.robot_wrapper import RobotWrapper from pinocchio.robot_wrapper import RobotWrapper
......
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