Skip to content

Commit 4500331

Browse files
committed
Update bringup rviz files and fix linking issue
1 parent cbe6555 commit 4500331

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

nav2_bringup/bringup/rviz/nav2_default_view.rviz

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ Visualization Manager:
214214
Use Timestamp: false
215215
Value: true
216216
- Alpha: 1
217-
Class: nav2_rviz_plugins/ParticleCloudDisplay
217+
Class: nav2_rviz_plugins/ParticleCloud
218218
Color: 0; 180; 0
219219
Enabled: true
220-
Max Arrow Length: 0.10000000149011612
221-
Min Arrow Length: 0.019999999552965164
220+
Max Arrow Length: 0.3
221+
Min Arrow Length: 0.02
222222
Name: Amcl Particle Swarm
223223
Shape: Arrow (Flat)
224224
Topic:

nav2_bringup/bringup/rviz/nav2_namespaced_view.rviz

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ Visualization Manager:
164164
Use Timestamp: false
165165
Value: true
166166
- Alpha: 1
167-
Class: nav2_rviz_plugins/ParticleCloudDisplay
167+
Class: nav2_rviz_plugins/ParticleCloud
168168
Color: 0; 180; 0
169169
Enabled: true
170-
Max Arrow Length: 0.10000000149011612
171-
Min Arrow Length: 0.019999999552965164
170+
Max Arrow Length: 0.3
171+
Min Arrow Length: 0.02
172172
Name: Amcl Particle Swarm
173173
Shape: Arrow (Flat)
174174
Topic:

nav2_rviz_plugins/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ if(BUILD_TESTING)
151151
find_package(ament_cmake_gmock REQUIRED)
152152
find_package(ament_index_cpp REQUIRED)
153153
find_package(rviz_visual_testing_framework REQUIRED)
154+
find_package(rviz_default_plugins REQUIRED)
154155

155156
set(TEST_INCLUDE_DIRS
156157
${OGRE_INCLUDE_DIRS}
@@ -174,7 +175,9 @@ if(BUILD_TESTING)
174175
${SKIP_DISPLAY_TESTS})
175176
if(TARGET particle_cloud_display_test)
176177
target_include_directories(particle_cloud_display_test PUBLIC ${TEST_INCLUDE_DIRS})
177-
target_link_libraries(particle_cloud_display_test ${TEST_LINK_LIBRARIES})
178+
target_link_libraries(particle_cloud_display_test
179+
${TEST_LINK_LIBRARIES}
180+
rviz_common::rviz_common)
178181
ament_target_dependencies(particle_cloud_display_test ${TEST_TARGET_DEPENDENCIES})
179182
endif()
180183

@@ -204,6 +207,7 @@ ament_export_dependencies(
204207
nav_msgs
205208
nav2_msgs
206209
rclcpp
210+
rviz_default_plugins
207211
)
208212

209213
ament_package()

0 commit comments

Comments
 (0)