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
Humanoid Path Planner
hpp-model
Commits
36a80193
Commit
36a80193
authored
Nov 10, 2014
by
Joseph Mirabel
Committed by
Joseph Mirabel
Dec 03, 2014
Browse files
Add method Device::neutralConfiguration
parent
758640d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/hpp/model/device.hh
View file @
36a80193
...
...
@@ -173,6 +173,9 @@ namespace hpp {
currentConfiguration_
=
configuration
;
}
}
/// Get the neutral configuration
Configuration_t
neutralConfiguration
()
const
;
/// Get current velocity
const
vector_t
&
currentVelocity
()
const
{
...
...
src/device.cc
View file @
36a80193
...
...
@@ -529,6 +529,17 @@ namespace hpp {
}
}
Configuration_t
Device
::
neutralConfiguration
()
const
{
Configuration_t
nc
(
configSize
());
const
JointVector_t
&
jv
=
getJointVector
();
for
(
JointVector_t
::
const_iterator
it
=
jv
.
begin
();
it
!=
jv
.
end
();
it
++
)
nc
.
segment
((
*
it
)
->
rankInConfiguration
(),
(
*
it
)
->
configSize
())
=
(
*
it
)
->
neutralConfiguration
();
return
nc
;
}
void
Device
::
resizeJacobians
()
{
jacobianCom_
.
resize
(
3
,
numberDof_
);
...
...
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