Skip to content
Snippets Groups Projects
Commit 2428bf92 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Joseph Mirabel
Browse files

Fix assertion

parent bfd77d62
No related branches found
No related tags found
No related merge requests found
...@@ -1102,7 +1102,7 @@ namespace hpp { ...@@ -1102,7 +1102,7 @@ namespace hpp {
// Create object lock // Create object lock
// Loop over all frames of object, detect joint and create locked // Loop over all frames of object, detect joint and create locked
// joint. // joint.
assert (robot.frameIndices.has (od.name)); assert (robot.robotFrames (od.name).size () != 0);
BOOST_FOREACH (const FrameIndex& f, robot.robotFrames (od.name)) { BOOST_FOREACH (const FrameIndex& f, robot.robotFrames (od.name)) {
if (model.frames[f].type != ::pinocchio::JOINT) continue; if (model.frames[f].type != ::pinocchio::JOINT) continue;
const JointIndex j = model.frames[f].parent; const JointIndex j = model.frames[f].parent;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment