Skip to content
Snippets Groups Projects
Unverified Commit a620c6b5 authored by Justin Carpentier's avatar Justin Carpentier Committed by GitHub
Browse files

Merge pull request #27 from jcarpent/devel

Check registration of {Quaternion,AngleAxis} classes
parents 5ad5a04e 724b2562
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.
* 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 "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment