Commit 724b2562 authored by jcarpent's avatar jcarpent
Browse files

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

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