1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077
|
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Sun, 14 Jun 2020 11:26:46 +0200
X-Dgit-Generated: 0.3.0~rc1+dfsg-9 ac5e69ec7602e5fa248c85d404fa0a61d8c63e3b
Subject: Use PCL 1.11 API
---
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/_pcl_180.pyx
+++ python-pcl-0.3.0~rc1+dfsg/pcl/_pcl_180.pyx
@@ -28,7 +28,6 @@ from libcpp.vector cimport vector
# cimport pcl_segmentation as pclseg
-from boost_shared_ptr cimport sp_assign
cnp.import_array()
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/boost_shared_ptr.pxd
+++ /dev/null
@@ -1,35 +0,0 @@
-# -*- coding: utf-8 -*-
-cimport pcl_defs as cpp
-from libcpp cimport bool
-
-###############################################################################
-# Types
-###############################################################################
-
-# cdef extern from "boost/smart_ptr/shared_ptr.hpp" namespace "boost" nogil:
-cdef extern from "boost/shared_ptr.hpp" namespace "boost" nogil:
- cdef cppclass shared_ptr[T]:
- shared_ptr()
- shared_ptr(T*)
- # shared_ptr(T*, T*)
- # shared_ptr(T*, T*, T*)
- # shared_ptr(weak_ptr[T])
- # shared_ptr(weak_ptr[T], boost::detail::sp_nothrow_tag)
-
- T* get()
- bool unique()
- long use_count()
- void swap(shared_ptr[T])
- void reset(T*)
-
-cdef extern from "boost_shared_ptr_assign.h" nogil:
- # void sp_assign(shared_ptr[cpp.PointCloud[cpp.PointXYZ]] &t, cpp.PointCloud[cpp.PointXYZ] *value)
- void sp_assign[T](shared_ptr[T] &p, T *value)
-
-###############################################################################
-# Enum
-###############################################################################
-
-###############################################################################
-# Activation
-###############################################################################
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/boost_shared_ptr_assign.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <pcl/point_cloud.h>
-#include <pcl/point_types.h>
-
-namespace {
- // Workaround for lack of operator= support in Cython.
- template <typename T>
- void sp_assign(boost::shared_ptr<T> &p, T *v)
- {
- p = boost::shared_ptr<T>(v);
- }
-}
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/eigen.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/eigen.pxd
@@ -6,7 +6,7 @@ from libcpp.string cimport string
from libcpp cimport bool
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
from vector cimport vector as vector2
# Cython C++ wrapper operator() overloading error
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_common.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_common.pxd
@@ -11,7 +11,7 @@ from libcpp.vector cimport vector
cimport eigen as eigen3
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
# common/angles.h
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_defs.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_defs.pxd
@@ -5,7 +5,7 @@ from libcpp.vector cimport vector
from libcpp.string cimport string
from libcpp cimport bool
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
# Eigen
from eigen cimport Vector4f
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_features.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_features.pxd
@@ -6,7 +6,7 @@ from libcpp.vector cimport vector
from libcpp.string cimport string
from libcpp cimport bool
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cimport eigen as eigen3
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_features_172.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_features_172.pxd
@@ -6,7 +6,7 @@ from libcpp.vector cimport vector
from libcpp.string cimport string
from libcpp cimport bool
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cimport eigen as eigen3
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_features_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_features_180.pxd
@@ -6,7 +6,7 @@ from libcpp.vector cimport vector
from libcpp.string cimport string
from libcpp cimport bool
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cimport eigen as eigen3
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_filters.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_filters.pxd
@@ -7,7 +7,7 @@ from libcpp.pair cimport pair
# import
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cimport eigen as eigen3
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_filters_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_filters_180.pxd
@@ -7,7 +7,7 @@ from libcpp.pair cimport pair
# import
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cimport eigen as eigen3
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_io_172.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_io_172.pxd
@@ -7,7 +7,7 @@ from libcpp.vector cimport vector
# main
cimport pcl_defs as cpp
-# from boost_shared_ptr cimport shared_ptr
+# from libcpp.memory cimport shared_ptr
cdef extern from "pcl/io/pcd_io.h" namespace "pcl::io":
# XYZ
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_kdtree.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_kdtree.pxd
@@ -4,7 +4,7 @@ from libcpp.vector cimport vector
# main
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
# flann.h
###
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_kdtree_172.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_kdtree_172.pxd
@@ -4,7 +4,7 @@ from libcpp.vector cimport vector
# main
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
# flann.h
###
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_kdtree_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_kdtree_180.pxd
@@ -4,7 +4,7 @@ from libcpp.vector cimport vector
# main
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
# flann.h
###
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_keypoints_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_keypoints_180.pxd
@@ -12,7 +12,7 @@ cimport pcl_features_172 as pclftr
cimport pcl_kdtree_172 as pclkdt
# boost
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
###############################################################################
# Types
@@ -307,7 +307,7 @@ cdef extern from "pcl/keypoints/smoothed
# uniform_sampling.h
# template <typename PointInT>
# class UniformSampling: public Keypoint<PointInT, int>
-cdef extern from "pcl/keypoints/uniform_sampling.h" namespace "pcl":
+cdef extern from "pcl/filters/uniform_sampling.h" namespace "pcl":
cdef cppclass UniformSampling[In](Keypoint[In, int]):
UniformSampling ()
# public:
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_octree_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_octree_180.pxd
@@ -4,7 +4,7 @@ from libcpp.vector cimport vector
# main
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cimport eigen as eig
from vector cimport vector as vector2
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_range_image.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_range_image.pxd
@@ -9,7 +9,7 @@ from libcpp cimport bool
cimport pcl_defs as cpp
# boost
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cimport eigen as eigen3
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_range_image_172.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_range_image_172.pxd
@@ -9,7 +9,7 @@ from libcpp cimport bool
cimport pcl_defs as cpp
# boost
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cimport eigen as eigen3
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_range_image_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_range_image_180.pxd
@@ -9,7 +9,7 @@ from libcpp cimport bool
cimport pcl_defs as cpp
# boost
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cimport eigen as eigen3
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_registration_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_registration_180.pxd
@@ -7,7 +7,7 @@ from libcpp.pair cimport pair
# main
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
# base
from eigen cimport Matrix4f
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_sample_consensus.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_sample_consensus.pxd
@@ -6,7 +6,7 @@ from libcpp cimport bool
# import
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
###############################################################################
# Types
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_sample_consensus_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_sample_consensus_180.pxd
@@ -6,7 +6,7 @@ from libcpp cimport bool
# import
cimport pcl_defs as cpp
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
###############################################################################
# Types
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_segmentation_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_segmentation_180.pxd
@@ -6,7 +6,7 @@ from libcpp.vector cimport vector
from libcpp.string cimport string
from libcpp cimport bool
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
# main
# cimport pcl_defs as cpp
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_surface_180.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_surface_180.pxd
@@ -6,7 +6,7 @@ from libcpp.vector cimport vector
# main
cimport pcl_defs as cpp
cimport pcl_kdtree as pclkdt
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
###############################################################################
# Types
@@ -2228,7 +2228,7 @@ cdef extern from "pcl/surface/mls.h" nam
void setSearchRadius (double)
void setComputeNormals (bool compute_normals)
void setPolynomialOrder(bool)
- void setPolynomialFit(int)
+ void setPolynomialOrder(int)
# void process(cpp.PointCloud[O] &) except +
void process(cpp.PointCloud[O] &) except +
@@ -2343,7 +2343,7 @@ ctypedef MovingLeastSquares[cpp.PointXYZ
# * \param[in] polynomial_fit set to true for polynomial fit
# */
# inline void
-# setPolynomialFit (bool polynomial_fit) { polynomial_fit_ = polynomial_fit; }
+# setPolynomialOrder (bool polynomial_fit) { polynomial_fit_ = polynomial_fit; }
#
# /** \brief Get the polynomial_fit value (true if the surface and normal are approximated using a polynomial). */
# inline bool
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_visualization.pyx
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_visualization.pyx
@@ -20,7 +20,6 @@ from libcpp.string cimport string
from libcpp cimport bool
from libcpp.vector cimport vector
-from boost_shared_ptr cimport sp_assign
cnp.import_array()
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pcl_visualization_defs.pxd
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pcl_visualization_defs.pxd
@@ -13,7 +13,7 @@ from pcl_range_image cimport RangeImage
cimport eigen as eigen3
# boost
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
###############################################################################
# Types
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Common/RangeImage/RangeImages_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Common/RangeImage/RangeImages_180.pxi
@@ -5,7 +5,6 @@ cimport pcl_defs as cpp
cimport pcl_range_image_180 as pcl_r_img
cimport eigen as eigen3
-from boost_shared_ptr cimport sp_assign
from cython.operator cimport dereference as deref, preincrement as inc
@@ -16,13 +15,13 @@ cdef class RangeImages:
def __cinit__(self):
# self.me = new pcl_r_img.RangeImage_t()
# NG : Compiler crash
- # sp_assign(self.thisptr_shared, new pcl_r_img.RangeImage_t())
+ # self.thisptr_shared.reset(new pcl_r_img.RangeImage_t())
pass
# def __cinit__(self, PointCloud pc not None):
# # self.me = new pcl_r_img.RangeImage_t()
# # self.point = pc.thisptr_shared
- # # sp_assign(self.thisptr_shared, new pcl_r_img.RangeImage_t())
+ # # self.thisptr_shared.reset( new pcl_r_img.RangeImage_t())
# # self.thisptr().setInputCloud(pc.thisptr_shared)
# pass
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Features/IntegralImageNormalEstimation_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Features/IntegralImageNormalEstimation_180.pxi
@@ -6,7 +6,6 @@ from libcpp cimport bool
cimport pcl_defs as cpp
cimport pcl_features_180 as pclftr
-from boost_shared_ptr cimport sp_assign
cdef extern from "minipcl.h":
void mpcl_features_NormalEstimationMethod_AVERAGE_3D_GRADIENT(pclftr.IntegralImageNormalEstimation_t ) except +
@@ -24,7 +23,7 @@ cdef class IntegralImageNormalEstimation
def __cinit__(self, _pcl.PointCloud pc not None):
- # sp_assign(self.thisptr_shared, new pclftr.IntegralImageNormalEstimation[cpp.PointXYZ, cpp.Normal]())
+ # self.thisptr_shared.reset(new pclftr.IntegralImageNormalEstimation[cpp.PointXYZ, cpp.Normal]())
# self.thisptr().setInputCloud(pc.thisptr_shared)
# NG : Reference Count
self.me = new pclftr.IntegralImageNormalEstimation_t()
@@ -73,7 +72,7 @@ cdef class IntegralImageNormalEstimation
def compute(self):
normal = PointCloud_Normal()
- sp_assign(normal.thisptr_shared, new cpp.PointCloud[cpp.Normal]())
+ normal.thisptr_shared.reset(new cpp.PointCloud[cpp.Normal]())
cdef cpp.PointCloud_Normal_t *cNormal = <cpp.PointCloud_Normal_t*>normal.thisptr()
# (<pclftr.Feature_t*>self.thisptr()).compute(deref(cNormal))
(<pclftr.Feature_t*>self.me).compute(deref(cNormal))
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Features/NormalEstimation_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Features/NormalEstimation_180.pxi
@@ -15,7 +15,7 @@ cdef class NormalEstimation:
def __cinit__(self):
self.me = new pclftr.NormalEstimation_t()
- # sp_assign(self.thisptr_shared, new pclftr.NormalEstimation[cpp.PointXYZ, cpp.Normal]())
+ # self.thisptr_shared.reset(new pclftr.NormalEstimation[cpp.PointXYZ, cpp.Normal]())
def __dealloc__(self):
del self.me
@@ -31,7 +31,7 @@ cdef class NormalEstimation:
def compute(self):
normals = PointCloud_Normal()
- sp_assign(normals.thisptr_shared, new cpp.PointCloud[cpp.Normal]())
+ normals.thisptr_shared.reset(new cpp.PointCloud[cpp.Normal]())
cdef cpp.PointCloud_Normal_t *cNormal = <cpp.PointCloud_Normal_t*>normals.thisptr()
(<pclftr.Feature_t*>self.me).compute(deref(cNormal))
return normals
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Filters/ConditionAnd_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Filters/ConditionAnd_180.pxi
@@ -7,8 +7,7 @@ cimport pcl_defs as cpp
cimport pcl_filters_180 as pclfil
from pcl_filters cimport CompareOp2
-from boost_shared_ptr cimport shared_ptr
-from boost_shared_ptr cimport sp_assign
+from libcpp.memory cimport shared_ptr
# cdef class ConditionAnd(ConditionBase):
cdef class ConditionAnd:
@@ -43,6 +42,6 @@ cdef class ConditionAnd:
self.me.addComparison(<shared_ptr[const pclfil.ComparisonBase[cpp.PointXYZ]]> fieldComp)
# NG
- # sp_assign( self.fieldCompPtr, new pclfil.FieldComparison_t(string(fname_ascii), compOp, thresh) )
+ # self.fieldCompPtr.reset(new pclfil.FieldComparison_t(string(fname_ascii), compOp, thresh) )
# self.me.addComparison(<shared_ptr[const pclfil.ComparisonBase[cpp.PointXYZ]]> self.fieldCompPtr)
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Filters/ConditionalRemoval_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Filters/ConditionalRemoval_180.pxi
@@ -7,7 +7,7 @@ cimport pcl_filters_180 as pclfil
cimport eigen as eigen3
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cdef class ConditionalRemoval:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Filters/CropBox_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Filters/CropBox_180.pxi
@@ -7,7 +7,7 @@ cimport pcl_filters_180 as pclfil
cimport eigen as eigen3
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cdef class CropBox:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Filters/CropHull_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Filters/CropHull_180.pxi
@@ -5,7 +5,7 @@ from libcpp cimport bool
cimport pcl_defs as cpp
cimport pcl_filters_180 as pclfil
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
cdef class CropHull:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/KeyPoint/HarrisKeypoint3D_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/KeyPoint/HarrisKeypoint3D_180.pxi
@@ -10,7 +10,7 @@ cimport pcl_defs as cpp
cimport pcl_keypoints_180 as keypt
# boost
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
###############################################################################
@@ -44,7 +44,7 @@ cdef class HarrisKeypoint3D:
def compute(self):
keypoints = PointCloud_PointXYZI()
- sp_assign(keypoints.thisptr_shared, new cpp.PointCloud[cpp.PointXYZI]())
+ keypoints.thisptr_shared.reset(new cpp.PointCloud[cpp.PointXYZI]())
cdef cpp.PointCloud_PointXYZI_t *ckeypoints = <cpp.PointCloud_PointXYZI_t*>keypoints.thisptr()
self.me.compute (<cpp.PointCloud[cpp.PointXYZI]&> deref(ckeypoints))
return keypoints
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/PointCloud_Normal.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/PointCloud_Normal.pxi
@@ -7,7 +7,6 @@ cnp.import_array()
from libcpp cimport bool
cimport indexing as idx
-from boost_shared_ptr cimport sp_assign
from _pcl cimport PointCloud_Normal
cdef class PointCloud_Normal:
@@ -24,8 +23,8 @@ cdef class PointCloud_Normal:
self._view_count = 0
# TODO: NG --> import pcl --> pyd Error(python shapedptr/C++ shard ptr collusion?)
- # sp_assign(<cpp.shared_ptr[cpp.PointCloud[cpp.Normal]]> self.thisptr_shared, new cpp.PointCloud[cpp.Normal]())
- sp_assign(self.thisptr_shared, new cpp.PointCloud[cpp.Normal]())
+ # <cpp.shared_ptr[cpp.PointCloud[cpp.Normal]]> self.thisptr_shared.reset(new cpp.PointCloud[cpp.Normal]())
+ self.thisptr_shared.reset(new cpp.PointCloud[cpp.Normal]())
if init is None:
return
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/PointCloud_PointNormal.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/PointCloud_PointNormal.pxi
@@ -7,7 +7,6 @@ cnp.import_array()
from libcpp cimport bool
cimport indexing as idx
-from boost_shared_ptr cimport sp_assign
from _pcl cimport PointCloud_PointNormal
cdef class PointCloud_PointNormal:
@@ -24,8 +23,8 @@ cdef class PointCloud_PointNormal:
self._view_count = 0
# TODO: NG --> import pcl --> pyd Error(python shapedptr/C++ shard ptr collusion?)
- # sp_assign(<cpp.shared_ptr[cpp.PointCloud[cpp.PointNormal]]> self.thisptr_shared, new cpp.PointCloud[cpp.PointNormal]())
- sp_assign(self.thisptr_shared, new cpp.PointCloud[cpp.PointNormal]())
+ # <cpp.shared_ptr[cpp.PointCloud[cpp.PointNormal]]> self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointNormal]())
+ self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointNormal]())
if init is None:
return
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/PointCloud_PointWithViewpoint.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/PointCloud_PointWithViewpoint.pxi
@@ -4,7 +4,6 @@ cimport pcl_io as pclio
from libcpp cimport bool
cimport indexing as idx
-from boost_shared_ptr cimport sp_assign
cdef class PointCloud_PointWithViewpoint:
"""
@@ -20,8 +19,8 @@ cdef class PointCloud_PointWithViewpoint
self._view_count = 0
# TODO: NG --> import pcl --> pyd Error(python shapedptr/C++ shard ptr collusion?)
- # sp_assign(<cpp.shared_ptr[cpp.PointCloud[cpp.PointWithViewpoint]]> self.thisptr_shared, new cpp.PointCloud[cpp.PointWithViewpoint]())
- # sp_assign(self.thisptr_shared, new cpp.PointCloud[cpp.PointWithViewpoint]())
+ # <cpp.shared_ptr[cpp.PointCloud[cpp.PointWithViewpoint]]> self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointWithViewpoint]())
+ # self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointWithViewpoint]())
if init is None:
return
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/PointCloud_PointXYZI_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/PointCloud_PointXYZI_180.pxi
@@ -18,7 +18,6 @@ cimport pcl_surface_180 as pclsf
from libcpp cimport bool
cimport indexing as idx
-from boost_shared_ptr cimport sp_assign
from _pcl cimport PointCloud_PointXYZI
cdef extern from "minipcl.h":
@@ -57,8 +56,8 @@ cdef class PointCloud_PointXYZI:
self._view_count = 0
# TODO: NG --> import pcl --> pyd Error(python shapedptr/C++ shard ptr collusion?)
- # sp_assign(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZI]]> self.thisptr_shared, new cpp.PointCloud[cpp.PointXYZI]())
- sp_assign(self.thisptr_shared, new cpp.PointCloud[cpp.PointXYZI]())
+ # <cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZI]]> self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointXYZI]())
+ self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointXYZI]())
if init is None:
return
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/PointCloud_PointXYZRGBA_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/PointCloud_PointXYZRGBA_180.pxi
@@ -18,7 +18,6 @@ cimport pcl_surface_180 as pclsf
from libcpp cimport bool
cimport indexing as idx
-from boost_shared_ptr cimport sp_assign
from _pcl cimport PointCloud_PointXYZRGBA
cdef extern from "minipcl.h":
@@ -56,8 +55,8 @@ cdef class PointCloud_PointXYZRGBA:
self._view_count = 0
- # sp_assign(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZRGBA]]> self.thisptr_shared, new cpp.PointCloud[cpp.PointXYZRGBA]())
- sp_assign(self.thisptr_shared, new cpp.PointCloud[cpp.PointXYZRGBA]())
+ # <cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZRGBA]]> self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointXYZRGBA]())
+ self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointXYZRGBA]())
if init is None:
return
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/PointCloud_PointXYZRGB_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/PointCloud_PointXYZRGB_180.pxi
@@ -18,7 +18,6 @@ cimport pcl_surface_180 as pclsf
from libcpp cimport bool
cimport indexing as idx
-from boost_shared_ptr cimport sp_assign
from _pcl cimport PointCloud_PointXYZRGB
cdef extern from "minipcl.h":
@@ -56,8 +55,8 @@ cdef class PointCloud_PointXYZRGB:
self._view_count = 0
- # sp_assign(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZRGB]]> self.thisptr_shared, new cpp.PointCloud[cpp.PointXYZRGB]())
- sp_assign(self.thisptr_shared, new cpp.PointCloud[cpp.PointXYZRGB]())
+ # <cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZRGB]]> self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointXYZRGB]())
+ self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointXYZRGB]())
if init is None:
return
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/PointCloud_PointXYZ_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/PointCloud_PointXYZ_180.pxi
@@ -21,7 +21,6 @@ cimport pcl_range_image_180 as pcl_r_img
from libcpp cimport bool
cimport indexing as idx
-from boost_shared_ptr cimport sp_assign
cdef extern from "minipcl.h":
void mpcl_compute_normals(cpp.PointCloud_t, int ksearch,
@@ -64,8 +63,8 @@ cdef class PointCloud:
self._view_count = 0
# TODO: NG --> import pcl --> pyd Error(python shapedptr/C++ shard ptr collusion?)
- # sp_assign(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZ]]> self.thisptr_shared, new cpp.PointCloud[cpp.PointXYZ]())
- sp_assign(self.thisptr_shared, new cpp.PointCloud[cpp.PointXYZ]())
+ # <cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZ]]> self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointXYZ]())
+ self.thisptr_shared.reset(new cpp.PointCloud[cpp.PointXYZ]())
if init is None:
return
@@ -535,19 +534,19 @@ cdef class PointCloud:
def make_GeneralizedIterativeClosestPoint(self):
generalizedIterativeClosestPoint = GeneralizedIterativeClosestPoint(self)
cdef pcl_reg.GeneralizedIterativeClosestPoint_t *cGeneralizedIterativeClosestPoint = <pcl_reg.GeneralizedIterativeClosestPoint_t *>generalizedIterativeClosestPoint.me
- cGeneralizedIterativeClosestPoint.setInputCloud(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZ]]> self.thisptr_shared)
+ cGeneralizedIterativeClosestPoint.setInputSource(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZ]]> self.thisptr_shared)
return generalizedIterativeClosestPoint
def make_IterativeClosestPointNonLinear(self):
iterativeClosestPointNonLinear = IterativeClosestPointNonLinear(self)
cdef pcl_reg.IterativeClosestPointNonLinear_t *cIterativeClosestPointNonLinear = <pcl_reg.IterativeClosestPointNonLinear_t *>iterativeClosestPointNonLinear.me
- cIterativeClosestPointNonLinear.setInputCloud(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZ]]> self.thisptr_shared)
+ cIterativeClosestPointNonLinear.setInputSource(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZ]]> self.thisptr_shared)
return iterativeClosestPointNonLinear
def make_IterativeClosestPoint(self):
iterativeClosestPoint = IterativeClosestPoint(self)
cdef pcl_reg.IterativeClosestPoint_t *cIterativeClosestPoint = <pcl_reg.IterativeClosestPoint_t *>iterativeClosestPoint.me
- cIterativeClosestPoint.setInputCloud(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZ]]> self.thisptr_shared)
+ cIterativeClosestPoint.setInputSource(<cpp.shared_ptr[cpp.PointCloud[cpp.PointXYZ]]> self.thisptr_shared)
return iterativeClosestPoint
def make_MomentOfInertiaEstimation(self):
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/SampleConsensus/SampleConsensusModelCylinder.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/SampleConsensus/SampleConsensusModelCylinder.pxi
@@ -9,6 +9,6 @@ cdef class SampleConsensusModelCylinder:
def __cinit__(self, PointCloud pc not None):
# shared_ptr
- sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModelCylinder[cpp.PointXYZ, cpp.Normal](pc.thisptr_shared))
+ self.thisptr_shared.reset(new pcl_sac.SampleConsensusModelCylinder[cpp.PointXYZ, cpp.Normal](pc.thisptr_shared))
pass
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/SampleConsensus/SampleConsensusModelLine.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/SampleConsensus/SampleConsensusModelLine.pxi
@@ -9,6 +9,6 @@ cdef class SampleConsensusModelLine:
def __cinit__(self, PointCloud pc not None):
# shared_ptr
- sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModelLine[cpp.PointXYZ](pc.thisptr_shared))
+ self.thisptr_shared.reset(new pcl_sac.SampleConsensusModelLine[cpp.PointXYZ](pc.thisptr_shared))
pass
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/SampleConsensus/SampleConsensusModelPlane.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/SampleConsensus/SampleConsensusModelPlane.pxi
@@ -13,7 +13,7 @@ cdef class SampleConsensusModelPlane:
# self.me = new pcl_sac.SampleConsensusModelPlane_t()
# self.me = new pcl_sac.SampleConsensusModelPlane_t(pc.thisptr_shared)
# shared_ptr
- sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModelPlane[cpp.PointXYZ](pc.thisptr_shared))
+ self.thisptr_shared.reset(new pcl_sac.SampleConsensusModelPlane[cpp.PointXYZ](pc.thisptr_shared))
pass
# def __dealloc__(self):
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/SampleConsensus/SampleConsensusModelRegistration.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/SampleConsensus/SampleConsensusModelRegistration.pxi
@@ -9,6 +9,6 @@ cdef class SampleConsensusModelRegistrat
def __cinit__(self, PointCloud pc not None):
# shared_ptr
- sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModelRegistration[cpp.PointXYZ](pc.thisptr_shared))
+ self.thisptr_shared.reset(new pcl_sac.SampleConsensusModelRegistration[cpp.PointXYZ](pc.thisptr_shared))
pass
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/SampleConsensus/SampleConsensusModelSphere.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/SampleConsensus/SampleConsensusModelSphere.pxi
@@ -2,7 +2,6 @@
cimport pcl_defs as cpp
cimport pcl_sample_consensus as pcl_sac
-from boost_shared_ptr cimport sp_assign
cdef class SampleConsensusModelSphere:
"""
@@ -12,8 +11,8 @@ cdef class SampleConsensusModelSphere:
def __cinit__(self, PointCloud pc not None):
# NG
- # sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModelSphere_t(pc.thisptr_shared))
- sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModelSphere[cpp.PointXYZ](pc.thisptr_shared))
+ # self.thisptr_shared.reset(new pcl_sac.SampleConsensusModelSphere_t(pc.thisptr_shared))
+ self.thisptr_shared.reset(new pcl_sac.SampleConsensusModelSphere[cpp.PointXYZ](pc.thisptr_shared))
pass
# def __dealloc__(self):
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/SampleConsensus/SampleConsensusModelStick.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/SampleConsensus/SampleConsensusModelStick.pxi
@@ -9,6 +9,6 @@ cdef class SampleConsensusModelStick:
def __cinit__(self, PointCloud pc not None):
# shared_ptr
- sp_assign(self.thisptr_shared, new pcl_sac.SampleConsensusModelStick[cpp.PointXYZ](pc.thisptr_shared))
+ self.thisptr_shared.reset(new pcl_sac.SampleConsensusModelStick[cpp.PointXYZ](pc.thisptr_shared))
pass
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Surface/MovingLeastSquares_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Surface/MovingLeastSquares_180.pxi
@@ -34,7 +34,7 @@ cdef class MovingLeastSquares:
Sets whether the surface and normal are approximated using a polynomial,
or only via tangent estimation.
"""
- self.me.setPolynomialFit(fit)
+ self.me.setPolynomialOrder(fit)
def set_Compute_Normals(self, bool flag):
self.me.setComputeNormals(flag)
@@ -90,7 +90,7 @@ cdef class MovingLeastSquares:
# Sets whether the surface and normal are approximated using a polynomial,
# or only via tangent estimation.
# """
-# self.me.setPolynomialFit(fit)
+# self.me.setPolynomialOrder(fit)
#
# def process(self):
# """
@@ -132,7 +132,7 @@ cdef class MovingLeastSquares_PointXYZRG
Sets whether the surface and normal are approximated using a polynomial,
or only via tangent estimation.
"""
- self.me.setPolynomialFit(fit)
+ self.me.setPolynomialOrder(fit)
def process(self):
"""
@@ -176,7 +176,7 @@ cdef class MovingLeastSquares_PointXYZRG
Sets whether the surface and normal are approximated using a polynomial,
or only via tangent estimation.
"""
- self.me.setPolynomialFit(fit)
+ self.me.setPolynomialOrder(fit)
def process(self):
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Vertices.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Vertices.pxi
@@ -13,8 +13,8 @@ cdef class Vertices:
self._view_count = 0
# self.me = new cpp.Vertices()
- # sp_assign(<cpp.shared_ptr[cpp.Vertices]> self.thisptr_shared, new cpp.Vertices())
- sp_assign(self.thisptr_shared, new cpp.Vertices())
+ # <cpp.shared_ptr[cpp.Vertices]> self.thisptr_shared.reset(new cpp.Vertices())
+ self.thisptr_shared.reset(new cpp.Vertices())
if init is None:
return
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/CloudViewing.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/CloudViewing.pxi
@@ -4,7 +4,6 @@ cimport pcl_defs as cpp
cimport numpy as cnp
cimport pcl_visualization_defs as pclvis
-from boost_shared_ptr cimport sp_assign
cdef class CloudViewing:
"""
@@ -14,8 +13,8 @@ cdef class CloudViewing:
def __cinit__(self):
# self.me = new pclvis.CloudViewer()
- # sp_assign(<cpp.shared_ptr[pclvis.CloudViewer]> self.thisptr_shared, new pclvis.CloudViewer('cloud'))
- sp_assign(self.thisptr_shared, new pclvis.CloudViewer('cloud'))
+ # <cpp.shared_ptr[pclvis.CloudViewer]> self.thisptr_shared.reset(new pclvis.CloudViewer('cloud'))
+ self.thisptr_shared.reset(new pclvis.CloudViewer('cloud'))
cdef inline pclvis.CloudViewer *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying CloudViewer
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/Handler/PointCloudColorHandleringCustom.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/Handler/PointCloudColorHandleringCustom.pxi
@@ -8,7 +8,6 @@ cimport numpy as cnp
cimport pcl_visualization_defs as pcl_vis
-from boost_shared_ptr cimport sp_assign
cdef class PointCloudColorHandleringCustom:
"""
@@ -20,11 +19,11 @@ cdef class PointCloudColorHandleringCust
# void sp_assign[T](shared_ptr[T] &p, T *value)
def __cinit__(self, _pcl.PointCloud pc, int r, int g, int b):
- sp_assign(self.thisptr_shared, new pcl_vis.PointCloudColorHandlerCustom[cpp.PointXYZ](pc.thisptr_shared, r, g, b))
+ self.thisptr_shared.reset(new pcl_vis.PointCloudColorHandlerCustom[cpp.PointXYZ](pc.thisptr_shared, r, g, b))
pass
# def __cinit__(self, _pcl.RangeImages rangeImage, int r, int g, int b):
- # sp_assign(self.thisptr_shared, new pcl_vis.PointCloudColorHandlerCustom[cpp.PointWithViewpoint](rangeImage.thisptr_shared, r, g, b))
+ # self.thisptr_shared.reset(new pcl_vis.PointCloudColorHandlerCustom[cpp.PointWithViewpoint](rangeImage.thisptr_shared, r, g, b))
# pass
def __dealloc__(self):
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/Handler/PointCloudColorHandleringGenericField.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/Handler/PointCloudColorHandleringGenericField.pxi
@@ -4,7 +4,6 @@ cimport pcl_defs as cpp
cimport numpy as cnp
cimport pcl_visualization_defs as pcl_vis
-from boost_shared_ptr cimport sp_assign
cdef class PointCloudColorHandleringGenericField:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/Handler/PointCloudColorHandleringHSVField.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/Handler/PointCloudColorHandleringHSVField.pxi
@@ -4,7 +4,6 @@ cimport pcl_defs as cpp
cimport numpy as cnp
cimport pcl_visualization_defs as pcl_vis
-from boost_shared_ptr cimport sp_assign
cdef class PointCloudColorHandleringHSVField:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/Handler/PointCloudColorHandleringRGBField.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/Handler/PointCloudColorHandleringRGBField.pxi
@@ -4,7 +4,6 @@ cimport pcl_defs as cpp
cimport numpy as cnp
cimport pcl_visualization_defs as pcl_vis
-from boost_shared_ptr cimport sp_assign
cdef class PointCloudColorHandleringRGBField:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/Handler/PointCloudColorHandleringRandom.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/Handler/PointCloudColorHandleringRandom.pxi
@@ -4,7 +4,6 @@ cimport pcl_defs as cpp
cimport numpy as cnp
cimport pcl_visualization_defs as pcl_vis
-from boost_shared_ptr cimport sp_assign
cdef class PointCloudColorHandleringRandom:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/Handler/PointCloudGeometryHandleringCustom.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/Handler/PointCloudGeometryHandleringCustom.pxi
@@ -4,7 +4,6 @@ cimport pcl_defs as cpp
cimport numpy as cnp
cimport pcl_visualization_defs as pcl_vis
-from boost_shared_ptr cimport sp_assign
cdef class PointCloudGeometryHandlerCustom:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/Handler/PointCloudGeometryHandleringSurfaceNormal.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/Handler/PointCloudGeometryHandleringSurfaceNormal.pxi
@@ -4,7 +4,6 @@ cimport pcl_defs as cpp
cimport numpy as cnp
cimport pcl_visualization_defs as pcl_vis
-from boost_shared_ptr cimport sp_assign
cdef class PointCloudGeometryHandleringSurfaceNormal:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/Handler/PointCloudGeometryHandleringXYZ.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/Handler/PointCloudGeometryHandleringXYZ.pxi
@@ -4,7 +4,6 @@ cimport pcl_defs as cpp
cimport numpy as cnp
cimport pcl_visualization_defs as pcl_vis
-from boost_shared_ptr cimport sp_assign
cdef class PointCloudGeometryHandleringXYZ:
"""
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/PCLHistogramViewing.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/PCLHistogramViewing.pxi
@@ -5,7 +5,6 @@ cimport pcl_defs as cpp
cimport numpy as cnp
cimport pcl_visualization_defs as pclvis
-from boost_shared_ptr cimport sp_assign
cdef class PCLHistogramViewing:
"""
@@ -13,7 +12,7 @@ cdef class PCLHistogramViewing:
cdef pclvis.PCLHistogramVisualizerPtr_t thisptr_shared
def __cinit__(self):
- sp_assign(self.thisptr_shared, new pclvis.PCLHistogramVisualizer())
+ self.thisptr_shared.reset(new pclvis.PCLHistogramVisualizer())
cdef inline pclvis.PCLHistogramVisualizer *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying PCLHistogramVisualizer
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/Visualization/PCLVisualizering.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/Visualization/PCLVisualizering.pxi
@@ -10,8 +10,7 @@ cimport pcl_visualization_defs as pclvis
from libcpp.string cimport string
-from boost_shared_ptr cimport shared_ptr
-from boost_shared_ptr cimport sp_assign
+from libcpp.memory cimport shared_ptr
cdef class PCLVisualizering:
@@ -20,7 +19,7 @@ cdef class PCLVisualizering:
cdef pclvis.PCLVisualizerPtr_t thisptr_shared
def __cinit__(self):
- sp_assign(self.thisptr_shared, new pclvis.PCLVisualizer('visual', True))
+ self.thisptr_shared.reset(new pclvis.PCLVisualizer('visual', True))
cdef inline pclvis.PCLVisualizer *thisptr(self) nogil:
# Shortcut to get raw pointer to underlying PCLVisualizer
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/registration/GeneralizedIterativeClosestPoint_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/registration/GeneralizedIterativeClosestPoint_180.pxi
@@ -3,7 +3,7 @@ import numpy as np
cimport _pcl
cimport pcl_defs as cpp
cimport pcl_registration_180 as pcl_reg
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
from eigen cimport Matrix4f
@@ -86,6 +86,6 @@ cdef class GeneralizedIterativeClosestPo
Sum of squares error in the estimated transformation.
"""
cdef pcl_reg.GeneralizedIterativeClosestPoint_t gicp
- gicp.setInputCloud(source.thisptr_shared)
+ gicp.setInputSource(source.thisptr_shared)
return self.run(gicp, source, target, max_iter)
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/registration/IterativeClosestPointNonLinear_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/registration/IterativeClosestPointNonLinear_180.pxi
@@ -3,7 +3,7 @@ import numpy as np
cimport _pcl
cimport pcl_defs as cpp
cimport pcl_registration_180 as pcl_reg
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
from eigen cimport Matrix4f
@@ -87,6 +87,6 @@ cdef class IterativeClosestPointNonLinea
Sum of squares error in the estimated transformation.
"""
cdef pcl_reg.IterativeClosestPointNonLinear_t icp_nl
- icp_nl.setInputCloud(source.thisptr_shared)
+ icp_nl.setInputSource(source.thisptr_shared)
return self.run(icp_nl, source, target, max_iter)
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/pxi/registration/IterativeClosestPoint_180.pxi
+++ python-pcl-0.3.0~rc1+dfsg/pcl/pxi/registration/IterativeClosestPoint_180.pxi
@@ -7,7 +7,7 @@ import numpy as np
cimport _pcl
cimport pcl_defs as cpp
cimport pcl_registration_180 as pcl_reg
-from boost_shared_ptr cimport shared_ptr
+from libcpp.memory cimport shared_ptr
from eigen cimport Matrix4f
@@ -101,5 +101,5 @@ cdef class IterativeClosestPoint:
Sum of squares error in the estimated transformation.
"""
cdef pcl_reg.IterativeClosestPoint_t icp
- icp.setInputCloud(source.thisptr_shared)
+ icp.setInputSource(source.thisptr_shared)
return self.run(icp, source, target, max_iter)
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/shared_ptr.pxd
+++ /dev/null
@@ -1,18 +0,0 @@
-cimport pcl_defs as cpp
-from libcpp cimport bool
-
-cdef extern from "boost/smart_ptr/shared_ptr.hpp" namespace "boost" nogil:
- cdef cppclass shared_ptr[T]:
- shared_ptr()
- shared_ptr(T*)
- T* get()
- bool unique()
- long use_count()
- void swap(shared_ptr[T])
- void reset(T*)
-
-cdef extern from "shared_ptr_assign.h" nogil:
- #void sp_assign(shared_ptr[cpp.PointCloud[cpp.PointXYZ]] &t, cpp.PointCloud[cpp.PointXYZ] *value)
- void sp_assign[T](shared_ptr[T] &p, T *value)
-
-
--- python-pcl-0.3.0~rc1+dfsg.orig/pcl/shared_ptr_assign.h
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <pcl/point_cloud.h>
-#include <pcl/point_types.h>
-
-namespace {
- // Workaround for lack of operator= support in Cython.
- template <typename T>
- void sp_assign(boost::shared_ptr<T> &p, T *v)
- {
- p = boost::shared_ptr<T>(v);
- }
-}
--- python-pcl-0.3.0~rc1+dfsg.orig/setup.py
+++ python-pcl-0.3.0~rc1+dfsg/setup.py
@@ -510,7 +510,7 @@ else:
os.environ['ARCHFLAGS'] = ''
# Try to find PCL. XXX we should only do this when trying to build or install.
- PCL_SUPPORTED = ["-1.10", "-1.9", "-1.8", "-1.7", "-1.6", ""] # in order of preference
+ PCL_SUPPORTED = ["-1.11", "-1.10", "-1.9", "-1.8", "-1.7", "-1.6", ""] # in order of preference
for pcl_version in PCL_SUPPORTED:
if subprocess.call(['pkg-config', 'pcl_common%s' % pcl_version]) == 0:
@@ -589,10 +589,6 @@ else:
ext_args['extra_link_args'].append('-lboost_system')
# ext_args['extra_link_args'].append('-lboost_bind')
- # Fix compile error on Ubuntu 12.04 (e.g., Travis-CI).
- ext_args['define_macros'].append(
- ("EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET", "1"))
-
if pcl_version == '-1.6':
module = [Extension("pcl._pcl", ["pcl/_pcl.pyx", "pcl/minipcl.cpp", "pcl/ProjectInliers.cpp"], language="c++", **ext_args),
# Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", **ext_args),
@@ -621,7 +617,7 @@ else:
# debug
# gdb_debug=True,
]
- elif pcl_version == '-1.10':
+ elif pcl_version == '-1.10' or pcl_version == '-1.11':
module = [Extension("pcl._pcl", ["pcl/_pcl_180.pyx", "pcl/minipcl.cpp", "pcl/ProjectInliers.cpp"], language="c++", **ext_args),
Extension("pcl.pcl_visualization", ["pcl/pcl_visualization.pyx"], language="c++", extra_compile_args=['-fno-strict-aliasing'], **ext_args),
# Extension("pcl.pcl_grabber", ["pcl/pcl_grabber.pyx", "pcl/grabber_callback.cpp"], language="c++", **ext_args),
|