parent
52d3ea22f4
commit
9a0eb73319
14 changed files with 273 additions and 258 deletions
@ -1,72 +1,71 @@ |
|||||||
#cython: language_level=3 |
# cython: language_level=3 |
||||||
from libcpp cimport bool |
from libcpp cimport bool |
||||||
|
|
||||||
cdef extern from "orientation.cc": |
cdef extern from "orientation.cc": |
||||||
pass |
pass |
||||||
|
|
||||||
cdef extern from "orientation.hpp": |
cdef extern from "orientation.hpp": |
||||||
cdef cppclass Quaternion "Eigen::Quaterniond": |
cdef cppclass Quaternion "Eigen::Quaterniond": |
||||||
Quaternion() |
Quaternion() |
||||||
Quaternion(double, double, double, double) |
Quaternion(double, double, double, double) |
||||||
double w() |
double w() |
||||||
double x() |
double x() |
||||||
double y() |
double y() |
||||||
double z() |
double z() |
||||||
|
|
||||||
cdef cppclass Vector3 "Eigen::Vector3d": |
cdef cppclass Vector3 "Eigen::Vector3d": |
||||||
Vector3() |
Vector3() |
||||||
Vector3(double, double, double) |
Vector3(double, double, double) |
||||||
double operator()(int) |
double operator()(int) |
||||||
|
|
||||||
cdef cppclass Matrix3 "Eigen::Matrix3d": |
cdef cppclass Matrix3 "Eigen::Matrix3d": |
||||||
Matrix3() |
Matrix3() |
||||||
Matrix3(double*) |
Matrix3(double*) |
||||||
|
double operator()(int, int) |
||||||
|
|
||||||
double operator()(int, int) |
Quaternion euler2quat(Vector3) |
||||||
|
Vector3 quat2euler(Quaternion) |
||||||
Quaternion euler2quat(Vector3) |
Matrix3 quat2rot(Quaternion) |
||||||
Vector3 quat2euler(Quaternion) |
Quaternion rot2quat(Matrix3) |
||||||
Matrix3 quat2rot(Quaternion) |
Vector3 rot2euler(Matrix3) |
||||||
Quaternion rot2quat(Matrix3) |
Matrix3 euler2rot(Vector3) |
||||||
Vector3 rot2euler(Matrix3) |
Matrix3 rot_matrix(double, double, double) |
||||||
Matrix3 euler2rot(Vector3) |
Vector3 ecef_euler_from_ned(ECEF, Vector3) |
||||||
Matrix3 rot_matrix(double, double, double) |
Vector3 ned_euler_from_ecef(ECEF, Vector3) |
||||||
Vector3 ecef_euler_from_ned(ECEF, Vector3) |
|
||||||
Vector3 ned_euler_from_ecef(ECEF, Vector3) |
|
||||||
|
|
||||||
|
|
||||||
cdef extern from "coordinates.cc": |
cdef extern from "coordinates.cc": |
||||||
cdef struct ECEF: |
cdef struct ECEF: |
||||||
double x |
double x |
||||||
double y |
double y |
||||||
double z |
double z |
||||||
|
|
||||||
cdef struct NED: |
cdef struct NED: |
||||||
double n |
double n |
||||||
double e |
double e |
||||||
double d |
double d |
||||||
|
|
||||||
cdef struct Geodetic: |
cdef struct Geodetic: |
||||||
double lat |
double lat |
||||||
double lon |
double lon |
||||||
double alt |
double alt |
||||||
bool radians |
bool radians |
||||||
|
|
||||||
ECEF geodetic2ecef(Geodetic) |
ECEF geodetic2ecef(Geodetic) |
||||||
Geodetic ecef2geodetic(ECEF) |
Geodetic ecef2geodetic(ECEF) |
||||||
|
|
||||||
cdef cppclass LocalCoord_c "LocalCoord": |
cdef cppclass LocalCoord_c "LocalCoord": |
||||||
Matrix3 ned2ecef_matrix |
Matrix3 ned2ecef_matrix |
||||||
Matrix3 ecef2ned_matrix |
Matrix3 ecef2ned_matrix |
||||||
|
|
||||||
LocalCoord_c(Geodetic, ECEF) |
LocalCoord_c(Geodetic, ECEF) |
||||||
LocalCoord_c(Geodetic) |
LocalCoord_c(Geodetic) |
||||||
LocalCoord_c(ECEF) |
LocalCoord_c(ECEF) |
||||||
|
|
||||||
NED ecef2ned(ECEF) |
NED ecef2ned(ECEF) |
||||||
ECEF ned2ecef(NED) |
ECEF ned2ecef(NED) |
||||||
NED geodetic2ned(Geodetic) |
NED geodetic2ned(Geodetic) |
||||||
Geodetic ned2geodetic(NED) |
Geodetic ned2geodetic(NED) |
||||||
|
|
||||||
cdef extern from "coordinates.hpp": |
cdef extern from "coordinates.hpp": |
||||||
pass |
pass |
||||||
|
Loading…
Reference in new issue