Skip to content

Commit

Permalink
ROS UTILS: prevent segfault when using alternative GazeboRos construc…
Browse files Browse the repository at this point in the history
…tor (lunar-devel) (#720)
  • Loading branch information
kev-the-dev authored and j-rivero committed May 25, 2018
1 parent 756c1bf commit 1d8f4b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gazebo_plugins/include/gazebo_plugins/gazebo_ros_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class GazeboRos
} else {
ss << "the 'robotNamespace' param did not exit";
}
rosnode_ = boost::shared_ptr<ros::NodeHandle> ( new ros::NodeHandle ( namespace_ ) );
info_text = plugin_ + "(ns = " + namespace_ + ")";
ROS_INFO_NAMED("utils", "%s: %s" , info_text.c_str(), ss.str().c_str() );
readCommonParameter ();
Expand Down

0 comments on commit 1d8f4b2

Please sign in to comment.