@@ -118,7 +118,10 @@ void exposeBVHModel(const std::string& bvname) {
118
118
return_value_policy<manage_new_object>())
119
119
.def_pickle (PickleObject<BVH>())
120
120
.def (SerializableVisitor<BVH>())
121
- .def (eigenpy::IdVisitor<BVH>());
121
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
122
+ .def (eigenpy::IdVisitor<BVH>())
123
+ #endif
124
+ ;
122
125
}
123
126
124
127
template <typename BV>
@@ -160,7 +163,10 @@ void exposeHeightField(const std::string& bvname) {
160
163
bp::return_internal_reference<>())
161
164
.def_pickle (PickleObject<Geometry>())
162
165
.def (SerializableVisitor<Geometry>())
163
- .def (eigenpy::IdVisitor<Geometry>());
166
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
167
+ .def (eigenpy::IdVisitor<Geometry>())
168
+ #endif
169
+ ;
164
170
}
165
171
166
172
struct ConvexBaseWrapper {
@@ -288,7 +294,10 @@ void exposeShapes() {
288
294
return_value_policy<manage_new_object>())
289
295
.def_pickle (PickleObject<Box>())
290
296
.def (SerializableVisitor<Box>())
291
- .def (eigenpy::IdVisitor<Box>());
297
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
298
+ .def (eigenpy::IdVisitor<Box>())
299
+ #endif
300
+ ;
292
301
293
302
class_<Capsule, bases<ShapeBase>, shared_ptr<Capsule>>(
294
303
" Capsule" , doxygen::class_doc<Capsule>(), no_init)
@@ -301,7 +310,10 @@ void exposeShapes() {
301
310
return_value_policy<manage_new_object>())
302
311
.def_pickle (PickleObject<Capsule>())
303
312
.def (SerializableVisitor<Capsule>())
304
- .def (eigenpy::IdVisitor<Capsule>());
313
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
314
+ .def (eigenpy::IdVisitor<Capsule>())
315
+ #endif
316
+ ;
305
317
306
318
class_<Cone, bases<ShapeBase>, shared_ptr<Cone>>(
307
319
" Cone" , doxygen::class_doc<Cone>(), no_init)
@@ -314,7 +326,10 @@ void exposeShapes() {
314
326
return_value_policy<manage_new_object>())
315
327
.def_pickle (PickleObject<Cone>())
316
328
.def (SerializableVisitor<Cone>())
317
- .def (eigenpy::IdVisitor<Cone>());
329
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
330
+ .def (eigenpy::IdVisitor<Cone>())
331
+ #endif
332
+ ;
318
333
319
334
class_<ConvexBase, bases<ShapeBase>, shared_ptr<ConvexBase>, noncopyable>(
320
335
" ConvexBase" , doxygen::class_doc<ConvexBase>(), no_init)
@@ -363,7 +378,10 @@ void exposeShapes() {
363
378
.def (" polygons" , &ConvexWrapper<Triangle>::polygons)
364
379
.def_pickle (PickleObject<Convex<Triangle>>())
365
380
.def (SerializableVisitor<Convex<Triangle>>())
366
- .def (eigenpy::IdVisitor<Convex<Triangle>>());
381
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
382
+ .def (eigenpy::IdVisitor<Convex<Triangle>>())
383
+ #endif
384
+ ;
367
385
368
386
class_<Cylinder, bases<ShapeBase>, shared_ptr<Cylinder>>(
369
387
" Cylinder" , doxygen::class_doc<Cylinder>(), no_init)
@@ -377,7 +395,10 @@ void exposeShapes() {
377
395
return_value_policy<manage_new_object>())
378
396
.def_pickle (PickleObject<Cylinder>())
379
397
.def (SerializableVisitor<Cylinder>())
380
- .def (eigenpy::IdVisitor<Cylinder>());
398
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
399
+ .def (eigenpy::IdVisitor<Cylinder>())
400
+ #endif
401
+ ;
381
402
382
403
class_<Halfspace, bases<ShapeBase>, shared_ptr<Halfspace>>(
383
404
" Halfspace" , doxygen::class_doc<Halfspace>(), no_init)
@@ -392,7 +413,10 @@ void exposeShapes() {
392
413
return_value_policy<manage_new_object>())
393
414
.def_pickle (PickleObject<Halfspace>())
394
415
.def (SerializableVisitor<Halfspace>())
395
- .def (eigenpy::IdVisitor<Halfspace>());
416
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
417
+ .def (eigenpy::IdVisitor<Halfspace>())
418
+ #endif
419
+ ;
396
420
397
421
class_<Plane, bases<ShapeBase>, shared_ptr<Plane>>(
398
422
" Plane" , doxygen::class_doc<Plane>(), no_init)
@@ -406,7 +430,10 @@ void exposeShapes() {
406
430
return_value_policy<manage_new_object>())
407
431
.def_pickle (PickleObject<Plane>())
408
432
.def (SerializableVisitor<Plane>())
409
- .def (eigenpy::IdVisitor<Plane>());
433
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
434
+ .def (eigenpy::IdVisitor<Plane>())
435
+ #endif
436
+ ;
410
437
411
438
class_<Sphere, bases<ShapeBase>, shared_ptr<Sphere>>(
412
439
" Sphere" , doxygen::class_doc<Sphere>(), no_init)
@@ -418,7 +445,10 @@ void exposeShapes() {
418
445
return_value_policy<manage_new_object>())
419
446
.def_pickle (PickleObject<Sphere>())
420
447
.def (SerializableVisitor<Sphere>())
421
- .def (eigenpy::IdVisitor<Sphere>());
448
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
449
+ .def (eigenpy::IdVisitor<Sphere>())
450
+ #endif
451
+ ;
422
452
423
453
class_<Ellipsoid, bases<ShapeBase>, shared_ptr<Ellipsoid>>(
424
454
" Ellipsoid" , doxygen::class_doc<Ellipsoid>(), no_init)
@@ -432,7 +462,10 @@ void exposeShapes() {
432
462
return_value_policy<manage_new_object>())
433
463
.def_pickle (PickleObject<Ellipsoid>())
434
464
.def (SerializableVisitor<Ellipsoid>())
435
- .def (eigenpy::IdVisitor<Ellipsoid>());
465
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
466
+ .def (eigenpy::IdVisitor<Ellipsoid>())
467
+ #endif
468
+ ;
436
469
437
470
class_<TriangleP, bases<ShapeBase>, shared_ptr<TriangleP>>(
438
471
" TriangleP" , doxygen::class_doc<TriangleP>(), no_init)
@@ -447,7 +480,10 @@ void exposeShapes() {
447
480
return_value_policy<manage_new_object>())
448
481
.def_pickle (PickleObject<TriangleP>())
449
482
.def (SerializableVisitor<TriangleP>())
450
- .def (eigenpy::IdVisitor<TriangleP>());
483
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
484
+ .def (eigenpy::IdVisitor<TriangleP>())
485
+ #endif
486
+ ;
451
487
}
452
488
453
489
boost::python::tuple AABB_distance_proxy (const AABB& self, const AABB& other) {
@@ -598,7 +634,10 @@ void exposeCollisionGeometries() {
598
634
bp::return_internal_reference<>())
599
635
.def_pickle (PickleObject<AABB>())
600
636
.def (SerializableVisitor<AABB>())
601
- .def (eigenpy::IdVisitor<AABB>());
637
+ #if EIGENPY_VERSION_AT_LEAST(3, 8, 0)
638
+ .def (eigenpy::IdVisitor<AABB>())
639
+ #endif
640
+ ;
602
641
603
642
def (" translate" , (AABB (*)(const AABB&, const Vec3f&)) & translate,
604
643
bp::args (" aabb" , " t" ), " Translate the center of AABB by t" );
0 commit comments