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
!435
updated error messages for mismatching col, row dimensions
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
updated error messages for mismatching col, row dimensions
rw_eigen_error_message_update
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Philipp Seidel
requested to merge
rw_eigen_error_message_update
into
master
1 year ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
f097dc59
1 commit,
1 year ago
1 file
+
8
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
source/RobotAPI/libraries/aron/common/rw/eigen.h
+
8
−
4
Options
@@ -26,16 +26,20 @@ namespace armarx
std
::
vector
<
unsigned
char
>
data
;
aron_r
.
readNDArray
(
input
,
shape
,
typeAsString
,
data
);
ARMARX_CHECK_AND_THROW
(
ret
.
rows
()
==
shape
.
at
(
0
)
and
ret
.
cols
()
==
shape
.
at
(
1
),
::
armarx
::
aron
::
error
::
AronException
(
__PRETTY_FUNCTION__
,
"Received wrong dimensions for member 'pose'."
));
std
::
stringstream
ss
;
ss
<<
"Received wrong dimensions for matrix member. Dimensions are "
<<
shape
.
at
(
0
)
<<
","
<<
shape
.
at
(
1
)
<<
" but should be "
<<
ret
.
rows
()
<<
"/"
<<
ret
.
cols
();
ARMARX_CHECK_AND_THROW
(
typeAsString
==
TypeName
<
EigenT
>::
Get
(),
::
armarx
::
aron
::
error
::
ValueNotValidException
(
__PRETTY_FUNCTION__
,
"Received wrong typename"
,
typeAsString
,
TypeName
<
EigenT
>::
Get
()));
ARMARX_CHECK_AND_THROW
(
ret
.
rows
()
==
shape
.
at
(
0
)
and
ret
.
cols
()
==
shape
.
at
(
1
),
::
armarx
::
aron
::
error
::
AronException
(
__PRETTY_FUNCTION__
,
ss
.
str
()));
std
::
memcpy
(
reinterpret_cast
<
unsigned
char
*>
(
ret
.
data
()),
data
.
data
(),
data
.
size
());
}
Loading