Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_ros_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_ros
wolf_ros_imu
Commits
bfc499a7
Commit
bfc499a7
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: covariance size for 3d case
parent
a64eaf6d
No related branches found
Branches containing commit
No related tags found
2 merge requests
!5
After cmake and const refactor
,
!3
new release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/subscriber_imu_enableable.cpp
+2
-1
2 additions, 1 deletion
src/subscriber_imu_enableable.cpp
with
2 additions
and
1 deletion
src/subscriber_imu_enableable.cpp
+
2
−
1
View file @
bfc499a7
...
...
@@ -132,6 +132,7 @@ void SubscriberImuEnableable::callback(const sensor_msgs::Imu::ConstPtr& msg)
// add zero displacement and rotation capture & feature & factor with all previous frames
assert
(
sensor_ptr_
->
getProblem
());
auto
size
=
sensor_ptr_
->
getProblem
()
->
getDim
()
==
3
?
7
:
3
;
auto
cov_size
=
sensor_ptr_
->
getProblem
()
->
getDim
()
==
3
?
6
:
3
;
Eigen
::
VectorXd
zero_motion
=
Eigen
::
VectorXd
::
Zero
(
size
);
if
(
sensor_ptr_
->
getProblem
()
->
getDim
()
==
3
)
zero_motion
.
tail
<
4
>
()
=
Eigen
::
Quaterniond
::
Identity
().
coeffs
();
...
...
@@ -145,7 +146,7 @@ void SubscriberImuEnableable::callback(const sensor_msgs::Imu::ConstPtr& msg)
auto
feature_zero
=
FeatureBase
::
emplace
<
FeatureBase
>
(
capture_zero
,
"FeatureZeroOdom"
,
zero_motion
,
Eigen
::
MatrixXd
::
Identity
(
size
,
size
)
*
0.01
);
Eigen
::
MatrixXd
::
Identity
(
cov_
size
,
cov_
size
)
*
0.01
);
if
(
sensor_ptr_
->
getProblem
()
->
getDim
()
==
3
)
FactorBase
::
emplace
<
FactorRelativePose3d
>
(
feature_zero
,
feature_zero
,
...
...
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