Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

tf2_geometry_msgs: removed KDL dependencies - #189

Closed
cwecht wants to merge 7 commits into
ros:indigo-develfrom
cwecht:tf2_geometry_msgs_removed_kdl_dependency
Closed

cwecht wants to merge 7 commits into
ros:indigo-develfrom
cwecht:tf2_geometry_msgs_removed_kdl_dependency

Conversation

@cwecht

@cwecht cwecht commented Sep 27, 2016

Copy link
Copy Markdown
Contributor

Instead of KDL, tf2 methods and types are now used to transform geometry_msgs.

d = generate_distutils_setup(
packages=['tf2_geometry_msgs'],
package_dir={'': 'src'},
requires={'rospy','geometry_msgs','tf2_ros','orocos_kdl'}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no associated python code updates.

@tfoote tfoote left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is good idea to remove the dependency if possible. I have two comments though. Since this is a stable released package we cannot modify or remove API without a deprecation cycle and recommended migration path replacing the removed functions with equivalent ones elsewhere. And secondly this removes the dependency in the setup.py but does not change the python implementation to not use kdl.

*/
template <>
inline
const ros::Time& getTimestamp(const geometry_msgs::PoseStamped& t) {return t.header.stamp;}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one of many places removing public API. They will all need to go through a deprecation cycle.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change affecting the api is the removing gmTransformToKDL(); every other functions has just been moved in order to avoid some code duplication (git did not get this actually...). Of cause gmTransformToKDL() can be re-added in order to do the deprecation cycle, if desired.

@cwecht

cwecht commented Oct 9, 2016

Copy link
Copy Markdown
Contributor Author

Removing KDL from the python implementation was not that easy, because numpy does not provide a quaternion implementation, but I see basically three ways to do it:

  1. using the python package transforms3d. This obviously introduces a new dependency. If've implemented a solution using this package here.
  2. taking the relevant parts of transforms3ds quaternion implementation and putting it in tf2_geometry_msgs.py; this has been done here.
  3. create python-bindings to the c++-implementation, but I do not think, that it's worth the effort.

@cwecht cwecht closed this Apr 5, 2017
@cwecht
cwecht deleted the tf2_geometry_msgs_removed_kdl_dependency branch July 14, 2017 20:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants