Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bodydynamics
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
bodydynamics
Commits
e4090cbe
Commit
e4090cbe
authored
5 years ago
by
Médéric Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
Adapted to new AbsoluteFactor API, strange error on matrix size
parent
35b4f41a
No related branches found
No related tags found
2 merge requests
!18
Release after RAL
,
!17
After 2nd RAL submission
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demos/mcapi_povcdl_estimation.cpp
+3
-3
3 additions, 3 deletions
demos/mcapi_povcdl_estimation.cpp
with
3 additions
and
3 deletions
demos/mcapi_povcdl_estimation.cpp
+
3
−
3
View file @
e4090cbe
...
...
@@ -441,7 +441,7 @@ int main (int argc, char **argv) {
// Prior velocity factor
CaptureBasePtr
capV0
=
CaptureBase
::
emplace
<
CaptureBase
>
(
KF1
,
"Vel0"
,
t0
);
FeatureBasePtr
featV0
=
FeatureBase
::
emplace
<
FeatureBase
>
(
capV0
,
"Vel0"
,
x_origin
.
segment
<
3
>
(
7
),
P_origin
.
block
<
3
,
3
>
(
6
,
6
));
FactorBasePtr
facV0
=
FactorBase
::
emplace
<
FactorBlockAbsolute
>
(
featV0
,
KF1
->
getV
(),
nullptr
,
false
);
FactorBasePtr
facV0
=
FactorBase
::
emplace
<
FactorBlockAbsolute
>
(
featV0
,
featV0
,
KF1
->
getV
(),
nullptr
,
false
);
// Special trick to make things work in the IMU + IKin + FTPreint case
// 0. Call keyFrameCallback of processorIKin so that its kf_buffer contains the first KF0
...
...
@@ -467,14 +467,14 @@ int main (int argc, char **argv) {
Matrix6d
Q_bi
=
1e-8
*
Matrix6d
::
Identity
();
CaptureBasePtr
capbi0
=
CaptureBase
::
emplace
<
CaptureBase
>
(
KF1
,
"bi0"
,
t0
);
FeatureBasePtr
featbi0
=
FeatureBase
::
emplace
<
FeatureBase
>
(
capbi0
,
"bi0"
,
Vector6d
::
Zero
(),
Q_bi
);
FactorBasePtr
facbi0
=
FactorBase
::
emplace
<
FactorBlockAbsolute
>
(
featbi0
,
KF1
->
getCaptureOf
(
sen_imu
)
->
getSensorIntrinsic
(),
nullptr
,
false
);
FactorBasePtr
facbi0
=
FactorBase
::
emplace
<
FactorBlockAbsolute
>
(
featbi0
,
featbi0
,
KF1
->
getCaptureOf
(
sen_imu
)
->
getSensorIntrinsic
(),
nullptr
,
false
);
// Add loose absolute factor on initial bp bias since dynamical trajectories
// able to excite the system enough to make COM and bias_p observable hard to generate in a simple gtest
Matrix3d
Q_bp
=
pow
(
std_abs_biasp
,
2
)
*
Matrix3d
::
Identity
();
CaptureBasePtr
cap_bp0
=
CaptureBase
::
emplace
<
CaptureBase
>
(
KF1
,
"bp0"
,
t0
);
FeatureBasePtr
feat_bp0
=
FeatureBase
::
emplace
<
FeatureBase
>
(
cap_bp0
,
"bp0"
,
bias_pbc_prior
,
Q_bp
);
FactorBasePtr
fac_bp0
=
FactorBase
::
emplace
<
FactorBlockAbsolute
>
(
feat_bp0
,
KF1
->
getCaptureOf
(
sen_ikin
)
->
getSensorIntrinsic
(),
nullptr
,
false
);
FactorBasePtr
fac_bp0
=
FactorBase
::
emplace
<
FactorBlockAbsolute
>
(
feat_bp0
,
feat_bp0
,
KF1
->
getCaptureOf
(
sen_ikin
)
->
getSensorIntrinsic
(),
nullptr
,
false
);
///////////////////////////////////////////
...
...
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