Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
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
Container Registry
Model registry
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
RobotAPI
Commits
fd2ccbf9
Commit
fd2ccbf9
authored
3 weeks ago
by
Fabian Reister
Browse files
Options
Downloads
Patches
Plain Diff
armem_laser_scans/client/common/Reader: checking if core segment and provider segment exist
parent
32a67b31
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#22653
failed
3 weeks ago
Stage: build-and-test
Stage: deploy
Stage: post-deploy-test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/libraries/armem_laser_scans/client/common/Reader.cpp
+21
-0
21 additions, 0 deletions
...tAPI/libraries/armem_laser_scans/client/common/Reader.cpp
with
21 additions
and
0 deletions
source/RobotAPI/libraries/armem_laser_scans/client/common/Reader.cpp
+
21
−
0
View file @
fd2ccbf9
...
@@ -200,6 +200,27 @@ namespace armarx::armem::laser_scans::client
...
@@ -200,6 +200,27 @@ namespace armarx::armem::laser_scans::client
.
errorMessage
=
qResult
.
errorMessage
};
.
errorMessage
=
qResult
.
errorMessage
};
}
}
if
(
not
qResult
.
memory
.
hasCoreSegment
(
constants
::
memoryName
))
{
ARMARX_VERBOSE
<<
"No core segment `"
<<
constants
::
memoryName
<<
"` found in memory!"
;
return
{.
laserScans
=
{},
.
sensors
=
{},
.
status
=
Result
::
Status
::
Error
,
.
errorMessage
=
"No core segment `"
+
constants
::
memoryName
+
"`found in memory!"
};
}
if
(
not
qResult
.
memory
.
getCoreSegment
(
constants
::
memoryName
)
.
hasProviderSegment
(
query
.
agent
))
{
ARMARX_VERBOSE
<<
"No provider segment `"
<<
query
.
agent
<<
"` found in memory!"
;
return
{.
laserScans
=
{},
.
sensors
=
{},
.
status
=
Result
::
Status
::
Error
,
.
errorMessage
=
"No provider segment `"
+
query
.
agent
+
"`found in memory!"
};
}
// now create result from memory
// now create result from memory
const
wm
::
ProviderSegment
&
providerSegment
=
const
wm
::
ProviderSegment
&
providerSegment
=
qResult
.
memory
.
getCoreSegment
(
constants
::
memoryName
).
getProviderSegment
(
query
.
agent
);
qResult
.
memory
.
getCoreSegment
(
constants
::
memoryName
).
getProviderSegment
(
query
.
agent
);
...
...
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