Fixed issue with quaternions and added "special" travis stage that checks quaternions path.
parent
a573658ba4
commit
9d23fe52e0
15
.travis.yml
15
.travis.yml
|
@ -27,6 +27,7 @@ install:
|
||||||
stages:
|
stages:
|
||||||
- compile
|
- compile
|
||||||
- test
|
- test
|
||||||
|
- special
|
||||||
|
|
||||||
# Compile stage without building examples/tests to populate the caches.
|
# Compile stage without building examples/tests to populate the caches.
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -75,12 +76,18 @@ jobs:
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: CMAKE_BUILD_TYPE=Release
|
env: CMAKE_BUILD_TYPE=Release
|
||||||
script: bash .travis.sh -b
|
script: bash .travis.sh -b
|
||||||
# on Linux, with deprecated ON to make sure that path still compiles
|
# on Linux, with deprecated ON to make sure that path still compiles/tests
|
||||||
- stage: compile
|
- stage: special
|
||||||
os: linux
|
os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
env: CMAKE_BUILD_TYPE=Debug GTSAM_BUILD_UNSTABLE=OFF GTSAM_ALLOW_DEPRECATED_SINCE_V4=ON
|
env: CMAKE_BUILD_TYPE=Release GTSAM_BUILD_UNSTABLE=OFF GTSAM_ALLOW_DEPRECATED_SINCE_V4=ON
|
||||||
script: bash .travis.sh -b
|
script: bash .travis.sh -t
|
||||||
|
# on Linux, with quaternions ON to make sure that path still compiles/tests
|
||||||
|
- stage: special
|
||||||
|
os: linux
|
||||||
|
compiler: clang
|
||||||
|
env: CMAKE_BUILD_TYPE=Release GTSAM_BUILD_UNSTABLE=OFF GTSAM_USE_QUATERNIONS=ON
|
||||||
|
script: bash .travis.sh -t
|
||||||
|
|
||||||
# Matrix configuration:
|
# Matrix configuration:
|
||||||
os:
|
os:
|
||||||
|
|
|
@ -94,7 +94,8 @@ namespace gtsam {
|
||||||
*/
|
*/
|
||||||
template <typename Derived>
|
template <typename Derived>
|
||||||
#ifdef GTSAM_USE_QUATERNIONS
|
#ifdef GTSAM_USE_QUATERNIONS
|
||||||
explicit Rot3(const Eigen::MatrixBase<Derived>& R) : quaternion_(R) {
|
explicit Rot3(const Eigen::MatrixBase<Derived>& R) {
|
||||||
|
quaternion_ = Matrix3(R);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
explicit Rot3(const Eigen::MatrixBase<Derived>& R) : rot_(R) {
|
explicit Rot3(const Eigen::MatrixBase<Derived>& R) : rot_(R) {
|
||||||
|
|
Loading…
Reference in New Issue