| 45 | } |
| 46 | |
| 47 | Eigen::Vector3d RotationToAngleAxis(const Eigen::Matrix3d& rot) { |
| 48 | Eigen::AngleAxis<double> aa(rot); |
| 49 | Eigen::Vector3d aa_vec = aa.angle() * aa.axis(); |
| 50 | return aa_vec; |
| 51 | } |
| 52 | |
| 53 | Eigen::Matrix3d AngleAxisToRotation(const Eigen::Vector3d& aa_vec) { |
| 54 | double aa_norm = aa_vec.norm(); |
no outgoing calls
no test coverage detected