11class Rtabmap < Formula
22 desc "Visual and LiDAR SLAM library and standalone application"
33 homepage "https://introlab.github.io/rtabmap"
4+ url "https://github.com/introlab/rtabmap/archive/refs/tags/0.21.4.tar.gz"
5+ sha256 "242f8da7c5d20f86a0399d6cfdd1a755e64e9117a9fa250ed591c12f38209157"
46 license "BSD-3-Clause"
5- revision 10
7+ revision 11
68 head "https://github.com/introlab/rtabmap.git" , branch : "master"
79
8- stable do
9- url "https://github.com/introlab/rtabmap/archive/refs/tags/0.21.4.tar.gz"
10- sha256 "242f8da7c5d20f86a0399d6cfdd1a755e64e9117a9fa250ed591c12f38209157"
11-
12- # Backport support for newer PCL
13- # Ref: https://github.com/introlab/rtabmap/commit/cbd3995b600fc2acc4cb57b81f132288a6c91188
14- patch :DATA
15- end
16-
1710 # Upstream doesn't create releases for all tagged versions, so we use the
1811 # `GithubLatest` strategy.
1912 livecheck do
@@ -24,11 +17,11 @@ class Rtabmap < Formula
2417 no_autobump! because : :requires_manual_review
2518
2619 bottle do
27- sha256 arm64_sonoma : "1d433bee617217b945cc97f14e98ef947b3966d804f884f047607fb51fb13852 "
28- sha256 arm64_ventura : "1e9747b0eb5689899563716f8956590a882545c2f0a9e73df82cd4148f1f198c "
29- sha256 sonoma : "99d65d4e03958e697247bf67bbce34cd78356c48e06c119883252ab0eabc9f6f "
30- sha256 ventura : "6d1567f28fac55c42410af8f0946efd7f5513a21c66bdce68a609f90918a47df "
31- sha256 cellar : :any_skip_relocation , x86_64_linux : "78f9cf656952b8ca809bd8f68b6903727b9957aedb88f592e680de09ddbbbf37 "
20+ sha256 arm64_sonoma : "fbf0965fd170b388c8fdd66a91b179cb9c7c3f3b3f7d2b68146766cb9c7e4710 "
21+ sha256 arm64_ventura : "e03225f05160f3d002063c02fdf651a2eb9ee7ee35c6d375b69a43f428c42a9f "
22+ sha256 sonoma : "8354568d383a42537112a71c0ec7d8f9404138643a645c07c1209a79dbd63756 "
23+ sha256 ventura : "1f1090acdf8d7aa10ae0e7c951b7d9f93c8c5d60973da1f85cc7ec1725f36e4b "
24+ sha256 cellar : :any_skip_relocation , x86_64_linux : "0d346715818367390b00615de1cb0b98a9f886ac9f4f61d2c42f07e5e129d2c3 "
3225 end
3326
3427 depends_on "cmake" => [ :build , :test ]
@@ -57,6 +50,10 @@ class Rtabmap < Formula
5750 end
5851
5952 def install
53+ # Backport support for newer PCL
54+ # Ref: https://github.com/introlab/rtabmap/commit/cbd3995b600fc2acc4cb57b81f132288a6c91188
55+ inreplace "corelib/src/CameraThread.cpp" , "pcl/io/io.h" , "pcl/common/io.h" if build . stable?
56+
6057 system "cmake" , "-S" , "." , "-B" , "build" , "-DCMAKE_INSTALL_RPATH=#{ rpath } " , *std_cmake_args
6158 system "cmake" , "--build" , "build"
6259 system "cmake" , "--install" , "build"
@@ -115,18 +112,3 @@ def install
115112 assert_equal version . to_s , shell_output ( "./build/test" ) . strip
116113 end
117114end
118-
119- __END__
120- diff --git a/corelib/src/CameraThread.cpp b/corelib/src/CameraThread.cpp
121- index a18fc2c1..d1486b20 100644
122- --- a/corelib/src/CameraThread.cpp
123- +++ b/corelib/src/CameraThread.cpp
124- @@ -44,7 +44,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
125- #include <rtabmap/utilite/ULogger.h>
126- #include <rtabmap/utilite/UStl.h>
127-
128- -#include <pcl/io/io.h>
129- +#include <pcl/common/io.h>
130-
131- namespace rtabmap
132- {
0 commit comments