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
!369
Updates/a6u1/2023 07 26
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Updates/a6u1/2023 07 26
updates/a6u1/2023-07-26
into
master
Overview
0
Commits
6
Pipelines
0
Changes
2
Merged
Fabian Tërnava
requested to merge
updates/a6u1/2023-07-26
into
master
1 year ago
Overview
0
Commits
6
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Viewing commit
6af57c92
Prev
Next
Show latest version
2 files
+
29
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
6af57c92
additional visu
· 6af57c92
armar-user
authored
1 year ago
source/RobotAPI/libraries/armem_robot_state/server/common/Visu.cpp
+
24
−
0
Options
@@ -117,6 +117,24 @@ namespace armarx::armem::server::robot_state
}
}
void
Visu
::
visualizeFramesIndividual
(
viz
::
Layer
&
layerFrames
,
const
std
::
unordered_map
<
std
::
string
,
std
::
vector
<
Eigen
::
Affine3f
>>&
frames
)
{
std
::
vector
<
std
::
string
>
FRAME_NAMES
{
/*world*/
"map"
,
"odom"
,
"robot"
};
for
(
const
auto
&
[
robotName
,
robotFrames
]
:
frames
)
{
int
i
=
0
;
for
(
const
auto
&
frame
:
robotFrames
)
{
layerFrames
.
add
(
viz
::
Pose
(
robotName
+
FRAME_NAMES
.
at
(
i
++
)).
pose
(
frame
.
matrix
()).
scale
(
3
));
}
}
}
void
Visu
::
visualizeRun
()
{
@@ -213,6 +231,12 @@ namespace armarx::armem::server::robot_state
TIMING_END_STREAM
(
tVisuBuildLayers
,
ARMARX_DEBUG
);
{
viz
::
Layer
layerFrames
=
arviz
.
layer
(
"FramesIndividual"
);
visualizeFramesIndividual
(
layerFrames
,
frames
);
layers
.
push_back
(
layerFrames
);
}
// Commit layers.
Loading