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

Deprecated usage of tf prefix in plugins #554

Open
piyushk opened this issue Mar 17, 2017 · 1 comment
Open

Deprecated usage of tf prefix in plugins #554

piyushk opened this issue Mar 17, 2017 · 1 comment

Comments

@piyushk
Copy link
Contributor

piyushk commented Mar 17, 2017

tf_prefix has been deprecated in ROS for a couple of distros now. Numerous plugins are still using the tf::resolve function, which is fine if you don't use the tf_prefix parameter.

We've now removed tf_prefix from our codebase, and use xacro to introduce _ before a frame name. Unfortunately, numerous plugins use the following code, which should be removed:

if(this->tf_prefix_.empty()) {
  this->tf_prefix_ = this->robot_namespace_;
  boost::trim_right_if(this->tf_prefix_,boost::is_any_of("/"));
}

We're hacking around this issue by setting /<prefix>_frame (with the preceding slash to prevent tf::resolve from taking effect.

Any thoughts on how to fix this issue while reducing effected users?

@davetcoleman
Copy link
Collaborator

Seems like a fix that must be targeted at ROS-L due to the high possibility of breaking current setups, but I would support removing that code!

scpeters added a commit to scpeters/gazebo_ros_pkgs that referenced this issue Aug 5, 2020
As reported in ros-simulation#554, tf_prefix has been long deprecated,
so if it is unset, leave it empty instead of giving
a default value.

Fixes ros-simulation#554.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
scpeters added a commit to scpeters/gazebo_ros_pkgs that referenced this issue Aug 11, 2020
As reported in ros-simulation#554, tf_prefix has been long deprecated,
so if it is unset, leave it empty instead of giving
a default value.

Fixes ros-simulation#554.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
scpeters added a commit to scpeters/gazebo_ros_pkgs that referenced this issue Aug 12, 2020
As reported in ros-simulation#554, tf_prefix has been long deprecated,
so if it is unset, leave it empty instead of giving
a default value.

Fixes ros-simulation#554.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
scpeters added a commit that referenced this issue Aug 12, 2020
As reported in #554, tf_prefix has been long deprecated,
so if it is unset, leave it empty instead of giving
a default value.

Fixes #554.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
scpeters added a commit to scpeters/gazebo_ros_pkgs that referenced this issue Sep 30, 2020
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>
jacobperron pushed a commit that referenced this issue Apr 2, 2021
Similar changes were made in #1143 to address #554,
but this class wasn't included.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
cohen39 pushed a commit to cohen39/gazebo_ros_pkgs that referenced this issue Nov 15, 2021
As reported in ros-simulation#554, tf_prefix has been long deprecated,
so if it is unset, leave it empty instead of giving
a default value.

Fixes ros-simulation#554.

Signed-off-by: Steve Peters <scpeters@openrobotics.org>
cohen39 pushed a commit to cohen39/gazebo_ros_pkgs that referenced this issue Nov 15, 2021
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants