From 890ca64d4a1669c3af764d3e224534493e6f394b Mon Sep 17 00:00:00 2001 From: chapulina Date: Sat, 10 Aug 2019 22:24:54 -0700 Subject: [PATCH] fix video test Signed-off-by: chapulina --- gazebo_plugins/test/test_gazebo_ros_video.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gazebo_plugins/test/test_gazebo_ros_video.cpp b/gazebo_plugins/test/test_gazebo_ros_video.cpp index 511e17370..6b43b35a4 100644 --- a/gazebo_plugins/test/test_gazebo_ros_video.cpp +++ b/gazebo_plugins/test/test_gazebo_ros_video.cpp @@ -54,7 +54,8 @@ TEST_F(GazeboRosVideoTest, VideoSubscribeTest) model_vis = scene->GetVisual("box_display"); link_vis = scene->GetVisual("box_display::base_link"); visual_vis = scene->GetVisual("box_display::base_link::visual"); - video_vis = scene->GetVisual("box_display::base_link::visual::video_visual"); + video_vis = scene->GetVisual( + "box_display::base_link::visual::video_visual::display_video_controller"); gazebo::common::Time::MSleep(100); } EXPECT_LT(sleep, max_sleep); @@ -98,7 +99,8 @@ TEST_F(GazeboRosVideoTest, VideoSubscribeTest) gazebo::event::Events::postRender(); EXPECT_NE(nullptr, scene->GetVisual("box_display")); - EXPECT_NE(nullptr, scene->GetVisual("box_display::base_link::visual::video_visual")); + EXPECT_NE(nullptr, scene->GetVisual( + "box_display::base_link::visual::video_visual::display_video_controller")); } }