Skip to content

Commit

Permalink
Fix for #78 (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw authored and mjcarroll committed Feb 5, 2019
1 parent 5e4741b commit c3ba0c0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ namespace nodelet

pubs_output_.resize (output_topics_.size ());
for (int d = 0; d < output_topics_.size (); ++d)
*pubs_output_[d] = private_nh_.template advertise<T> ((std::string)(output_topics_[d]), 1);
pubs_output_[d] = boost::make_shared<ros::Publisher>(private_nh_.template advertise<T> ((std::string)(output_topics_[d]), 1));
break;
}
default:
Expand Down Expand Up @@ -166,7 +166,7 @@ namespace nodelet

pubs_output_.resize (output_topics_.size ());
for (int d = 0; d < output_topics_.size (); ++d)
*pubs_output_[d] = private_nh_.template advertise<T> ((std::string)(output_topics_[d]), 1);
pubs_output_[d] = boost::make_shared<ros::Publisher>(private_nh_.template advertise<T> ((std::string)(output_topics_[d]), 1));
break;
}
default:
Expand Down

0 comments on commit c3ba0c0

Please sign in to comment.