Skip to content

No conversion from Eigen::Translation or Eigen::Rotation2D to Eigen::Transform

Submitted by sog..@..oo.com

Assigned to Nobody

Link to original bugzilla bug (#1209)
Version: 3.2

Description

Created attachment 700

A short example reproducing the bug

The documentation https://eigen.tuxfamily.org/dox/group__TutorialGeometry.html states:

"Any of the above transformation types can be converted to any other types of the same nature, or to a more generic type."

It seems there is no conversion from

Translation<float, 2> or Eigen::Rotation2D<float> to

Transform<float, 2, Eigen::Affine>

Attached is a file with a short code piece illustrating the problem.

The expected behavior is the program to compile without errors.

I have not checked for other types.

Attachment 700, "A short example reproducing the bug":

c++scratchpad.cpp

Blocking

#814