Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
plugins
imu
Commits
5b739bbf
Commit
5b739bbf
authored
4 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Fix ProcImu::getCalibration() to get the intrinsics
parent
e879ddc8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!39
release after RAL
,
!38
After 2nd RAL submission
,
!25
Resolve "follow core: #384"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/imu/processor/processor_imu.h
+1
-1
1 addition, 1 deletion
include/imu/processor/processor_imu.h
src/processor/processor_imu.cpp
+4
-3
4 additions, 3 deletions
src/processor/processor_imu.cpp
test/gtest_factor_imu.cpp
+1
-1
1 addition, 1 deletion
test/gtest_factor_imu.cpp
with
6 additions
and
5 deletions
include/imu/processor/processor_imu.h
+
1
−
1
View file @
5b739bbf
...
@@ -60,7 +60,7 @@ class ProcessorImu : public ProcessorMotion{
...
@@ -60,7 +60,7 @@ class ProcessorImu : public ProcessorMotion{
Eigen
::
VectorXd
deltaZero
()
const
override
;
Eigen
::
VectorXd
deltaZero
()
const
override
;
Eigen
::
VectorXd
correctDelta
(
const
Eigen
::
VectorXd
&
delta_preint
,
Eigen
::
VectorXd
correctDelta
(
const
Eigen
::
VectorXd
&
delta_preint
,
const
Eigen
::
VectorXd
&
delta_step
)
const
override
;
const
Eigen
::
VectorXd
&
delta_step
)
const
override
;
VectorXd
getCalibration
(
const
CaptureBasePtr
_capture
)
const
override
;
VectorXd
getCalibration
(
const
CaptureBasePtr
_capture
=
nullptr
)
const
override
;
void
setCalibration
(
const
CaptureBasePtr
_capture
,
const
VectorXd
&
_calibration
)
override
;
void
setCalibration
(
const
CaptureBasePtr
_capture
,
const
VectorXd
&
_calibration
)
override
;
bool
voteForKeyFrame
()
const
override
;
bool
voteForKeyFrame
()
const
override
;
CaptureMotionPtr
emplaceCapture
(
const
FrameBasePtr
&
_frame_own
,
CaptureMotionPtr
emplaceCapture
(
const
FrameBasePtr
&
_frame_own
,
...
...
This diff is collapsed.
Click to expand it.
src/processor/processor_imu.cpp
+
4
−
3
View file @
5b739bbf
...
@@ -87,9 +87,10 @@ FeatureBasePtr ProcessorImu::emplaceFeature(CaptureMotionPtr _capture_motion)
...
@@ -87,9 +87,10 @@ FeatureBasePtr ProcessorImu::emplaceFeature(CaptureMotionPtr _capture_motion)
VectorXd
ProcessorImu
::
getCalibration
(
const
CaptureBasePtr
_capture
)
const
VectorXd
ProcessorImu
::
getCalibration
(
const
CaptureBasePtr
_capture
)
const
{
{
assert
(
_capture
&&
"called with a null capture"
);
if
(
_capture
)
assert
(
_capture
->
getSensorIntrinsic
()
&&
"null sensor intrinsics state block"
);
return
_capture
->
getStateBlock
(
'I'
)
->
getState
();
return
_capture
->
getSensorIntrinsic
()
->
getState
();
else
return
getSensor
()
->
getStateBlockDynamic
(
'I'
)
->
getState
();
}
}
void
ProcessorImu
::
setCalibration
(
const
CaptureBasePtr
_capture
,
const
VectorXd
&
_calibration
)
void
ProcessorImu
::
setCalibration
(
const
CaptureBasePtr
_capture
,
const
VectorXd
&
_calibration
)
...
...
This diff is collapsed.
Click to expand it.
test/gtest_factor_imu.cpp
+
1
−
1
View file @
5b739bbf
...
@@ -915,7 +915,7 @@ class FactorImu_ODOM_biasTest_Move_NonNullBiasRot : public testing::Test
...
@@ -915,7 +915,7 @@ class FactorImu_ODOM_biasTest_Move_NonNullBiasRot : public testing::Test
TimeStamp
t_imu
(
0.0
),
t_odo
(
0.0
);
TimeStamp
t_imu
(
0.0
),
t_odo
(
0.0
);
double
dt_imu
(
0.001
),
dt_odo
(
.01
);
double
dt_imu
(
0.001
),
dt_odo
(
.01
);
capture_imu
=
std
::
make_shared
<
CaptureImu
>
(
t_imu
,
sensor_imu
,
data_imu
,
sensor_imu
->
getNoiseCov
(),
sensor_imu
->
get
Calibration
(),
nullptr
);
capture_imu
=
std
::
make_shared
<
CaptureImu
>
(
t_imu
,
sensor_imu
,
data_imu
,
sensor_imu
->
getNoiseCov
(),
sensor_imu
->
get
Intrinsic
()
->
getState
(),
nullptr
);
capture_odo
=
std
::
make_shared
<
CaptureOdom3d
>
(
t_odo
,
sensor_odo
,
data_odo
,
sensor_odo
->
getNoiseCov
(),
nullptr
);
capture_odo
=
std
::
make_shared
<
CaptureOdom3d
>
(
t_odo
,
sensor_odo
,
data_odo
,
sensor_odo
->
getNoiseCov
(),
nullptr
);
sensor_odo
->
process
(
capture_odo
);
sensor_odo
->
process
(
capture_odo
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment