Commit e3448541 authored by Carlos Mastalli's avatar Carlos Mastalli
Browse files

[cmake] Changed installation path of robot data to match devel and install space

parent 2b81fbdc
Pipeline #6885 failed with stage
in 11 minutes and 10 seconds
......@@ -41,15 +41,15 @@ IF(BUILD_PYTHON_INTERFACE)
ENDIF(BUILD_PYTHON_INTERFACE)
IF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
INSTALL(DIRECTORY robots/anymal_b_simple_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/hyq_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/solo_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/icub_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/talos_data DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/kinova_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/tiago_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/ur_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/romeo_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/hector_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/double_pendulum_description DESTINATION share/${PROJECT_NAME})
INSTALL(DIRECTORY robots/anymal_b_simple_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/hyq_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/solo_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/icub_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/talos_data DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/kinova_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/tiago_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/ur_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/romeo_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/hector_description DESTINATION share/${PROJECT_NAME}/robots)
INSTALL(DIRECTORY robots/double_pendulum_description DESTINATION share/${PROJECT_NAME}/robots)
ENDIF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
......@@ -7,7 +7,7 @@ from pinocchio.robot_wrapper import RobotWrapper
def getModelPath(subpath, printmsg=False):
base = '../../../share/example-robot-data'
base = '../../../share/example-robot-data/robots'
main_dir = dirname(dirname(dirname(__file__)))
for path in [join(dirname(main_dir), 'robots'), join(main_dir, 'robots')
] + [join(p, base.strip('/')) for p in sys.path]:
......
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