From 2428bf92436ec9f88421e3b0a8f8ca22eea4f2ea Mon Sep 17 00:00:00 2001
From: Florent Lamiraux <florent@laas.fr>
Date: Mon, 8 Apr 2019 13:23:20 +0200
Subject: [PATCH] Fix assertion

---
 src/graph/helper.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/graph/helper.cc b/src/graph/helper.cc
index a9132c9..815edbc 100644
--- a/src/graph/helper.cc
+++ b/src/graph/helper.cc
@@ -1102,7 +1102,7 @@ namespace hpp {
             // Create object lock
 	    // Loop over all frames of object, detect joint and create locked
 	    // joint.
-            assert (robot.frameIndices.has (od.name));
+            assert (robot.robotFrames (od.name).size () != 0);
             BOOST_FOREACH (const FrameIndex& f, robot.robotFrames (od.name)) {
               if (model.frames[f].type != ::pinocchio::JOINT) continue;
               const JointIndex j = model.frames[f].parent;
-- 
GitLab