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 }
eigenpy::exposeAngleAxis
void EIGENPY_DLLAPI exposeAngleAxis()
Definition: angle-axis.cpp:10
boost::python
Definition: alignment.hpp:49
eigenpy::exposeQuaternion
void EIGENPY_DLLAPI exposeQuaternion()
Definition: quaternion.cpp:12
testOutQuaternion
Eigen::Quaterniond testOutQuaternion()
Definition: geometry.cpp:17
eigenpy::enableEigenPy
void EIGENPY_DLLAPI enableEigenPy()
Definition: eigenpy.cpp:43
testInAngleAxis
double testInAngleAxis(Eigen::AngleAxisd aa)
Definition: geometry.cpp:15
BOOST_PYTHON_MODULE
BOOST_PYTHON_MODULE(geometry)
Definition: geometry.cpp:23
testInQuaternion
double testInQuaternion(Eigen::Quaterniond q)
Definition: geometry.cpp:21
test_geometry.res
res
Definition: test_geometry.py:88
geometry.hpp
test_geometry.q
q
Definition: test_geometry.py:25
eigenpy.hpp
testOutAngleAxis
Eigen::AngleAxisd testOutAngleAxis()
Definition: geometry.cpp:11


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Nov 2 2024 02:14:45