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
Stack Of Tasks
sot-dynamic-pinocchio
Commits
78e955c5
Commit
78e955c5
authored
Dec 15, 2011
by
Florent Lamiraux
Committed by
Florent Lamiraux florent@laas.fr
Dec 15, 2011
Browse files
Allow access by joint name in entity Dynamic.
parent
e20bce56
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/dynamic.cpp
View file @
78e955c5
...
...
@@ -1271,13 +1271,21 @@ CjrlJoint* Dynamic::getJointByName( const std::string& jointName )
else
return
m_HDR
->
rightAnkle
()
->
childJoint
(
0
);
}
else
{
throw
ExceptionDynamic
(
ExceptionDynamic
::
GENERIC
,
jointName
+
" is not a valid name."
" Valid names are
\n
"
"gaze, left-ankle, right-ankle, left-wrist,"
" right-wrist, waist, chest."
);
}
else
{
std
::
vector
<
CjrlJoint
*
>
jv
=
m_HDR
->
jointVector
();
for
(
std
::
vector
<
CjrlJoint
*
>::
const_iterator
it
=
jv
.
begin
();
it
!=
jv
.
end
();
it
++
)
{
if
((
*
it
)
->
getName
()
==
jointName
)
{
return
*
it
;
}
}
}
throw
ExceptionDynamic
(
ExceptionDynamic
::
GENERIC
,
jointName
+
" is not a valid name."
" Valid names are
\n
"
"gaze, left-ankle, right-ankle, left-wrist,"
" right-wrist, waist, chest, or any joint name."
);
}
void
Dynamic
::
cmd_createOpPointSignals
(
const
std
::
string
&
opPointName
,
...
...
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