Skip to content

Commit 7780270

Browse files
author
Alberto Pretto
committed
Small changes
1 parent d65d222 commit 7780270

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/calibration.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ template <typename _T1> struct MultiPosGyroResidual
104104
Eigen::Matrix< _T2, 3 , 3> rot_mat;
105105
integrateGyroInterval( calib_gyro_samples, rot_mat, _T2(dt_) );
106106

107-
Eigen::Matrix< _T2, 3 , 1> diff = rot_mat.inverse()*g_versor_pos0_.template cast<_T2>() -
107+
Eigen::Matrix< _T2, 3 , 1> diff = rot_mat.transpose()*g_versor_pos0_.template cast<_T2>() -
108108
g_versor_pos1_.template cast<_T2>();
109109

110110
residuals[0] = diff(0);

src/io_utils.cpp

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
/*
1+
/*
22
* imu_tk - Inertial Measurement Unit Toolkit
3-
*
3+
*
44
* Copyright (c) 2014, Alberto Pretto <pretto@diag.uniroma1.it>
55
* All rights reserved.
66
*
77
* Redistribution and use in source and binary forms, with or without
88
* modification, are permitted provided that the following conditions are met:
9-
*
9+
*
1010
* 1. Redistributions of source code must retain the above copyright notice,
1111
* this list of conditions and the following disclaimer.
1212
* 2. Redistributions in binary form must reproduce the above copyright notice,
1313
* this list of conditions and the following disclaimer in the documentation
1414
* and/or other materials provided with the distribution.
15-
*
16-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15+
*
16+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
1717
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1818
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1919
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
2020
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21+
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2222
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23-
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23+
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2424
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2525
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2626
* POSSIBILITY OF SUCH DAMAGE.
@@ -33,6 +33,8 @@
3333
#include <string>
3434
#include <cstdio>
3535

36+
// TODO Add setlocale()
37+
3638
using namespace std;
3739

3840
template <typename _T>

0 commit comments

Comments
 (0)