@@ -85,83 +85,49 @@ set(dependencies
85
85
tf2_geometry_msgs
86
86
)
87
87
88
- set (nav2_rviz_plugins_goal_headers_to_moc
88
+ set (nav2_rviz_plugins_headers_to_moc
89
89
include /nav2_rviz_plugins/ros_action_qevent.hpp
90
90
include /nav2_rviz_plugins/goal_pose_updater
91
91
include /nav2_rviz_plugins/goal_common
92
92
include /nav2_rviz_plugins/goal_tool.hpp
93
93
include /nav2_rviz_plugins/nav2_panel.hpp
94
+ include /nav2_rviz_plugins/particle_cloud_display/flat_weighted_arrows_array.hpp
95
+ include /nav2_rviz_plugins/particle_cloud_display/particle_cloud_display.hpp
94
96
)
95
97
96
- add_library (nav2_rviz_plugins_goal SHARED
98
+ add_library (nav2_rviz_plugins SHARED
97
99
src/goal_tool.cpp
98
100
src/nav2_panel.cpp
99
- ${nav2_rviz_plugins_goal_headers_to_moc}
101
+ src/particle_cloud_display/flat_weighted_arrows_array.cpp
102
+ src/particle_cloud_display/particle_cloud_display.cpp
103
+ ${nav2_rviz_plugins_headers_to_moc}
100
104
)
101
105
102
- ament_target_dependencies(nav2_rviz_plugins_goal
106
+ ament_target_dependencies(nav2_rviz_plugins
103
107
${dependencies}
104
108
)
105
109
106
- target_include_directories (nav2_rviz_plugins_goal PUBLIC
110
+ target_include_directories (nav2_rviz_plugins PUBLIC
107
111
${Qt5Widgets_INCLUDE_DIRS}
108
112
${OGRE_INCLUDE_DIRS}
109
113
)
110
114
111
- target_link_libraries (nav2_rviz_plugins_goal
115
+ target_link_libraries (nav2_rviz_plugins
112
116
rviz_common::rviz_common
113
117
)
114
118
115
-
116
- set (nav2_rviz_plugins_particle_cloud_display_headers_to_moc
117
- include /nav2_rviz_plugins/particle_cloud_display/flat_weighted_arrows_array.hpp
118
- include /nav2_rviz_plugins/particle_cloud_display/particle_cloud_display.hpp
119
- )
120
-
121
119
# Causes the visibility macros to use dllexport rather than dllimport,
122
120
# which is appropriate when building the dll but not consuming it.
123
121
# TODO: Make this specific to this project (not rviz default plugins)
124
- target_compile_definitions (nav2_rviz_plugins_goal PRIVATE "RVIZ_DEFAULT_PLUGINS_BUILDING_LIBRARY" )
122
+ target_compile_definitions (nav2_rviz_plugins PRIVATE "RVIZ_DEFAULT_PLUGINS_BUILDING_LIBRARY" )
125
123
# prevent pluginlib from using boost
126
- target_compile_definitions (nav2_rviz_plugins_goal PUBLIC "PLUGINLIB__DISABLE_BOOST_FUNCTIONS" )
127
-
128
-
129
- add_library (nav2_rviz_plugins_particle_cloud_display SHARED
130
- src/particle_cloud_display/flat_weighted_arrows_array.cpp
131
- src/particle_cloud_display/particle_cloud_display.cpp
132
- ${nav2_rviz_plugins_particle_cloud_display_headers_to_moc}
133
- )
134
-
135
- ament_target_dependencies(nav2_rviz_plugins_particle_cloud_display
136
- ${dependencies}
137
- )
138
-
139
- target_include_directories (nav2_rviz_plugins_particle_cloud_display PUBLIC
140
- ${Qt5Widgets_INCLUDE_DIRS}
141
- ${OGRE_INCLUDE_DIRS}
142
- )
143
-
144
- target_link_libraries (nav2_rviz_plugins_particle_cloud_display
145
- rviz_common::rviz_common
146
- )
147
-
148
- target_compile_definitions (nav2_rviz_plugins_particle_cloud_display PRIVATE "RVIZ_DEFAULT_PLUGINS_BUILDING_LIBRARY" )
149
- target_compile_definitions (nav2_rviz_plugins_particle_cloud_display PUBLIC "PLUGINLIB__DISABLE_BOOST_FUNCTIONS" )
124
+ target_compile_definitions (nav2_rviz_plugins PUBLIC "PLUGINLIB__DISABLE_BOOST_FUNCTIONS" )
150
125
151
126
pluginlib_export_plugin_description_file(rviz_common plugins_description.xml)
152
127
153
128
install (
154
- TARGETS nav2_rviz_plugins_goal
155
- EXPORT nav2_rviz_plugins_goal
156
- ARCHIVE DESTINATION lib
157
- LIBRARY DESTINATION lib
158
- RUNTIME DESTINATION bin
159
- INCLUDES DESTINATION include
160
- )
161
-
162
- install (
163
- TARGETS nav2_rviz_plugins_particle_cloud_display
164
- EXPORT nav2_rviz_plugins_particle_cloud_display
129
+ TARGETS nav2_rviz_plugins
130
+ EXPORT nav2_rviz_plugins
165
131
ARCHIVE DESTINATION lib
166
132
LIBRARY DESTINATION lib
167
133
RUNTIME DESTINATION bin
@@ -183,8 +149,10 @@ if(BUILD_TESTING)
183
149
find_package (ament_cmake_gmock REQUIRED)
184
150
find_package (ament_index_cpp REQUIRED)
185
151
find_package (rviz_visual_testing_framework REQUIRED)
186
- find_package (rviz_common REQUIRED)
187
152
find_package (nav2_msgs REQUIRED)
153
+ find_package (rclcpp REQUIRED)
154
+ find_package (rviz_common REQUIRED)
155
+ find_package (rviz_default_plugins REQUIRED)
188
156
189
157
set (TEST_INCLUDE_DIRS
190
158
${OGRE_INCLUDE_DIRS}
@@ -193,13 +161,14 @@ if(BUILD_TESTING)
193
161
ament_include_directories_order(TEST_INCLUDE_DIRS ${TEST_INCLUDE_DIRS} )
194
162
195
163
set (TEST_LINK_LIBRARIES
196
- nav2_rviz_plugins_particle_cloud_display
164
+ nav2_rviz_plugins
197
165
)
198
166
199
167
set (TEST_TARGET_DEPENDENCIES
200
168
nav2_msgs
201
- rviz_common
202
169
rclcpp
170
+ rviz_common
171
+ rviz_default_plugins
203
172
)
204
173
205
174
ament_add_gmock(particle_cloud_display_test
@@ -232,17 +201,23 @@ if(BUILD_TESTING)
232
201
endif ()
233
202
234
203
ament_export_include_directories(include )
235
- ament_export_interfaces(nav2_rviz_plugins_goal HAS_LIBRARY_TARGET)
236
- ament_export_interfaces(nav2_rviz_plugins_particle_cloud_display HAS_LIBRARY_TARGET)
204
+ ament_export_interfaces(nav2_rviz_plugins HAS_LIBRARY_TARGET)
237
205
ament_export_dependencies(
238
- Qt5
239
- rviz_common
240
206
geometry_msgs
241
- map_msgs
242
- nav_msgs
207
+ nav2_util
243
208
nav2_msgs
209
+ nav_msgs
210
+ Qt5
244
211
rclcpp
212
+ rviz_common
245
213
rviz_default_plugins
214
+ rviz_ogre_vendor
215
+ rviz_rendering
216
+ std_msgs
217
+ tf2_geometry_msgs
218
+ visualization_msgs
219
+ pluginlib
220
+ rclcpp_lifecycle
246
221
)
247
222
248
223
ament_package()
0 commit comments