Skip to content

Commit 532f2d1

Browse files
authored
Merge pull request #667 from JdeRobot/gripper-pick-place-gz
Fix gripper pick place gz harmonic
2 parents 79fe08c + 0b8f995 commit 532f2d1

12 files changed

Lines changed: 964 additions & 3 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
cmake_minimum_required(VERSION 3.8)
2+
project(gz_link_attacher)
3+
4+
if(NOT CMAKE_CXX_STANDARD)
5+
set(CMAKE_CXX_STANDARD 17)
6+
endif()
7+
8+
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
9+
add_compile_options(-Wall -Wextra -Wpedantic)
10+
endif()
11+
12+
############################
13+
# Dependencies
14+
############################
15+
16+
find_package(ament_cmake REQUIRED)
17+
find_package(rclcpp REQUIRED)
18+
19+
find_package(gz-sim8 REQUIRED)
20+
find_package(gz-plugin2 REQUIRED)
21+
22+
find_package(linkattacher_msgs REQUIRED)
23+
24+
############################
25+
# Plugin library
26+
############################
27+
28+
add_library(gz_link_attacher SHARED
29+
src/gz_link_attacher.cpp
30+
)
31+
32+
target_link_libraries(gz_link_attacher
33+
gz-sim8::gz-sim8
34+
gz-plugin2::gz-plugin2
35+
)
36+
37+
ament_target_dependencies(gz_link_attacher
38+
rclcpp
39+
linkattacher_msgs
40+
)
41+
42+
############################
43+
# Install plugin
44+
############################
45+
46+
install(
47+
TARGETS gz_link_attacher
48+
LIBRARY DESTINATION lib
49+
)
50+
51+
############################
52+
# Environment hook (.dsv)
53+
############################
54+
55+
install(
56+
FILES env-hooks/gz_link_attacher.dsv
57+
DESTINATION share/${PROJECT_NAME}/environment
58+
)
59+
60+
############################
61+
# Export
62+
############################
63+
64+
ament_export_libraries(gz_link_attacher)
65+
66+
ament_export_dependencies(
67+
gz-sim8
68+
gz-plugin2
69+
)
70+
71+
ament_package()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prepend-non-duplicate;GZ_SIM_SYSTEM_PLUGIN_PATH;lib
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0"?>
2+
<package format="3">
3+
4+
<name>gz_link_attacher</name>
5+
<version>0.0.1</version>
6+
7+
<description>Gazebo Harmonic Link Attacher</description>
8+
9+
<maintainer email="dev@todo.com">dev</maintainer>
10+
11+
<license>Apache-2.0</license>
12+
13+
<buildtool_depend>ament_cmake</buildtool_depend>
14+
15+
<depend>rclcpp</depend>
16+
17+
<depend>gz-sim</depend>
18+
19+
<depend>linkattacher_msgs</depend>
20+
21+
<export>
22+
<build_type>ament_cmake</build_type>
23+
</export>
24+
25+
</package>

0 commit comments

Comments
 (0)