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


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Apr 17 2021 02:37:59