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
Merge requests
!190
ArMem: Revice get/find interface
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ArMem: Revice get/find interface
armem/get-find-interface
into
armem/dev
Overview
0
Commits
19
Pipelines
0
Changes
112
Merged
Rainer Kartmann
requested to merge
armem/get-find-interface
into
armem/dev
3 years ago
Overview
0
Commits
19
Pipelines
0
Changes
112
Expand
0
0
Merge request reports
Compare
armem/dev
armem/dev (base)
and
latest version
latest version
58a91dcc
19 commits,
3 years ago
112 files
+
3209
−
3385
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
112
Search (e.g. *.vue) (Ctrl+P)
source/RobotAPI/components/armem/server/ExampleMemory/ExampleMemory.cpp
+
6
−
3
Options
@@ -60,8 +60,7 @@ namespace armarx
void
ExampleMemory
::
onInitComponent
()
{
workingMemory
.
name
()
=
p
.
memoryName
;
longtermMemory
.
name
()
=
p
.
memoryName
;
this
->
setMemoryName
(
p
.
memoryName
);
// Usually, the memory server will specify a number of core segments with a specific aron type.
workingMemory
.
addCoreSegment
(
"ExampleData"
,
armem
::
example
::
ExampleData
::
toAronType
());
@@ -70,7 +69,11 @@ namespace armarx
bool
trim
=
true
;
p
.
core
.
defaultCoreSegments
=
simox
::
alg
::
split
(
p
.
core
.
_defaultSegmentsStr
,
","
,
trim
);
p
.
core
.
_defaultSegmentsStr
.
clear
();
workingMemory
.
addCoreSegments
(
p
.
core
.
defaultCoreSegments
);
for
(
const
std
::
string
&
name
:
p
.
core
.
defaultCoreSegments
)
{
workingMemory
.
addCoreSegment
(
name
);
}
}
void
ExampleMemory
::
onConnectComponent
()
Loading