-
Notifications
You must be signed in to change notification settings - Fork 279
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
tf
stack fromeigen_conversions
,kdl_conversions
, andtf_conversions
, and I'm attempting to convert everything totf2
.Not all of the conversions from
tf
were 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/fromStamped
types, 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.