-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from SCHUNK-SE-Co-KG/fix-package-layout
Fix the overall package layout
- Loading branch information
Showing
43 changed files
with
479 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
cmake_minimum_required(VERSION 3.22) | ||
project(schunk_egu_egk_gripper_driver) | ||
|
||
# Set C++ standard to 17 if not set | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 17) | ||
endif() | ||
|
||
# Compiler-specific options | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
# Find required packages | ||
find_package(schunk_egu_egk_gripper_library REQUIRED) | ||
find_package(schunk_egu_egk_gripper_interfaces REQUIRED) | ||
find_package(ament_cmake REQUIRED) | ||
find_package(ament_index_cpp REQUIRED) | ||
find_package(rclcpp REQUIRED) | ||
find_package(rclcpp_components REQUIRED) | ||
find_package(rclcpp_action REQUIRED) | ||
find_package(diagnostic_updater REQUIRED) | ||
find_package(sensor_msgs REQUIRED) | ||
find_package(control_msgs REQUIRED) | ||
find_package(diagnostic_msgs REQUIRED) | ||
|
||
|
||
#-------------------------------------------------------------------------------- | ||
# Build | ||
#-------------------------------------------------------------------------------- | ||
|
||
add_library(${PROJECT_NAME} SHARED | ||
src/schunk_gripper_wrapper.cpp | ||
) | ||
target_include_directories(${PROJECT_NAME} PUBLIC | ||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:include> | ||
) | ||
ament_target_dependencies(${PROJECT_NAME} | ||
rclcpp | ||
sensor_msgs | ||
control_msgs | ||
rclcpp_action | ||
rclcpp_components | ||
diagnostic_updater | ||
diagnostic_msgs | ||
schunk_egu_egk_gripper_interfaces | ||
) | ||
target_link_libraries(${PROJECT_NAME} | ||
Schunk::schunk_egu_egk_gripper_library | ||
) | ||
|
||
#-------------------------------------------------------------------------------- | ||
# Install | ||
#-------------------------------------------------------------------------------- | ||
install(TARGETS ${PROJECT_NAME} | ||
DESTINATION lib/${PROJECT_NAME}) | ||
|
||
install( | ||
DIRECTORY launch | ||
DESTINATION share/${PROJECT_NAME} | ||
) | ||
|
||
#-------------------------------------------------------------------------------- | ||
# Test | ||
#-------------------------------------------------------------------------------- | ||
if(BUILD_TESTING) | ||
endif() | ||
|
||
# Ament package configuration | ||
ament_package() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0"?> | ||
<package format="3"> | ||
<name>schunk_egu_egk_gripper_driver</name> | ||
<version>1.0.0</version> | ||
<description>ROS2 driver for Schunk's EGU/EGK grippers</description> | ||
<author>Viktora Krimer</author> | ||
<author>Fabian Reinwald</author> | ||
<maintainer email="[email protected]">Stefan Scherzinger</maintainer> | ||
|
||
<license>todo</license> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
||
<depend>schunk_egu_egk_gripper_library</depend> | ||
<depend>schunk_egu_egk_gripper_interfaces</depend> | ||
<depend>ament_index_cpp</depend> | ||
<depend>diagnostic_updater</depend> | ||
<depend>rclcpp</depend> | ||
<depend>rclcpp_action</depend> | ||
<depend>rclcpp_components</depend> | ||
<depend>control_msgs</depend> | ||
<depend>sensor_msgs</depend> | ||
|
||
<exec_depend>ros2launch</exec_depend> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
|
||
</package> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
cmake_minimum_required(VERSION 3.22) | ||
project(schunk_egu_egk_gripper_examples) | ||
|
||
# Set C++ standard to 17 if not set | ||
if(NOT CMAKE_CXX_STANDARD) | ||
set(CMAKE_CXX_STANDARD 17) | ||
endif() | ||
|
||
# Compiler-specific options | ||
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
add_compile_options(-Wall -Wextra -Wpedantic) | ||
endif() | ||
|
||
# Find required packages | ||
find_package(schunk_egu_egk_gripper_interfaces REQUIRED) | ||
find_package(ament_cmake REQUIRED) | ||
find_package(rclcpp REQUIRED) | ||
find_package(rclcpp_action REQUIRED) | ||
find_package(sensor_msgs REQUIRED) | ||
find_package(control_msgs REQUIRED) | ||
find_package(diagnostic_msgs REQUIRED) | ||
|
||
#-------------------------------------------------------------------------------- | ||
# Build | ||
#-------------------------------------------------------------------------------- | ||
|
||
# Example | ||
add_executable(${PROJECT_NAME} | ||
src/gripper_example.cpp | ||
) | ||
ament_target_dependencies(${PROJECT_NAME} | ||
schunk_egu_egk_gripper_interfaces | ||
rclcpp | ||
sensor_msgs | ||
control_msgs | ||
rclcpp_action | ||
diagnostic_msgs | ||
) | ||
|
||
#-------------------------------------------------------------------------------- | ||
# Install | ||
#-------------------------------------------------------------------------------- | ||
install(TARGETS | ||
${PROJECT_NAME} | ||
DESTINATION lib/${PROJECT_NAME} | ||
) | ||
|
||
#-------------------------------------------------------------------------------- | ||
# Test | ||
#-------------------------------------------------------------------------------- | ||
if(BUILD_TESTING) | ||
endif() | ||
|
||
# Ament package configuration | ||
ament_package() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0"?> | ||
<package format="3"> | ||
<name>schunk_egu_egk_gripper_examples</name> | ||
<version>1.0.0</version> | ||
<description>Example node for Schunk's EGU/EGK driver interfaces</description> | ||
<author>Viktora Krimer</author> | ||
<author>Fabian Reinwald</author> | ||
<maintainer email="[email protected]">Stefan Scherzinger</maintainer> | ||
|
||
<license>todo</license> | ||
|
||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
||
<depend>schunk_egu_egk_gripper_interfaces</depend> | ||
<depend>diagnostic_updater</depend> | ||
<depend>rclcpp</depend> | ||
<depend>rclcpp_action</depend> | ||
<depend>rclcpp_components</depend> | ||
<depend>control_msgs</depend> | ||
<depend>sensor_msgs</depend> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
|
||
</package> |
Oops, something went wrong.