Skip to content

Commit a620c6b

Browse files
authored
Merge pull request #27 from jcarpent/devel
Check registration of {Quaternion,AngleAxis} classes
2 parents 5ad5a04 + 724b256 commit a620c6b

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/angle-axis.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014, Nicolas Mansard, LAAS-CNRS
2+
* Copyright 2014-2018, Nicolas Mansard, Justin Carpentier, LAAS-CNRS
33
*
44
* This file is part of eigenpy.
55
* eigenpy is free software: you can redistribute it and/or
@@ -21,6 +21,8 @@
2121
#include <Eigen/Core>
2222
#include <Eigen/Geometry>
2323

24+
#include "eigenpy/registration.hpp"
25+
2426
namespace eigenpy
2527
{
2628

@@ -112,6 +114,8 @@ namespace eigenpy
112114

113115
static void expose()
114116
{
117+
if(check_registration<AngleAxis>()) return;
118+
115119
bp::class_<AngleAxis>("AngleAxis",
116120
"AngleAxis representation of rotations.\n\n",
117121
bp::no_init)

src/quaternion.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014, Nicolas Mansard, LAAS-CNRS
2+
* Copyright 2014-2018, Nicolas Mansard, Justin Carpentier, LAAS-CNRS
33
*
44
* This file is part of eigenpy.
55
* eigenpy is free software: you can redistribute it and/or
@@ -21,6 +21,7 @@
2121
#include <Eigen/Geometry>
2222

2323
#include "eigenpy/exception.hpp"
24+
#include "eigenpy/registration.hpp"
2425

2526
namespace eigenpy
2627
{
@@ -213,6 +214,8 @@ namespace eigenpy
213214

214215
static void expose()
215216
{
217+
if(check_registration<Quaternion>()) return;
218+
216219
bp::class_<Quaternion>("Quaternion",
217220
"Quaternion representing rotation.\n\n"
218221
"Supported operations "

0 commit comments

Comments
 (0)