Skip to content

Commit

Permalink
gazebo_ros_utils: don't set tf_prefix if empty (ros-simulation#1173)
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 Apr 2, 2021
1 parent 75fb5dd commit f6ee165
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 f6ee165

Please sign in to comment.