Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Olivier Stasse
sot-core
Commits
22d07260
Commit
22d07260
authored
May 15, 2020
by
Joseph Mirabel
Committed by
olivier stasse
May 20, 2020
Browse files
[SOT] check size of projection matrix.
parent
f10dcdf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/sot/sot.cpp
View file @
22d07260
...
...
@@ -501,8 +501,13 @@ dynamicgraph::Vector &Sot::computeControlLaw(dynamicgraph::Vector &control,
// Get initial projector if any.
if
(
proj0SIN
.
isPlugged
())
{
const
Matrix
&
K
=
proj0SIN
.
access
(
iterTime
);
makeMap
(
kernel
,
K
);
has_kernel
=
true
;
if
(
K
.
rows
()
==
nbJoints
)
{
makeMap
(
kernel
,
K
);
has_kernel
=
true
;
}
else
{
DYNAMIC_GRAPH_ENTITY_ERROR_STREAM
(
*
this
)
<<
"Projector of "
<<
getName
()
<<
" has "
<<
K
.
rows
()
<<
" rows while "
<<
nbJoints
<<
" expected.
\n
"
;
}
}
for
(
StackType
::
iterator
iter
=
stack
.
begin
();
iter
!=
stack
.
end
();
++
iter
)
{
sotSTARTPARTCOUNTERS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment