From ff6df84853a76ec98e5ba7d4ac474a2767f469a5 Mon Sep 17 00:00:00 2001 From: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de> Date: Mon, 14 Oct 2013 07:56:53 +0200 Subject: [PATCH] laser-geometry: initial commit --- ...0001-check-for-CATKIN_ENABLE_TESTING.patch | 43 +++++++++++++++++++ .../laser-geometry/laser-geometry_1.5.13.bb | 18 ++++++++ 2 files changed, 61 insertions(+) create mode 100644 recipes-ros/laser-geometry/laser-geometry/0001-check-for-CATKIN_ENABLE_TESTING.patch create mode 100644 recipes-ros/laser-geometry/laser-geometry_1.5.13.bb diff --git a/recipes-ros/laser-geometry/laser-geometry/0001-check-for-CATKIN_ENABLE_TESTING.patch b/recipes-ros/laser-geometry/laser-geometry/0001-check-for-CATKIN_ENABLE_TESTING.patch new file mode 100644 index 0000000..7cdcee1 --- /dev/null +++ b/recipes-ros/laser-geometry/laser-geometry/0001-check-for-CATKIN_ENABLE_TESTING.patch @@ -0,0 +1,43 @@ +From 4c1945fb38a39b3a139d043dc21cb745f313bcc1 Mon Sep 17 00:00:00 2001 +From: Lukas Bulwahn <lukas.bulwahn@oss.bmw-carit.de> +Date: Sun, 13 Oct 2013 17:41:58 +0200 +Subject: [PATCH] check for CATKIN_ENABLE_TESTING + +--- + CMakeLists.txt | 6 ++++-- + package.xml | 2 +- + 2 files changed, 5 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 9cee35b..a628238 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -20,8 +20,10 @@ include_directories(include ${catkin_INCLUDE_DIRS}) + add_library(laser_geometry src/laser_geometry.cpp) + target_link_libraries(laser_geometry ${Boost_LIBRARIES} ${tf_LIBRARIES}) + +-catkin_add_gtest(projection_test test/projection_test.cpp) +-target_link_libraries(projection_test laser_geometry) ++if(CATKIN_ENABLE_TESTING) ++ catkin_add_gtest(projection_test test/projection_test.cpp) ++ target_link_libraries(projection_test laser_geometry) ++endif() + + install(TARGETS laser_geometry + ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} +diff --git a/package.xml b/package.xml +index 83e02e2..b000bde 100644 +--- a/package.xml ++++ b/package.xml +@@ -15,7 +15,7 @@ + + <url>http://ros.org/wiki/laser_geometry</url> + +- <buildtool_depend>catkin</buildtool_depend> ++ <buildtool_depend version_gte="0.5.68">catkin</buildtool_depend> + + <build_depend>sensor_msgs</build_depend> + <build_depend>roscpp</build_depend> +-- +1.8.1.2 + diff --git a/recipes-ros/laser-geometry/laser-geometry_1.5.13.bb b/recipes-ros/laser-geometry/laser-geometry_1.5.13.bb new file mode 100644 index 0000000..cea47c6 --- /dev/null +++ b/recipes-ros/laser-geometry/laser-geometry_1.5.13.bb @@ -0,0 +1,18 @@ +DESCRIPTION = "This package contains a class for converting from a 2D laser scan as defined by \ + sensor_msgs/LaserScan into a point cloud as defined by sensor_msgs/PointCloud \ + or sensor_msgs/PointCloud2." +SECTION = "devel" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://package.xml;beginline=11;endline=11;md5=d566ef916e9dedc494f5f793a6690ba5" + +DEPENDS = "angles boost libeigen sensor-msgs roscpp tf" + +SRC_URI = "https://github.com/ros-perception/${ROS_SPN}/archive/${PV}.tar.gz;downloadfilename=${ROS_SP}.tar.gz" +SRC_URI[md5sum] = "dce0a6f2a6a7eeee3913bb01ff8081e1" +SRC_URI[sha256sum] = "8df2f328bc8dfb7c54d89ffbe832c0f2756864d6baddb39d5ea229be9f52b14d" + +SRC_URI += "file://0001-check-for-CATKIN_ENABLE_TESTING.patch" + +S = "${WORKDIR}/${ROS_SP}" + +inherit catkin -- GitLab