diff --git a/CMakeLists.txt b/CMakeLists.txt index f7e5474..7d317a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ find_package(catkin REQUIRED COMPONENTS dr_param roscpp roslib + rospack tf ) diff --git a/package.xml b/package.xml index 13700ef..ba54a2f 100644 --- a/package.xml +++ b/package.xml @@ -4,16 +4,15 @@ 0.1.3 Delft Robotics ROS utility. Apache 2.0 - - Maarten de Vries + Fizyr Team Maarten de Vries - catkin dr_log dr_param + dr_util roscpp roslib + rospack tf - catch2 diff --git a/src/resource.cpp b/src/resource.cpp index fbf86db..e934afb 100644 --- a/src/resource.cpp +++ b/src/resource.cpp @@ -1,9 +1,21 @@ +// This repository #include "resource.hpp" +// ROS #include +// C++ #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include namespace dr { diff --git a/test/resource.cpp b/test/resource.cpp index 6cfdc5e..0fa8d42 100644 --- a/test/resource.cpp +++ b/test/resource.cpp @@ -1,12 +1,26 @@ +// This repository #include "resource.hpp" +// ROS #include +// Catch2 #include namespace dr { TEST_CASE("ResourceTest -- packageUrl", "packageUrl") { + /** + * TODO: This test fails in BuildBot because it can not resolve the location + * of the "package://some_package". At the end of a chain of calls, + * 'ROSPack::run(..)' excecutes "rospack find some_package". + * + * More about this method. + * http://docs.ros.org/indigo/api/rospack/html/rospack__backcompat_8cpp_source.html * + * + * This method succeeds if rospack is installed and located in the PATH. + * In BuildBot test-container rospack is installed, but its location is not in the PATH. + **/ REQUIRE(ros::package::getPath("dr_ros") + "/test.file" == resolveResourceUrl("package://dr_ros/test.file")); }