summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Henrik Bruhn2020-01-16 21:03:28 +0100
committerJan-Henrik Bruhn2020-01-16 21:03:28 +0100
commitdbc9d256eb36ec4ef55d41e16c68f4d5d874c558 (patch)
tree7eb036032ebd059df7ccd9e1335cd931d688c989
downloadaur-dbc9d256eb36ec4ef55d41e16c68f4d5d874c558.tar.gz
Initial commit of ros melodic cartographer_ros
-rw-r--r--.SRCINFO63
-rw-r--r--PKGBUILD100
2 files changed, 163 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..cb474d40921
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,63 @@
+pkgbase = ros-melodic-cartographer-ros
+ pkgdesc = ROS - Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations.
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://github.com/googlecartographer/cartographer_ros
+ arch = any
+ license = Apache 2.0
+ makedepends = cmake
+ makedepends = ros-build-tools
+ makedepends = ros-melodic-tf2-ros
+ makedepends = ros-melodic-cartographer-ros-msgs
+ makedepends = ros-melodic-roslib
+ makedepends = ros-melodic-eigen-conversions
+ makedepends = ros-melodic-tf2
+ makedepends = ros-melodic-pcl-conversions
+ makedepends = ros-melodic-message-runtime
+ makedepends = ros-melodic-cartographer
+ makedepends = ros-melodic-urdf
+ makedepends = ros-melodic-rosbag
+ makedepends = ros-melodic-sensor-msgs
+ makedepends = ros-melodic-geometry-msgs
+ makedepends = ros-melodic-robot-state-publisher
+ makedepends = ros-melodic-nav-msgs
+ makedepends = ros-melodic-roslaunch
+ makedepends = ros-melodic-visualization-msgs
+ makedepends = ros-melodic-tf2-eigen
+ makedepends = ros-melodic-catkin
+ makedepends = ros-melodic-std-msgs
+ makedepends = ros-melodic-roscpp
+ makedepends = google-glog
+ makedepends = protobuf
+ makedepends = gcc
+ makedepends = python-sphinx
+ makedepends = gflags
+ makedepends = gmock
+ makedepends = pcl
+ depends = ros-melodic-tf2-ros
+ depends = ros-melodic-cartographer-ros-msgs
+ depends = ros-melodic-roslib
+ depends = ros-melodic-eigen-conversions
+ depends = ros-melodic-tf2
+ depends = ros-melodic-pcl-conversions
+ depends = ros-melodic-message-runtime
+ depends = ros-melodic-cartographer
+ depends = ros-melodic-urdf
+ depends = ros-melodic-rosbag
+ depends = ros-melodic-sensor-msgs
+ depends = ros-melodic-geometry-msgs
+ depends = ros-melodic-robot-state-publisher
+ depends = ros-melodic-nav-msgs
+ depends = ros-melodic-roslaunch
+ depends = ros-melodic-visualization-msgs
+ depends = ros-melodic-tf2-eigen
+ depends = ros-melodic-std-msgs
+ depends = ros-melodic-roscpp
+ depends = google-glog
+ depends = gflags
+ depends = pcl
+ source = ros-melodic-cartographer-ros-1.0.0.tar.gz::https://github.com/ros-gbp/cartographer_ros-release/archive/release/melodic/cartographer_ros/1.0.0.tar.gz
+ sha256sums = 874e830d4b3e341cf7f53e66499f84e5f46bb9fda97cfe5d523cee6ec2ebd6d0
+
+pkgname = ros-melodic-cartographer-ros
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c85ab922507
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,100 @@
+# Script generated with create_pkgbuild.py
+ # For more information: https://github.com/ros-melodic-arch/ros-build-tools-py3
+ pkgdesc="ROS - Cartographer is a system that provides real-time simultaneous localization and mapping (SLAM) in 2D and 3D across multiple platforms and sensor configurations."
+ url='https://github.com/googlecartographer/cartographer_ros'
+
+ pkgname='ros-melodic-cartographer-ros'
+ pkgver='1.0.0'
+ arch=('any')
+ pkgrel=1
+ license=('Apache 2.0')
+
+ ros_makedepends=(ros-melodic-tf2-ros
+ ros-melodic-cartographer-ros-msgs
+ ros-melodic-roslib
+ ros-melodic-eigen-conversions
+ ros-melodic-tf2
+ ros-melodic-pcl-conversions
+ ros-melodic-message-runtime
+ ros-melodic-cartographer
+ ros-melodic-urdf
+ ros-melodic-rosbag
+ ros-melodic-sensor-msgs
+ ros-melodic-geometry-msgs
+ ros-melodic-robot-state-publisher
+ ros-melodic-nav-msgs
+ ros-melodic-roslaunch
+ ros-melodic-visualization-msgs
+ ros-melodic-tf2-eigen
+ ros-melodic-catkin
+ ros-melodic-std-msgs
+ ros-melodic-roscpp)
+ makedepends=('cmake' 'ros-build-tools'
+ ${ros_makedepends[@]}
+ google-glog
+ protobuf
+ gcc
+ python-sphinx
+ gflags
+ gmock
+ pcl)
+
+ ros_depends=(ros-melodic-tf2-ros
+ ros-melodic-cartographer-ros-msgs
+ ros-melodic-roslib
+ ros-melodic-eigen-conversions
+ ros-melodic-tf2
+ ros-melodic-pcl-conversions
+ ros-melodic-message-runtime
+ ros-melodic-cartographer
+ ros-melodic-urdf
+ ros-melodic-rosbag
+ ros-melodic-sensor-msgs
+ ros-melodic-geometry-msgs
+ ros-melodic-robot-state-publisher
+ ros-melodic-nav-msgs
+ ros-melodic-roslaunch
+ ros-melodic-visualization-msgs
+ ros-melodic-tf2-eigen
+ ros-melodic-std-msgs
+ ros-melodic-roscpp)
+ depends=(${ros_depends[@]}
+ google-glog
+ gflags
+ pcl)
+
+ # Tarball version (faster download)
+ _dir="cartographer_ros-release-release-melodic-cartographer_ros"
+ source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/ros-gbp/cartographer_ros-release/archive/release/melodic/cartographer_ros/${pkgver}.tar.gz")
+ sha256sums=('874e830d4b3e341cf7f53e66499f84e5f46bb9fda97cfe5d523cee6ec2ebd6d0')
+
+ build() {
+ # Use ROS environment variables
+ source /usr/share/ros-build-tools/clear-ros-env.sh
+ [ -f /opt/ros/melodic/setup.bash ] && source /opt/ros/melodic/setup.bash
+
+ # Create build directory
+ [ -d ${srcdir}/build ] || mkdir ${srcdir}/build
+ cd ${srcdir}/build
+
+ # Fix Python2/Python3 conflicts
+ /usr/share/ros-build-tools/fix-python-scripts.sh -v 3 ${srcdir}/${_dir}
+
+ # Build project
+ cmake ${srcdir}/${_dir} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCATKIN_BUILD_BINARY_PACKAGE=ON \
+ -DCMAKE_INSTALL_PREFIX=/opt/ros/melodic \
+ -DPYTHON_EXECUTABLE=/usr/bin/python3 \
+ -DPYTHON_INCLUDE_DIR=/usr/include/python3.8 \
+ -DPYTHON_LIBRARY=/usr/lib/libpython3.8.so \
+ -DPYTHON_BASENAME=.cpython-38 \
+ -DSETUPTOOLS_DEB_LAYOUT=OFF
+ make
+ }
+
+ package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}/" install
+ }
+