Skip to content

Commit

Permalink
gazebo_ros_utils: don't set tf_prefix if empty
Browse files Browse the repository at this point in the history
Similar changes were made in ros-simulation#1143 to address ros-simulation#554,
but this class wasn't included.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
  • Loading branch information
scpeters committed Sep 30, 2020
1 parent 1ab2668 commit a9c3a06
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions gazebo_plugins/src/gazebo_ros_utils.cpp
Expand Up @@ -85,11 +85,6 @@ void GazeboRos ::readCommonParameter() {


tf_prefix_ = tf::getPrefixParam(*rosnode_);
if(tf_prefix_.empty())
{
tf_prefix_ = namespace_;
boost::trim_right_if(tf_prefix_,boost::is_any_of("/"));
}
ROS_INFO_NAMED("utils", "%s: <tf_prefix> = %s", info(), tf_prefix_.c_str());
}

Expand Down

0 comments on commit a9c3a06

Please sign in to comment.