From f3971b683fd6113b701b147886370212dc2a84a6 Mon Sep 17 00:00:00 2001
From: Justin Carpentier <justin.carpentier@inria.fr>
Date: Sat, 14 Dec 2019 09:08:29 +0100
Subject: [PATCH] python/transform: add copy constructor

---
 python/math.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/python/math.cc b/python/math.cc
index 0b47a345..b392b0aa 100644
--- a/python/math.cc
+++ b/python/math.cc
@@ -1,7 +1,7 @@
 //
 // Software License Agreement (BSD License)
 //
-//  Copyright (c) 2019 CNRS-LAAS
+//  Copyright (c) 2019 CNRS-LAAS INRIA
 //  Author: Joseph Mirabel
 //  All rights reserved.
 //
@@ -69,12 +69,13 @@ void exposeMaths ()
   if(!eigenpy::register_symbolic_link_to_registered_type<Eigen::AngleAxisd>())
     eigenpy::exposeAngleAxis();
 
-  class_ <Transform3f> ("Transform3f", init<>())
+  class_ <Transform3f> ("Transform3f", init<>("Default constructor."))
     .def (init<Matrix3f, Vec3f>())
     .def (init<Quaternion3f, Vec3f>())
     .def (init<Matrix3f>())
     .def (init<Quaternion3f>())
     .def (init<Vec3f>())
+    .def (init<Transform3f>(args("self","other"),"Copy constructor."))
 
     .def ("getQuatRotation", &Transform3f::getQuatRotation)
     .def ("getTranslation", &Transform3f::getTranslation, return_value_policy<copy_const_reference>())
-- 
GitLab