Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
wolf
Commits
79fb6e44
Commit
79fb6e44
authored
8 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Add a getter for diagonal covariance block
parent
002cd55d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/problem.cpp
+5
-0
5 additions, 0 deletions
src/problem.cpp
src/problem.h
+1
-0
1 addition, 0 deletions
src/problem.h
with
6 additions
and
0 deletions
src/problem.cpp
+
5
−
0
View file @
79fb6e44
...
@@ -468,6 +468,11 @@ bool Problem::getCovarianceBlock(StateBlockPtr _state1, StateBlockPtr _state2, E
...
@@ -468,6 +468,11 @@ bool Problem::getCovarianceBlock(StateBlockPtr _state1, StateBlockPtr _state2, E
return
true
;
return
true
;
}
}
bool
Problem
::
getCovarianceBlock
(
StateBlockPtr
_state
,
Eigen
::
MatrixXs
&
_cov
,
const
int
_row_and_col
)
{
return
getCovarianceBlock
(
_state
,
_state
,
_cov
,
_row_and_col
,
_row_and_col
);
}
bool
Problem
::
getFrameCovariance
(
FrameBasePtr
_frame_ptr
,
Eigen
::
MatrixXs
&
_covariance
)
bool
Problem
::
getFrameCovariance
(
FrameBasePtr
_frame_ptr
,
Eigen
::
MatrixXs
&
_covariance
)
{
{
// return getCovarianceBlock(_frame_ptr->getPPtr(), _frame_ptr->getPPtr(), _covariance, 0, 0 ) &&
// return getCovarianceBlock(_frame_ptr->getPPtr(), _frame_ptr->getPPtr(), _covariance, 0, 0 ) &&
...
...
This diff is collapsed.
Click to expand it.
src/problem.h
+
1
−
0
View file @
79fb6e44
...
@@ -247,6 +247,7 @@ class Problem : public std::enable_shared_from_this<Problem>
...
@@ -247,6 +247,7 @@ class Problem : public std::enable_shared_from_this<Problem>
void
addCovarianceBlock
(
StateBlockPtr
_state1
,
StateBlockPtr
_state2
,
const
Eigen
::
MatrixXs
&
_cov
);
void
addCovarianceBlock
(
StateBlockPtr
_state1
,
StateBlockPtr
_state2
,
const
Eigen
::
MatrixXs
&
_cov
);
bool
getCovarianceBlock
(
StateBlockPtr
_state1
,
StateBlockPtr
_state2
,
Eigen
::
MatrixXs
&
_cov
,
const
int
_row
=
0
,
bool
getCovarianceBlock
(
StateBlockPtr
_state1
,
StateBlockPtr
_state2
,
Eigen
::
MatrixXs
&
_cov
,
const
int
_row
=
0
,
const
int
_col
=
0
);
const
int
_col
=
0
);
bool
getCovarianceBlock
(
StateBlockPtr
_state
,
Eigen
::
MatrixXs
&
_cov
,
const
int
_row_and_col
=
0
);
bool
getFrameCovariance
(
FrameBasePtr
_frame_ptr
,
Eigen
::
MatrixXs
&
_covariance
);
bool
getFrameCovariance
(
FrameBasePtr
_frame_ptr
,
Eigen
::
MatrixXs
&
_covariance
);
Eigen
::
MatrixXs
getFrameCovariance
(
FrameBasePtr
_frame_ptr
);
Eigen
::
MatrixXs
getFrameCovariance
(
FrameBasePtr
_frame_ptr
);
Eigen
::
MatrixXs
getLastKeyFrameCovariance
();
Eigen
::
MatrixXs
getLastKeyFrameCovariance
();
...
...
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