Skip to content

Commit

Permalink
switching to new cmake function
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeWrock committed Nov 28, 2024
1 parent 632bc53 commit 328b0f7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 26 deletions.
5 changes: 5 additions & 0 deletions src/fanuc_sim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ cmake_minimum_required(VERSION 3.22)
project(fanuc_sim)

find_package(ament_cmake REQUIRED)
find_package(picknik_accessories REQUIRED)

install_picknik_accessories(
DESTINATION "share/${PROJECT_NAME}/description"
)

install(
DIRECTORY
config
Expand Down
1 change: 1 addition & 0 deletions src/fanuc_sim/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>picknik_accessories</depend>
<exec_depend>admittance_controller</exec_depend>
<exec_depend>kinematics_interface_kdl</exec_depend>
<exec_depend>moveit_planners_stomp</exec_depend>
Expand Down
26 changes: 2 additions & 24 deletions src/lab_sim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,10 @@ cmake_minimum_required(VERSION 3.22)
project(lab_sim)

find_package(ament_cmake REQUIRED)
find_package(picknik_accessories REQUIRED)


# Install all XML files in directory
set(PICKNIK_ACCESSORIES_SHARE_DIR
"${CMAKE_INSTALL_PREFIX}/../picknik_accessories/share/picknik_accessories/mujoco_assets/"
install_picknik_accessories(
DESTINATION "share/${PROJECT_NAME}/description"
)
# Destination directory
set(DEST_DIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/description/")

install(DIRECTORY "${PICKNIK_ACCESSORIES_SHARE_DIR}"
DESTINATION "${DEST_DIR}"
FILES_MATCHING PATTERN "*")

# Install individual XML files
# set(EXTERNAL_XML_FILES
# "${PICKNIK_ACCESSORIES_SHARE_DIR}/ur5e/ur5e_globals.xml"
# "${PICKNIK_ACCESSORIES_SHARE_DIR}/ur5e/ur5e.xml"
# # Add additional files here if desired
# )
# foreach(xml_file IN LISTS EXTERNAL_XML_FILES)
# install(FILES "${xml_file}"
# DESTINATION "${DEST_DIR}"
# )
# endforeach()

install(
DIRECTORY
config
Expand Down
2 changes: 1 addition & 1 deletion src/lab_sim/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>picknik_accessories</depend>
<exec_depend>admittance_controller</exec_depend>
<exec_depend>moveit_planners_stomp</exec_depend>
<exec_depend>moveit_ros_perception</exec_depend>
<exec_depend>moveit_studio_agent</exec_depend>
<exec_depend>moveit_studio_behavior</exec_depend>
<exec_depend>moveit_studio_ur_pstop_manager</exec_depend>
<exec_depend>picknik_accessories</exec_depend>
<exec_depend>realsense2_camera</exec_depend>
<exec_depend>realsense2_description</exec_depend>
<exec_depend>robotiq_description</exec_depend>
Expand Down

0 comments on commit 328b0f7

Please sign in to comment.