2023-04-26 23:42:52 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-08-18 21:20:20 +02:00
|
|
|
, fetchpatch
|
2023-04-26 23:42:52 +02:00
|
|
|
, pkg-config
|
|
|
|
, cmake
|
|
|
|
, opencv
|
|
|
|
, pcl
|
|
|
|
, libusb1
|
|
|
|
, eigen
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, qtbase
|
|
|
|
, g2o
|
|
|
|
, ceres-solver
|
|
|
|
, libpointmatcher
|
|
|
|
, octomap
|
|
|
|
, freenect
|
|
|
|
, libdc1394
|
|
|
|
, librealsense
|
|
|
|
, libGL
|
|
|
|
, libGLU
|
|
|
|
, vtkWithQt5
|
2024-04-26 22:24:03 +02:00
|
|
|
, wrapGAppsHook3
|
2023-04-26 23:42:52 +02:00
|
|
|
, liblapack
|
|
|
|
, xorg
|
|
|
|
}:
|
2022-02-09 12:03:43 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "rtabmap";
|
2024-03-10 09:20:09 +01:00
|
|
|
version = "0.21.4";
|
2022-02-09 12:03:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "introlab";
|
|
|
|
repo = "rtabmap";
|
2023-04-26 23:42:52 +02:00
|
|
|
rev = "refs/tags/${version}";
|
2024-03-10 09:20:09 +01:00
|
|
|
hash = "sha256-HrIATYRuhFfTlO4oTRZo7CM30LFVyatZJON31Fe4HTQ=";
|
2022-02-09 12:03:43 +01:00
|
|
|
};
|
|
|
|
|
2024-04-26 22:24:03 +02:00
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook wrapGAppsHook3 ];
|
2022-02-09 12:03:43 +01:00
|
|
|
buildInputs = [
|
|
|
|
## Required
|
|
|
|
opencv
|
2024-03-10 08:30:05 +01:00
|
|
|
opencv.cxxdev
|
2022-02-09 12:03:43 +01:00
|
|
|
pcl
|
2022-09-23 18:14:23 +02:00
|
|
|
liblapack
|
|
|
|
xorg.libSM
|
|
|
|
xorg.libICE
|
|
|
|
xorg.libXt
|
2022-02-09 12:03:43 +01:00
|
|
|
## Optional
|
|
|
|
libusb1
|
|
|
|
eigen
|
|
|
|
g2o
|
|
|
|
ceres-solver
|
|
|
|
# libpointmatcher - ABI mismatch
|
|
|
|
octomap
|
|
|
|
freenect
|
|
|
|
libdc1394
|
|
|
|
# librealsense - missing includedir
|
|
|
|
qtbase
|
|
|
|
libGL
|
|
|
|
libGLU
|
2023-04-26 23:42:52 +02:00
|
|
|
vtkWithQt5
|
2022-02-09 12:03:43 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# Disable warnings that are irrelevant to us as packagers
|
2022-07-04 03:26:36 +02:00
|
|
|
cmakeFlags = [ "-Wno-dev" ];
|
2022-02-09 12:03:43 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Real-Time Appearance-Based 3D Mapping";
|
|
|
|
homepage = "https://introlab.github.io/rtabmap/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ ckie ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|