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
Guilhem Saurel
pinocchio
Commits
8521e984
Commit
8521e984
authored
Sep 27, 2016
by
jcarpent
Browse files
[Parsers] Fix bug for the return value of getNeutralConfig
parent
a8c2ad85
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/parsers/srdf.hpp
View file @
8521e984
...
...
@@ -141,8 +141,6 @@ namespace se3
const
std
::
string
&
filename
,
const
bool
verbose
)
throw
(
std
::
invalid_argument
)
{
const
Eigen
::
VectorXd
neutralConfig
(
model
.
nq
);
// Check extension
const
std
::
string
extension
=
filename
.
substr
(
filename
.
find_last_of
(
'.'
)
+
1
);
if
(
extension
!=
"srdf"
)
...
...
@@ -200,13 +198,13 @@ namespace se3
}
}
}
return
neutralConfig
;
return
model
.
neutralConfig
uration
;
}
}
}
// BOOST_FOREACH
assert
(
false
&&
"no half_sitting configuration found in the srdf file"
);
// Should we throw something here ?
return
neutralConfig
;
// warning : uninitialized vector is returned
return
Eigen
::
VectorXd
::
Constant
(
model
.
nq
,
NAN
)
;
// warning : uninitialized vector is returned
}
}
}
// namespace se3
...
...
Write
Preview
Supports
Markdown
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