loosen tolerance on trace(R) == -1

release/4.3a0
John Lambert 2021-10-13 22:03:40 -04:00 committed by GitHub
parent 80ebd5a63b
commit 9ec3f791f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ Vector3 SO3::Logmap(const SO3& Q, ChartJacobian H) {
// when trace == -1, i.e., when theta = +-pi, +-3pi, +-5pi, etc.
// we do something special
if (tr + 1.0 < 1e-4) {
if (tr + 1.0 < 1e-3) {
if (R33 > R22 && R33 > R11) {
// R33 is the largest diagonal
const double sgn_w = (R21 - R12) < 0 ? -1.0 : 1.0;