From ea460d41b616b64735951007eac5b72a52617c77 Mon Sep 17 00:00:00 2001
From: Joseph Mirabel <jmirabel@laas.fr>
Date: Wed, 17 Aug 2016 10:15:17 +0200
Subject: [PATCH] [Minor] Fix deprecated warning

---
 src/parsers/urdf/model.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/parsers/urdf/model.cpp b/src/parsers/urdf/model.cpp
index 35524db01..9284ec16e 100644
--- a/src/parsers/urdf/model.cpp
+++ b/src/parsers/urdf/model.cpp
@@ -39,7 +39,7 @@ namespace se3
                              const std::string & body_name)
       {
         if (Y == NULL) {
-          model.addFrame(body_name, jid, placement, BODY);
+          model.addFrame(Frame(body_name, jid, placement, BODY));
         } else {
           model.appendBodyToJoint(jid, convertFromUrdf(*Y), placement, body_name);
         }
@@ -416,7 +416,7 @@ namespace se3
               nextPlacementOffset = jointPlacement;
               
               // Add a frame in the model to keep trace of this fixed joint
-              model.addFrame(joint->name, parent_joint_id, nextPlacementOffset, FIXED_JOINT);
+              model.addFrame(Frame(joint->name, parent_joint_id, nextPlacementOffset, FIXED_JOINT));
               
               //for the children of the current link, set their parent to be
               //the the parent of the current link.
-- 
GitLab