Skip to content

Commit

Permalink
Fix for multiple video plugins (#898) (#937)
Browse files Browse the repository at this point in the history
* Fix for multiple video plugins (#898)

* Fix crash on shutdown

* Fix gazebo node destructor
  • Loading branch information
shiveshkhaitan authored and chapulina committed Aug 11, 2019
1 parent 6b0a4fc commit 07ea8b9
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 07ea8b9

Please sign in to comment.