Verified Commit 213904b7 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

algo/model: fix issue when the list of joint to fix is empty

parent 0c1fd0fc
......@@ -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];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment