Skip to content
Snippets Groups Projects
Verified Commit f3971b68 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

python/transform: add copy constructor

parent c68543fd
No related branches found
No related tags found
No related merge requests found
//
// 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>())
......
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