Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotComponents
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Software
ArmarX
RobotComponents
Commits
5d40c932
Commit
5d40c932
authored
1 year ago
by
Fabian Reister
Browse files
Options
Downloads
Patches
Plain Diff
fix for warning (comparing to optional instead of its value)
parent
0cf31373
Branches
fix/cartographer-no-slam-results
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotComponents/libraries/cartographer/CartographerAdapter.cpp
+5
-3
5 additions, 3 deletions
...Components/libraries/cartographer/CartographerAdapter.cpp
with
5 additions
and
3 deletions
source/RobotComponents/libraries/cartographer/CartographerAdapter.cpp
+
5
−
3
View file @
5d40c932
...
...
@@ -253,10 +253,11 @@ namespace armarx::cartographer
const
DebugObserverScopedTimer
timer
(
this
,
"pushInOdomData | Entire Method"
);
if
(
lastOdomTimestamp
.
has_value
())
{
if
(
odomPose
.
timestamp
<=
lastOdomTimestamp
)
if
(
odomPose
.
timestamp
<=
lastOdomTimestamp
.
value
()
)
{
ARMARX_WARNING
<<
"Requested to add old data into odom queue. Not willing to do this."
;
<<
"Requested to add old data into odom queue. Not willing to do this. It is "
<<
(
odomPose
.
timestamp
-
lastOdomTimestamp
.
value
())
<<
"ms in the past."
;
return
;
}
}
...
...
@@ -326,7 +327,8 @@ namespace armarx::cartographer
{
ARMARX_WARNING
<<
"Requested to add old data with timestamp "
<<
data
.
timestamp
<<
" into laser queue for sensor "
<<
data
.
frame
<<
". Not willing to do this."
;
<<
data
.
frame
<<
". Not willing to do this. It is "
<<
(
data
.
timestamp
-
lastTimestamp
)
<<
"ms in the past."
;
continue
;
}
...
...
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