geometry.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2014-2019, CNRS
3  * Copyright 2018-2023, INRIA
4  */
5 
6 #include "eigenpy/eigenpy.hpp"
7 #include "eigenpy/geometry.hpp"
8 
9 namespace bp = boost::python;
10 
11 Eigen::AngleAxisd testOutAngleAxis() {
12  return Eigen::AngleAxisd(.1, Eigen::Vector3d::UnitZ());
13 }
14 
15 double testInAngleAxis(Eigen::AngleAxisd aa) { return aa.angle(); }
16 
17 Eigen::Quaterniond testOutQuaternion() {
18  Eigen::Quaterniond res(1, 2, 3, 4);
19  return res;
20 }
21 double testInQuaternion(Eigen::Quaterniond q) { return q.norm(); }
22 
25 
28 
29  bp::def("testOutAngleAxis", &testOutAngleAxis);
30  bp::def("testInAngleAxis", &testInAngleAxis);
31 
32  bp::def("testOutQuaternion", &testOutQuaternion);
33  bp::def("testInQuaternion", &testInQuaternion);
34 }
Eigen::AngleAxisd testOutAngleAxis()
Definition: geometry.cpp:11
void EIGENPY_DLLAPI exposeQuaternion()
Definition: quaternion.cpp:12
Eigen::Quaterniond testOutQuaternion()
Definition: geometry.cpp:17
void EIGENPY_DLLAPI enableEigenPy()
Definition: eigenpy.cpp:29
double testInAngleAxis(Eigen::AngleAxisd aa)
Definition: geometry.cpp:15
double testInQuaternion(Eigen::Quaterniond q)
Definition: geometry.cpp:21
BOOST_PYTHON_MODULE(geometry)
Definition: geometry.cpp:23
void EIGENPY_DLLAPI exposeAngleAxis()
Definition: angle-axis.cpp:10


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Fri Jun 2 2023 02:10:26