Skip to content
Snippets Groups Projects
Commit 724b2562 authored by jcarpent's avatar jcarpent
Browse files

[Geometry] Check registration of {Quaternion,AngleAxis} classes

parent 5ad5a04e
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright 2014, Nicolas Mansard, LAAS-CNRS * Copyright 2014-2018, Nicolas Mansard, Justin Carpentier, LAAS-CNRS
* *
* This file is part of eigenpy. * This file is part of eigenpy.
* eigenpy is free software: you can redistribute it and/or * eigenpy is free software: you can redistribute it and/or
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
#include <Eigen/Core> #include <Eigen/Core>
#include <Eigen/Geometry> #include <Eigen/Geometry>
#include "eigenpy/registration.hpp"
namespace eigenpy namespace eigenpy
{ {
...@@ -112,6 +114,8 @@ namespace eigenpy ...@@ -112,6 +114,8 @@ namespace eigenpy
static void expose() static void expose()
{ {
if(check_registration<AngleAxis>()) return;
bp::class_<AngleAxis>("AngleAxis", bp::class_<AngleAxis>("AngleAxis",
"AngleAxis representation of rotations.\n\n", "AngleAxis representation of rotations.\n\n",
bp::no_init) bp::no_init)
......
/* /*
* Copyright 2014, Nicolas Mansard, LAAS-CNRS * Copyright 2014-2018, Nicolas Mansard, Justin Carpentier, LAAS-CNRS
* *
* This file is part of eigenpy. * This file is part of eigenpy.
* eigenpy is free software: you can redistribute it and/or * eigenpy is free software: you can redistribute it and/or
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <Eigen/Geometry> #include <Eigen/Geometry>
#include "eigenpy/exception.hpp" #include "eigenpy/exception.hpp"
#include "eigenpy/registration.hpp"
namespace eigenpy namespace eigenpy
{ {
...@@ -213,6 +214,8 @@ namespace eigenpy ...@@ -213,6 +214,8 @@ namespace eigenpy
static void expose() static void expose()
{ {
if(check_registration<Quaternion>()) return;
bp::class_<Quaternion>("Quaternion", bp::class_<Quaternion>("Quaternion",
"Quaternion representing rotation.\n\n" "Quaternion representing rotation.\n\n"
"Supported operations " "Supported operations "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment