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
44e784cd
Commit
44e784cd
authored
7 years ago
by
Jeremie Deray
Committed by
Jeremie Deray
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
const auto&
parent
67abd2a6
No related branches found
No related tags found
1 merge request
!126
Miscellaneous
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/problem.cpp
+3
-3
3 additions, 3 deletions
src/problem.cpp
src/sensor_base.h
+1
-1
1 addition, 1 deletion
src/sensor_base.h
with
4 additions
and
4 deletions
src/problem.cpp
+
3
−
3
View file @
44e784cd
...
@@ -484,12 +484,12 @@ bool Problem::getFrameCovariance(FrameBasePtr _frame_ptr, Eigen::MatrixXs& _cova
...
@@ -484,12 +484,12 @@ bool Problem::getFrameCovariance(FrameBasePtr _frame_ptr, Eigen::MatrixXs& _cova
bool
success
(
true
);
bool
success
(
true
);
int
i
=
0
,
j
=
0
;
int
i
=
0
,
j
=
0
;
for
(
auto
sb_i
:
_frame_ptr
->
getStateBlockVec
())
for
(
const
auto
&
sb_i
:
_frame_ptr
->
getStateBlockVec
())
{
{
if
(
sb_i
)
if
(
sb_i
)
{
{
j
=
0
;
j
=
0
;
for
(
auto
sb_j
:
_frame_ptr
->
getStateBlockVec
())
for
(
const
auto
&
sb_j
:
_frame_ptr
->
getStateBlockVec
())
{
{
if
(
sb_j
)
if
(
sb_j
)
{
{
...
@@ -506,7 +506,7 @@ bool Problem::getFrameCovariance(FrameBasePtr _frame_ptr, Eigen::MatrixXs& _cova
...
@@ -506,7 +506,7 @@ bool Problem::getFrameCovariance(FrameBasePtr _frame_ptr, Eigen::MatrixXs& _cova
Eigen
::
MatrixXs
Problem
::
getFrameCovariance
(
FrameBasePtr
_frame_ptr
)
Eigen
::
MatrixXs
Problem
::
getFrameCovariance
(
FrameBasePtr
_frame_ptr
)
{
{
Size
sz
=
0
;
Size
sz
=
0
;
for
(
auto
sb
:
_frame_ptr
->
getStateBlockVec
())
for
(
const
auto
&
sb
:
_frame_ptr
->
getStateBlockVec
())
if
(
sb
)
if
(
sb
)
sz
+=
sb
->
getSize
();
sz
+=
sb
->
getSize
();
Eigen
::
MatrixXs
covariance
(
sz
,
sz
);
Eigen
::
MatrixXs
covariance
(
sz
,
sz
);
...
...
This diff is collapsed.
Click to expand it.
src/sensor_base.h
+
1
−
1
View file @
44e784cd
...
@@ -260,7 +260,7 @@ inline bool SensorBase::process(const CaptureBasePtr capture_ptr)
...
@@ -260,7 +260,7 @@ inline bool SensorBase::process(const CaptureBasePtr capture_ptr)
capture_ptr
->
setSensorPtr
(
shared_from_this
());
capture_ptr
->
setSensorPtr
(
shared_from_this
());
for
(
const
auto
processor
:
processor_list_
)
for
(
const
auto
&
processor
:
processor_list_
)
{
{
processor
->
process
(
capture_ptr
);
processor
->
process
(
capture_ptr
);
}
}
...
...
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