Skip to content

Commit

Permalink
Fix for multiple video plugins (ros-simulation#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiveshkhaitan committed Jun 19, 2019
1 parent a3e05f7 commit 149c844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gazebo_plugins/src/gazebo_ros_video.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ void GazeboRosVideo::Load(

int width = _sdf->Get<int>("width", 320).first;

impl_->video_visual_ = std::make_shared<VideoVisual>(_parent->Name() + "::video_visual",
_parent, height, width);
impl_->video_visual_ = std::make_shared<VideoVisual>(_parent->Name() + "::video_visual::" +
_sdf->Get<std::string>("name"), _parent, height, width);
_parent->GetScene()->AddVisual(impl_->video_visual_);

// Subscribe to the image topic
Expand Down

0 comments on commit 149c844

Please sign in to comment.