Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
hpp-fcl
Commits
f3971b68
Verified
Commit
f3971b68
authored
Dec 14, 2019
by
Justin Carpentier
Browse files
python/transform: add copy constructor
parent
c68543fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/math.cc
View file @
f3971b68
//
// 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
>
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment