Check ceres rotation convention
parent
cb1672d292
commit
8ceaa8a3cc
|
@ -59,6 +59,16 @@ typedef PinholeCamera<Cal> Camera;
|
|||
using namespace std;
|
||||
using namespace gtsam;
|
||||
|
||||
/* ************************************************************************* */
|
||||
// Make sure rotation convention is the same
|
||||
TEST(AdaptAutoDiff, Rotation) {
|
||||
Vector3 axisAngle(0.1,0.2,0.3);
|
||||
Matrix3 expected = Rot3::rodriguez(axisAngle).matrix();
|
||||
Matrix3 actual;
|
||||
ceres::AngleAxisToRotationMatrix(axisAngle.data(), actual.data());
|
||||
EXPECT(assert_equal(expected, actual));
|
||||
}
|
||||
|
||||
/* ************************************************************************* */
|
||||
// charts
|
||||
TEST(AdaptAutoDiff, Canonical) {
|
||||
|
|
Loading…
Reference in New Issue