From 149c844c43f064e01601f16bc11b0fcafc96d746 Mon Sep 17 00:00:00 2001 From: Shivesh Khaitan Date: Wed, 19 Jun 2019 17:20:09 +0530 Subject: [PATCH] Fix for multiple video plugins (#898) --- gazebo_plugins/src/gazebo_ros_video.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gazebo_plugins/src/gazebo_ros_video.cpp b/gazebo_plugins/src/gazebo_ros_video.cpp index f634431ce..16abd2627 100644 --- a/gazebo_plugins/src/gazebo_ros_video.cpp +++ b/gazebo_plugins/src/gazebo_ros_video.cpp @@ -200,8 +200,8 @@ void GazeboRosVideo::Load( int width = _sdf->Get("width", 320).first; - impl_->video_visual_ = std::make_shared(_parent->Name() + "::video_visual", - _parent, height, width); + impl_->video_visual_ = std::make_shared(_parent->Name() + "::video_visual::" + + _sdf->Get("name"), _parent, height, width); _parent->GetScene()->AddVisual(impl_->video_visual_); // Subscribe to the image topic