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
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lennard Hofmann
RobotAPI
Commits
2e64c95e
Commit
2e64c95e
authored
3 years ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Disable image storing in example client
parent
dd51f671
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp
+14
-12
14 additions, 12 deletions
.../armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp
with
14 additions
and
12 deletions
source/RobotAPI/components/armem/client/ExampleMemoryClient/ExampleMemoryClient.cpp
+
14
−
12
View file @
2e64c95e
...
...
@@ -39,8 +39,12 @@
#include
<RobotAPI/components/armem/server/ExampleMemory/aron/ExampleData.aron.generated.h>
#define STORE_IMAGES 0
#if STORE_IMAGES
#include
<opencv2/imgcodecs.hpp>
#include
<opencv2/imgproc.hpp>
#endif
namespace
armarx
...
...
@@ -415,12 +419,11 @@ namespace armarx
pixel
.
z
=
color
.
b
;
});
if
(
true
)
{
cv
::
Mat
out
;
cv
::
cvtColor
(
image
,
out
,
CV_RGB2BGR
);
cv
::
imwrite
(
"the_rgb24_image.png"
,
out
);
}
#if STORE_IMAGES
cv
::
Mat
out
;
cv
::
cvtColor
(
image
,
out
,
CV_RGB2BGR
);
cv
::
imwrite
(
"the_rgb24_image.png"
,
out
);
#endif
}
{
cv
::
Mat
&
image
=
data
.
the_depth32_image
;
...
...
@@ -430,6 +433,7 @@ namespace armarx
pixel
=
100
*
float
(
position
[
0
]
+
position
[
1
])
/
float
(
image
.
rows
+
image
.
cols
);
});
#if STORE_IMAGES
cmap
.
set_vlimits
(
0
,
100
);
cv
::
Mat
rgb
(
image
.
rows
,
image
.
cols
,
CV_8UC3
);
using
Pixel
=
cv
::
Point3_
<
uint8_t
>
;
...
...
@@ -441,12 +445,10 @@ namespace armarx
pixel
.
z
=
color
.
b
;
});
if
(
true
)
{
cv
::
Mat
out
;
cv
::
cvtColor
(
rgb
,
out
,
CV_RGB2BGR
);
cv
::
imwrite
(
"the_depth32_image.png"
,
out
);
}
cv
::
Mat
out
;
cv
::
cvtColor
(
rgb
,
out
,
CV_RGB2BGR
);
cv
::
imwrite
(
"the_depth32_image.png"
,
out
);
#endif
}
update
.
instancesData
=
{
data
.
toAron
()
};
...
...
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