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

Eigen: Affine vs. Isometry #101

Closed
Closed

Description

@skasperski

Why are *eigenToTF-functions using Eigen::Affine to represent tf::Transformation instead of Eigen::Isometry? Isn't the latter one correct to describe translation+rotation in 3D? Eigen explicitly prohibits conversion from affine to isometry:

// prevent conversions as:
// Isometry = Affine | AffineCompact
EIGEN_STATIC_ASSERT(EIGEN_IMPLIES(OtherMode==int(Affine)||OtherMode==int(AffineCompact), Mode!=int(Isometry)),
                    YOU_PERFORMED_AN_INVALID_TRANSFORMATION_CONVERSION)

So I ask myself if I can somehow still convert it, or if I also should use Affine to represent 3D-Transformations, which doesn't seem right to me.

Best regards,
Sebastian

Activity

  1. tfoote commented on Jun 30, 2015

    @tfoote
    Member

    I believe that is a legacy of the port from Eigen2 to Eigen3: http://eigen.tuxfamily.org/dox/Eigen2ToEigen3.html

    The recommendation was for Transform3f to go to Affine3f or Projective3f

    The transform is an isometry that would be a reasonable choice. Changing it at this point would require a lot of testing to verify we won't break current users.

  2. de-vri-es commented on Dec 21, 2015

    @de-vri-es
    Contributor

    Pull request #113 would fix this.

  3. skasperski commented on Jan 12, 2016

    @skasperski
    Author

    Yes, thanks for clarification and fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions