Skip to content
GitLab
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
pinocchio
Commits
213904b7
Verified
Commit
213904b7
authored
Apr 27, 2021
by
Justin Carpentier
Browse files
algo/model: fix issue when the list of joint to fix is empty
parent
0c1fd0fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/algorithm/model.hxx
View file @
213904b7
...
...
@@ -332,7 +332,7 @@ namespace pinocchio
for
(
JointIndex
joint_id
=
1
;
joint_id
<
(
JointIndex
)
input_model
.
njoints
;
++
joint_id
)
{
const
JointIndex
joint_id_to_lock
=
(
current_index_to_lock
<
list_of_joints_to_lock
.
size
())
?
list_of_joints_to_lock
[
current_index_to_lock
]
:
input_model
.
joints
.
size
()
;
const
JointIndex
joint_id_to_lock
=
(
current_index_to_lock
<
list_of_joints_to_lock
.
size
())
?
list_of_joints_to_lock
[
current_index_to_lock
]
:
0
;
const
JointIndex
input_parent_joint_index
=
input_model
.
parents
[
joint_id
];
const
std
::
string
&
joint_name
=
input_model
.
names
[
joint_id
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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