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
acb69801
Commit
acb69801
authored
1 year ago
by
Rainer Kartmann
Browse files
Options
Downloads
Patches
Plain Diff
Get rows and cols from data instead of type
parent
494eeaa9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/libraries/armem_gui/instance/display_visitors/TypedDataDisplayVisitor.cpp
+4
-2
4 additions, 2 deletions
...gui/instance/display_visitors/TypedDataDisplayVisitor.cpp
with
4 additions
and
2 deletions
source/RobotAPI/libraries/armem_gui/instance/display_visitors/TypedDataDisplayVisitor.cpp
+
4
−
2
View file @
acb69801
...
...
@@ -104,7 +104,9 @@ namespace armarx::aron
TypedDataDisplayVisitor
::
processMatrix
(
const
type
::
Matrix
&
type
,
const
data
::
NDArray
&
data
)
{
Eigen
::
Map
<
Eigen
::
Matrix
<
ScalarT
,
Eigen
::
Dynamic
,
Eigen
::
Dynamic
>>
m
(
reinterpret_cast
<
ScalarT
*>
(
data
.
getData
()),
type
.
getRows
(),
type
.
getCols
());
reinterpret_cast
<
ScalarT
*>
(
data
.
getData
()),
data
.
getShape
().
at
(
0
),
data
.
getShape
().
at
(
1
));
value
<<
m
.
format
(
eigenIof
);
}
...
...
@@ -161,7 +163,7 @@ namespace armarx::aron
auto
t
=
*
type
::
Matrix
::
DynamicCastAndCheck
(
type
);
auto
d
=
*
data
::
NDArray
::
DynamicCastAndCheck
(
data
);
if
(
std
::
max
(
t
.
get
Rows
(
),
t
.
get
Cols
(
))
>
10
)
if
(
std
::
max
(
d
.
get
Shape
().
at
(
0
),
d
.
get
Shape
().
at
(
1
))
>
10
)
{
// Just show the shape.
value
<<
DataDisplayVisitor
::
getValue
(
data
);
...
...
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