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
2e92444f
Commit
2e92444f
authored
4 years ago
by
Médéric Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
Add default behaviour for processor pose if time tolerance not set
parent
c336cdc9
No related branches found
No related tags found
1 merge request
!412
Resolve "Implement a Pose sensor"
Pipeline
#6405
passed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/processor/processor_pose.cpp
+6
-1
6 additions, 1 deletion
src/processor/processor_pose.cpp
test/gtest_processor_and_factor_pose_3d_with_extrinsics.cpp
+2
-1
2 additions, 1 deletion
test/gtest_processor_and_factor_pose_3d_with_extrinsics.cpp
with
8 additions
and
2 deletions
src/processor/processor_pose.cpp
+
6
−
1
View file @
2e92444f
...
...
@@ -29,7 +29,12 @@ void ProcessorPose::createFactorIfNecessary(){
{
auto
kf_it
=
buffer_pack_kf_
.
getContainer
().
begin
();
TimeStamp
t
=
kf_it
->
first
;
auto
cap_it
=
buffer_capture_
.
selectIterator
(
t
,
kf_it
->
second
->
time_tolerance
);
double
time_tolerance
=
std
::
min
(
getTimeTolerance
(),
kf_it
->
second
->
time_tolerance
);
if
(
getTimeTolerance
()
==
0.0
){
WOLF_WARN
(
"Time tolerance set to zero -> value not used"
);
time_tolerance
=
kf_it
->
second
->
time_tolerance
;
}
auto
cap_it
=
buffer_capture_
.
selectIterator
(
t
,
time_tolerance
);
// if capture with corresponding timestamp is not found, stop and assume you will get it later
if
(
cap_it
==
buffer_capture_
.
getContainer
().
end
())
...
...
This diff is collapsed.
Click to expand it.
test/gtest_processor_and_factor_pose_3d_with_extrinsics.cpp
+
2
−
1
View file @
2e92444f
/**
* \file gtest_factor_pose_with_extrinsics.cpp
*
* Created on: Feb
a
9, 2020
* Created on: Feb
1
9, 2020
* \author: mfourmy
*/
...
...
@@ -116,6 +116,7 @@ class FactorPose3dWithExtrinsicsBase_Test : public testing::Test
Vector7d
extr
;
extr
<<
b_p_bm_
,
b_q_m_
.
coeffs
();
sensor_pose_
=
problem_
->
installSensor
(
"SensorPose"
,
"pose"
,
extr
,
intr_sp
);
auto
params_proc
=
std
::
make_shared
<
ParamsProcessorPose
>
();
params_proc
->
time_tolerance
=
0.5
;
auto
proc_pose
=
problem_
->
installProcessor
(
"ProcessorPose"
,
"pose"
,
sensor_pose_
,
params_proc
);
// somehow by default the sensor extrinsics is fixed
sensor_pose_
->
unfixExtrinsics
();
...
...
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