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
4f2b826a
Commit
4f2b826a
authored
2 months ago
by
cont-integration
Browse files
Options
Downloads
Patches
Plain Diff
[skip ci] applied clang format
parent
bd2b12c3
No related branches found
Branches containing commit
No related tags found
1 merge request
!448
Draft: Resolve "Implementation of new nodes creation"
Pipeline
#20818
skipped
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/core/factor/factor_autodiff.h
+25
-14
25 additions, 14 deletions
include/core/factor/factor_autodiff.h
src/factor/factor_analytic.cpp
+1
-1
1 addition, 1 deletion
src/factor/factor_analytic.cpp
with
26 additions
and
15 deletions
include/core/factor/factor_autodiff.h
+
25
−
14
View file @
4f2b826a
...
@@ -1657,8 +1657,15 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, B4, B5, B6, B7, 0, 0, 0, 0, 0, 0
...
@@ -1657,8 +1657,15 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, B4, B5, B6, B7, 0, 0, 0, 0, 0, 0
// only residuals
// only residuals
if
(
jacobians
==
nullptr
)
if
(
jacobians
==
nullptr
)
{
{
return
(
*
static_cast
<
FacT
const
*>
(
this
))(
return
(
*
static_cast
<
FacT
const
*>
(
this
))(
params
[
0
],
params
[
0
],
params
[
1
],
params
[
2
],
params
[
3
],
params
[
4
],
params
[
5
],
params
[
6
],
params
[
7
],
residuals
);
params
[
1
],
params
[
2
],
params
[
3
],
params
[
4
],
params
[
5
],
params
[
6
],
params
[
7
],
residuals
);
}
}
// also compute jacobians
// also compute jacobians
else
else
...
@@ -1836,8 +1843,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, B4, B5, B6, 0, 0, 0, 0, 0, 0, 0,
...
@@ -1836,8 +1843,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, B4, B5, B6, 0, 0, 0, 0, 0, 0, 0,
// only residuals
// only residuals
if
(
jacobians
==
nullptr
)
if
(
jacobians
==
nullptr
)
{
{
return
(
*
static_cast
<
FacT
const
*>
(
this
))(
return
(
*
static_cast
<
FacT
const
*>
(
params
[
0
],
params
[
1
],
params
[
2
],
params
[
3
],
params
[
4
],
params
[
5
],
params
[
6
],
residuals
);
this
))(
params
[
0
],
params
[
1
],
params
[
2
],
params
[
3
],
params
[
4
],
params
[
5
],
params
[
6
],
residuals
);
}
}
// also compute jacobians
// also compute jacobians
else
else
...
@@ -2009,8 +2016,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, B4, B5, 0, 0, 0, 0, 0, 0, 0, 0,
...
@@ -2009,8 +2016,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, B4, B5, 0, 0, 0, 0, 0, 0, 0, 0,
// only residuals
// only residuals
if
(
jacobians
==
nullptr
)
if
(
jacobians
==
nullptr
)
{
{
return
(
*
static_cast
<
FacT
const
*>
(
this
))(
return
(
*
static_cast
<
FacT
const
*>
(
params
[
0
],
params
[
1
],
params
[
2
],
params
[
3
],
params
[
4
],
params
[
5
],
residuals
);
this
))(
params
[
0
],
params
[
1
],
params
[
2
],
params
[
3
],
params
[
4
],
params
[
5
],
residuals
);
}
}
// also compute jacobians
// also compute jacobians
else
else
...
@@ -2232,8 +2239,12 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, B4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
...
@@ -2232,8 +2239,12 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, B4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
updateJetsRealPart
(
_states_ptr
);
updateJetsRealPart
(
_states_ptr
);
// call functor
// call functor
bool
res
=
(
*
static_cast
<
FacT
const
*>
(
this
))(
bool
res
=
(
*
static_cast
<
FacT
const
*>
(
this
))(
jets_0_
.
data
(),
jets_0_
.
data
(),
jets_1_
.
data
(),
jets_2_
.
data
(),
jets_3_
.
data
(),
jets_4_
.
data
(),
residuals_jets_
.
data
());
jets_1_
.
data
(),
jets_2_
.
data
(),
jets_3_
.
data
(),
jets_4_
.
data
(),
residuals_jets_
.
data
());
if
(
not
res
)
return
false
;
if
(
not
res
)
return
false
;
// fill the residual vector
// fill the residual vector
...
@@ -2338,8 +2349,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>
...
@@ -2338,8 +2349,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>
updateJetsRealPart
(
param_vec
);
updateJetsRealPart
(
param_vec
);
// call functor
// call functor
bool
res
=
(
*
static_cast
<
FacT
const
*>
(
this
))(
bool
res
=
(
*
static_cast
<
FacT
const
*>
(
jets_0_
.
data
(),
jets_1_
.
data
(),
jets_2_
.
data
(),
jets_3_
.
data
(),
residuals_jets_
.
data
());
this
))(
jets_0_
.
data
(),
jets_1_
.
data
(),
jets_2_
.
data
(),
jets_3_
.
data
(),
residuals_jets_
.
data
());
if
(
not
res
)
return
false
;
if
(
not
res
)
return
false
;
// fill the residual array
// fill the residual array
...
@@ -2378,8 +2389,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>
...
@@ -2378,8 +2389,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, B3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>
updateJetsRealPart
(
_states_ptr
);
updateJetsRealPart
(
_states_ptr
);
// call functor
// call functor
bool
res
=
(
*
static_cast
<
FacT
const
*>
(
this
))(
bool
res
=
(
*
static_cast
<
FacT
const
*>
(
jets_0_
.
data
(),
jets_1_
.
data
(),
jets_2_
.
data
(),
jets_3_
.
data
(),
residuals_jets_
.
data
());
this
))(
jets_0_
.
data
(),
jets_1_
.
data
(),
jets_2_
.
data
(),
jets_3_
.
data
(),
residuals_jets_
.
data
());
if
(
not
res
)
return
false
;
if
(
not
res
)
return
false
;
// fill the residual vector
// fill the residual vector
...
@@ -2482,8 +2493,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>
...
@@ -2482,8 +2493,8 @@ class FactorAutodiff<FacT, RES, B0, B1, B2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0>
updateJetsRealPart
(
param_vec
);
updateJetsRealPart
(
param_vec
);
// call functor
// call functor
bool
res
=
(
*
static_cast
<
FacT
const
*>
(
this
))(
bool
res
=
(
*
static_cast
<
FacT
const
*>
(
jets_0_
.
data
(),
jets_1_
.
data
(),
jets_2_
.
data
(),
residuals_jets_
.
data
());
this
))(
jets_0_
.
data
(),
jets_1_
.
data
(),
jets_2_
.
data
(),
residuals_jets_
.
data
());
if
(
not
res
)
return
false
;
if
(
not
res
)
return
false
;
// fill the residual array
// fill the residual array
...
...
This diff is collapsed.
Click to expand it.
src/factor/factor_analytic.cpp
+
1
−
1
View file @
4f2b826a
...
@@ -92,7 +92,7 @@ bool FactorAnalytic::evaluate(const std::vector<const double*>& _states_ptr,
...
@@ -92,7 +92,7 @@ bool FactorAnalytic::evaluate(const std::vector<const double*>& _states_ptr,
// compute jacobians
// compute jacobians
jacobians_
.
resize
(
state_block_sizes_
.
size
());
jacobians_
.
resize
(
state_block_sizes_
.
size
());
evaluateJacobians
(
state_blocks_map_
,
jacobians_
,
std
::
vector
<
bool
>
(
state_block_sizes_
.
size
(),
true
));
evaluateJacobians
(
state_blocks_map_
,
jacobians_
,
std
::
vector
<
bool
>
(
state_block_sizes_
.
size
(),
true
));
return
true
;
return
true
;
};
};
...
...
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