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
Merge requests
!117
add theta th in ProcessorOdom2D
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
add theta th in ProcessorOdom2D
odom_2d
into
master
Overview
1
Commits
1
Pipelines
0
Changes
2
Merged
Jeremie Deray
requested to merge
odom_2d
into
master
7 years ago
Overview
1
Commits
1
Pipelines
0
Changes
2
Expand
Add a
theta
threshold for the key-frame creation of the
ProcessorOdom2D
.
1
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
f585e678
1 commit,
7 years ago
2 files
+
26
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/processor_odom_2D.cpp
+
11
−
4
Options
@@ -5,24 +5,31 @@ namespace wolf
ProcessorBasePtr
ProcessorOdom2D
::
create
(
const
std
::
string
&
_unique_name
,
const
ProcessorParamsBasePtr
_params
,
const
SensorBasePtr
)
{
Scalar
dist_traveled_th
;
Scalar
theta_traveled_th
;
Scalar
cov_det_th
;
Scalar
elapsed_time_th
;
if
(
_params
)
{
std
::
shared_ptr
<
ProcessorParamsOdom2D
>
params
=
std
::
static_pointer_cast
<
ProcessorParamsOdom2D
>
(
_params
);
dist_traveled_th
=
params
->
dist_traveled_th_
;
cov_det_th
=
params
->
cov_det_th_
;
elapsed_time_th
=
params
->
elapsed_time_th_
;
dist_traveled_th
=
params
->
dist_traveled_th_
;
theta_traveled_th
=
params
->
theta_traveled_th_
;
cov_det_th
=
params
->
cov_det_th_
;
elapsed_time_th
=
params
->
elapsed_time_th_
;
}
else
{
std
::
cout
<<
__FILE__
<<
":"
<<
__FUNCTION__
<<
"() : No parameters provided. Using dummy set."
<<
std
::
endl
;
dist_traveled_th
=
1
;
theta_traveled_th
=
0.17
;
cov_det_th
=
1
;
elapsed_time_th
=
1
;
}
ProcessorOdom2DPtr
prc_ptr
=
std
::
make_shared
<
ProcessorOdom2D
>
(
dist_traveled_th
,
cov_det_th
,
elapsed_time_th
);
ProcessorOdom2DPtr
prc_ptr
=
std
::
make_shared
<
ProcessorOdom2D
>
(
dist_traveled_th
,
theta_traveled_th
,
cov_det_th
,
elapsed_time_th
);
prc_ptr
->
setName
(
_unique_name
);
return
prc_ptr
;
}
Loading