@@ -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
@@ -184,6 +150,7 @@ if(BUILD_TESTING)
184
150
find_package (ament_index_cpp REQUIRED)
185
151
find_package (rviz_visual_testing_framework REQUIRED)
186
152
find_package (rviz_common REQUIRED)
153
+ find_package (rviz_default_plugins REQUIRED)
187
154
find_package (nav2_msgs REQUIRED)
188
155
189
156
set (TEST_INCLUDE_DIRS
@@ -193,12 +160,14 @@ if(BUILD_TESTING)
193
160
ament_include_directories_order(TEST_INCLUDE_DIRS ${TEST_INCLUDE_DIRS} )
194
161
195
162
set (TEST_LINK_LIBRARIES
196
- nav2_rviz_plugins_particle_cloud_display
163
+ nav2_rviz_plugins
164
+ rviz_common::rviz_common
197
165
)
198
166
199
167
set (TEST_TARGET_DEPENDENCIES
200
168
nav2_msgs
201
169
rviz_common
170
+ rviz_default_plugins
202
171
rclcpp
203
172
)
204
173
@@ -232,8 +201,7 @@ 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
206
Qt5
239
207
rviz_common
0 commit comments