Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leave empty tf_prefix values unset #1143

Merged
merged 1 commit into from Aug 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 0 additions & 4 deletions gazebo_plugins/src/gazebo_ros_camera_utils.cpp
Expand Up @@ -295,10 +295,6 @@ void GazeboRosCameraUtils::LoadThread()

// resolve tf prefix
this->tf_prefix_ = tf::getPrefixParam(*this->rosnode_);
if(this->tf_prefix_.empty()) {
this->tf_prefix_ = this->robot_namespace_;
boost::trim_right_if(this->tf_prefix_,boost::is_any_of("/"));
}
this->frame_name_ = tf::resolve(this->tf_prefix_, this->frame_name_);

ROS_INFO_NAMED("camera_utils", "Camera Plugin (ns = %s) <tf_prefix_>, set to \"%s\"",
Expand Down
4 changes: 0 additions & 4 deletions gazebo_plugins/src/gazebo_ros_gpu_laser.cpp
Expand Up @@ -134,10 +134,6 @@ void GazeboRosLaser::LoadThread()
this->rosnode_ = new ros::NodeHandle(this->robot_namespace_);

this->tf_prefix_ = tf::getPrefixParam(*this->rosnode_);
if(this->tf_prefix_.empty()) {
this->tf_prefix_ = this->robot_namespace_;
boost::trim_right_if(this->tf_prefix_,boost::is_any_of("/"));
}
ROS_INFO_NAMED("gpu_laser", "GPU Laser Plugin (ns = %s) <tf_prefix_>, set to \"%s\"",
this->robot_namespace_.c_str(), this->tf_prefix_.c_str());

Expand Down
4 changes: 0 additions & 4 deletions gazebo_plugins/src/gazebo_ros_laser.cpp
Expand Up @@ -131,10 +131,6 @@ void GazeboRosLaser::LoadThread()
this->rosnode_ = new ros::NodeHandle(this->robot_namespace_);

this->tf_prefix_ = tf::getPrefixParam(*this->rosnode_);
if(this->tf_prefix_.empty()) {
this->tf_prefix_ = this->robot_namespace_;
boost::trim_right_if(this->tf_prefix_,boost::is_any_of("/"));
}
ROS_INFO_NAMED("laser", "Laser Plugin (ns = %s) <tf_prefix_>, set to \"%s\"",
this->robot_namespace_.c_str(), this->tf_prefix_.c_str());

Expand Down