Additional tf2 Type Conversions#292
Conversation
- adds non-stamped Eigen to Transform function - converts Eigen Matrix Vectors to and from geometry_msgs::Twist - adds to/from message for geometry_msgs::Pose and KDL::Frame
fe70597 to
2982de0
Compare
| return msg; | ||
| } | ||
|
|
||
| /** \brief Convert a Pose message transform type to a Eigen Affine3d. |
There was a problem hiding this comment.
Update comment to read Twist message, and Eigen Affine3d should read Eigen 6x1 Matrix
|
@tfoote Can you please take a look at this since it is necessary for the migration of MoveIt to tf2. Thanks. |
tfoote
left a comment
There was a problem hiding this comment.
The changes look good. The PR failure looks unrelated. I'll try retriggering it.
|
@ros-pull-request-builder retest this please. |
- All type conversions now depend on geometry2 ROS packages, rather than geometry (see ros/geometry2#292 and ros/geometry2#294 for details of the new conversions) - Removes all boost::shared_ptr<tf::TransformListener> from the API, and replaced them with std::shared_ptr<tf2_ros::Buffer>'s - Piped tf2_ros::Buffer's everywhere where tf::TransformListeners were used - Utilizes the new tf2 API in the tf::Transformer library to access the internal tf2::Buffer object used by RViz (see ros/geometry#163 for details of the new API) - Removes the prepending of forward slashes ('/') for Transforms frames as this is deprecated in tf2
|
@tfoote @dirk-thomas Can you please consider these changes for cherry-picking to Kinetic? |
|
As I mentioned in moveit/moveit#902 (comment), the MoveIt maintainers need to discuss the decision to compile on both Melodic & Kinetic. There are several Melodic API changes that the MoveIt tf2 migration depends on:
While I don't have a preference on what is backported (or not), I want to make sure we are all on the same page before making a decision. |
|
I think all these changes target enabling of |
migration from tf to tf2 API, resolves issue #745 - All type conversions now depend on geometry2 ROS packages, rather than geometry (see ros/geometry2#292 and ros/geometry2#294 for details of the new conversions) - Removes all boost::shared_ptr<tf::TransformListener> from the API, and replaced them with std::shared_ptr<tf2_ros::Buffer>'s - Utilize new tf2 API in the tf::Transformer library to access the internal tf2::Buffer of RViz (see ros/geometry#163 for details of the new API) - Removes prepending of forward slashes ('/') for transforms frames as this is deprecated in tf2 - Replaced deprecated tf2 _getLatestCommonTime
|
Ping @tfoote @dirk-thomas
|
|
Since this is just additions or modifications to inline functions we can plan to backport this to kinetic. |
- adds non-stamped Eigen to Transform function - converts Eigen Matrix Vectors to and from geometry_msgs::Twist - adds to/from message for geometry_msgs::Pose and KDL::Frame
- adds non-stamped Eigen to Transform function - converts Eigen Matrix Vectors to and from geometry_msgs::Twist - adds to/from message for geometry_msgs::Pose and KDL::Frame
- adds non-stamped Eigen to Transform function - converts Eigen Matrix Vectors to and from geometry_msgs::Twist - adds to/from message for geometry_msgs::Pose and KDL::Frame
Originally PR ros2#292 at ros/geometry2#292 - adds non-stamped Eigen to Transform function - converts Eigen Matrix Vectors to and from geometry_msgs::Twist - adds to/from message for geometry_msgs::Pose and KDL::Frame
Originally PR #292 at ros/geometry2#292 - adds non-stamped Eigen to Transform function - converts Eigen Matrix Vectors to and from geometry_msgs::Twist - adds to/from message for geometry_msgs::Pose and KDL::Frame
This PR is not ready for merge, but I figured I'd open it to get the discussion started. MoveIt! utilizes many different data type conversions in the old
tfstack fromeigen_conversions,kdl_conversions, andtf_conversions, and I'm attempting to convert everything totf2.Not all of the conversions from
tfwere present ingeometry2, so I added those that I needed during the MoveIt migration. Caveats: I understand that the Twist type has representation issues, and that conversions are meant to be to/fromStampedtypes, but it seemed these conversions could still be useful.That said, I am open to feedback on how to work with
geometry2, so please let me know if I am off base in these additions.