Verified Commit f3971b68 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python/transform: add copy constructor

parent c68543fd
// //
// Software License Agreement (BSD License) // Software License Agreement (BSD License)
// //
// Copyright (c) 2019 CNRS-LAAS // Copyright (c) 2019 CNRS-LAAS INRIA
// Author: Joseph Mirabel // Author: Joseph Mirabel
// All rights reserved. // All rights reserved.
// //
...@@ -69,12 +69,13 @@ void exposeMaths () ...@@ -69,12 +69,13 @@ void exposeMaths ()
if(!eigenpy::register_symbolic_link_to_registered_type<Eigen::AngleAxisd>()) if(!eigenpy::register_symbolic_link_to_registered_type<Eigen::AngleAxisd>())
eigenpy::exposeAngleAxis(); eigenpy::exposeAngleAxis();
class_ <Transform3f> ("Transform3f", init<>()) class_ <Transform3f> ("Transform3f", init<>("Default constructor."))
.def (init<Matrix3f, Vec3f>()) .def (init<Matrix3f, Vec3f>())
.def (init<Quaternion3f, Vec3f>()) .def (init<Quaternion3f, Vec3f>())
.def (init<Matrix3f>()) .def (init<Matrix3f>())
.def (init<Quaternion3f>()) .def (init<Quaternion3f>())
.def (init<Vec3f>()) .def (init<Vec3f>())
.def (init<Transform3f>(args("self","other"),"Copy constructor."))
.def ("getQuatRotation", &Transform3f::getQuatRotation) .def ("getQuatRotation", &Transform3f::getQuatRotation)
.def ("getTranslation", &Transform3f::getTranslation, return_value_policy<copy_const_reference>()) .def ("getTranslation", &Transform3f::getTranslation, return_value_policy<copy_const_reference>())
Supports Markdown
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