-
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.
Update configuration for the examples package
- Loading branch information
1 parent
11fb36a
commit c30e301
Showing
4 changed files
with
128 additions
and
43 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
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() | ||
|
Empty file.
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> |
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