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
!150
Change ExampleMemoryClient
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Change ExampleMemoryClient
ExampleMemoryClient_SinWaveOutput
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Raphael Grimm
requested to merge
ExampleMemoryClient_SinWaveOutput
into
master
3 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
commit data every iteration
add some changing data (set the_double to sin of the current time)
increase frequency of run
add comments
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
5e1ff54b
1 commit,
3 years ago
1 file
+
10
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp
+
10
−
4
Options
@@ -132,11 +132,15 @@ namespace armarx
queryExampleData
();
}
CycleUtil
c
(
100
0
);
CycleUtil
c
(
100
);
int
i
=
0
;
while
(
!
task
->
isStopped
()
&&
i
++
<
100
)
while
(
!
task
->
isStopped
())
{
commitSingleSnapshot
(
entityID
);
commitExampleData
();
if
(
i
++
<
100
)
{
commitSingleSnapshot
(
entityID
);
}
c
.
waitForCycleDuration
();
}
}
@@ -311,6 +315,7 @@ namespace armarx
armem
::
Time
time
=
armem
::
Time
::
now
();
armem
::
Commit
commit
;
//default
{
armem
::
EntityUpdate
&
update
=
commit
.
updates
.
emplace_back
();
update
.
entityID
=
providerID
.
withEntityName
(
"default"
);
@@ -319,6 +324,7 @@ namespace armarx
armem
::
example
::
ExampleData
primitive
;
update
.
instancesData
=
{
primitive
.
toAron
()
};
}
//the answer
{
armem
::
EntityUpdate
&
update
=
commit
.
updates
.
emplace_back
();
update
.
entityID
=
providerID
.
withEntityName
(
"the answer"
);
@@ -326,7 +332,7 @@ namespace armarx
armem
::
example
::
ExampleData
data
;
data
.
the_bool
=
true
;
data
.
the_double
=
2
*
42.42
;
data
.
the_double
=
std
::
sin
(
time
.
toSecondsDouble
())
;
data
.
the_float
=
21.5
;
data
.
the_int
=
42
;
data
.
the_long
=
424242
;
Loading