-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Paul Gesel <paulgesel@gmail.com>
- Loading branch information
Showing
15 changed files
with
136 additions
and
136 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,84 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
project(parallel_gripper_controller LANGUAGES CXX) | ||
|
||
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)") | ||
add_compile_options(-Wall -Wextra -Wpedantic -Werror=conversion -Werror=unused-but-set-variable | ||
-Werror=return-type -Werror=shadow -Werror=format) | ||
endif() | ||
|
||
set(THIS_PACKAGE_INCLUDE_DEPENDS | ||
control_msgs | ||
control_toolbox | ||
controller_interface | ||
generate_parameter_library | ||
hardware_interface | ||
pluginlib | ||
rclcpp | ||
rclcpp_action | ||
realtime_tools | ||
) | ||
|
||
find_package(ament_cmake REQUIRED) | ||
find_package(backward_ros REQUIRED) | ||
foreach(Dependency IN ITEMS ${THIS_PACKAGE_INCLUDE_DEPENDS}) | ||
find_package(${Dependency} REQUIRED) | ||
endforeach() | ||
|
||
generate_parameter_library(parallel_gripper_action_controller_parameters | ||
src/parallel_gripper_action_controller_parameters.yaml | ||
) | ||
|
||
add_library(parallel_gripper_action_controller SHARED | ||
src/parallel_gripper_action_controller.cpp | ||
) | ||
target_compile_features(parallel_gripper_action_controller PUBLIC cxx_std_17) | ||
target_include_directories(parallel_gripper_action_controller PUBLIC | ||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> | ||
$<INSTALL_INTERFACE:include/parallel_gripper_action_controller> | ||
) | ||
target_link_libraries(parallel_gripper_action_controller PUBLIC | ||
parallel_gripper_action_controller_parameters | ||
) | ||
ament_target_dependencies(parallel_gripper_action_controller PUBLIC ${THIS_PACKAGE_INCLUDE_DEPENDS}) | ||
|
||
pluginlib_export_plugin_description_file(controller_interface ros_control_plugins.xml) | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_cmake_gmock REQUIRED) | ||
find_package(controller_manager REQUIRED) | ||
find_package(ros2_control_test_assets REQUIRED) | ||
|
||
ament_add_gmock(test_load_parallel_gripper_action_controllers | ||
test/test_load_parallel_gripper_action_controller.cpp | ||
) | ||
ament_target_dependencies(test_load_parallel_gripper_action_controllers | ||
controller_manager | ||
ros2_control_test_assets | ||
) | ||
|
||
ament_add_gmock(test_parallel_gripper_controller | ||
test/test_parallel_gripper_controller.cpp | ||
) | ||
target_link_libraries(test_parallel_gripper_controller | ||
parallel_gripper_action_controller | ||
) | ||
endif() | ||
|
||
install( | ||
DIRECTORY include/ | ||
DESTINATION include/parallel_gripper_action_controller | ||
) | ||
install( | ||
TARGETS | ||
parallel_gripper_action_controller | ||
parallel_gripper_action_controller_parameters | ||
EXPORT export_parallel_gripper_action_controller | ||
RUNTIME DESTINATION bin | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib | ||
INCLUDES DESTINATION include | ||
) | ||
|
||
ament_export_targets(export_parallel_gripper_action_controller HAS_LIBRARY_TARGET) | ||
ament_export_dependencies(${THIS_PACKAGE_INCLUDE_DEPENDS}) | ||
ament_package() |
8 changes: 4 additions & 4 deletions
8
antipodal_gripper_controller/doc/userdoc.rst → parallel_gripper_controller/doc/userdoc.rst
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
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
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,10 @@ | ||
<library path="parallel_gripper_action_controller"> | ||
|
||
<class name="parallel_gripper_action_controller/GripperActionController" | ||
type="parallel_gripper_action_controller::GripperActionController" | ||
base_class_type="controller_interface::ControllerInterface"> | ||
<description> | ||
</description> | ||
</class> | ||
|
||
</library> |
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
Oops, something went wrong.