diff --git a/kdl_parser/CMakeLists.txt b/kdl_parser/CMakeLists.txt
index 393604d..ebd7eb3 100644
--- a/kdl_parser/CMakeLists.txt
+++ b/kdl_parser/CMakeLists.txt
@@ -33,7 +33,8 @@ add_executable(check_kdl_parser src/check_kdl_parser.cpp )
target_link_libraries(check_kdl_parser ${PROJECT_NAME})
if(CATKIN_ENABLE_TESTING)
- catkin_add_gtest(test_kdl_parser test/test_kdl_parser.cpp )
+ find_package(catkin REQUIRED COMPONENTS rostest)
+ add_rostest_gtest(test_kdl_parser test/test_kdl_parser.launch test/test_kdl_parser.cpp )
target_link_libraries(test_kdl_parser ${PROJECT_NAME})
endif()
diff --git a/kdl_parser/package.xml b/kdl_parser/package.xml
index 821e8aa..1eac4b1 100644
--- a/kdl_parser/package.xml
+++ b/kdl_parser/package.xml
@@ -24,6 +24,7 @@
roscpp
urdf
cmake_modules
+ rostest
orocos_kdl
rosconsole
diff --git a/kdl_parser/test/test_kdl_parser.launch b/kdl_parser/test/test_kdl_parser.launch
index b97a9ba..dad91ee 100644
--- a/kdl_parser/test/test_kdl_parser.launch
+++ b/kdl_parser/test/test_kdl_parser.launch
@@ -1,6 +1,6 @@
-
+
diff --git a/urdf/CMakeLists.txt b/urdf/CMakeLists.txt
index 7b07226..c720fcb 100644
--- a/urdf/CMakeLists.txt
+++ b/urdf/CMakeLists.txt
@@ -34,8 +34,9 @@ if(APPLE)
endif(APPLE)
if(CATKIN_ENABLE_TESTING)
- catkin_add_gtest(test_parser EXCLUDE_FROM_ALL test/test_robot_model_parser.cpp)
- target_link_libraries(test_parser ${PROJECT_NAME})
+ find_package(catkin REQUIRED COMPONENTS rostest)
+ add_rostest_gtest(test_urdf_parser test/test_robot_model_parser.launch test/test_robot_model_parser.cpp)
+ target_link_libraries(test_urdf_parser ${PROJECT_NAME})
endif()
# no idea how CATKIN does this
diff --git a/urdf/package.xml b/urdf/package.xml
index 622c1ca..9e012a2 100644
--- a/urdf/package.xml
+++ b/urdf/package.xml
@@ -26,6 +26,7 @@
urdf_parser_plugin
pluginlib
cmake_modules
+ rostest
rosconsole_bridge
roscpp
diff --git a/urdf/test/singularity.urdf b/urdf/test/singularity.urdf
index f86fa92..ed91f44 100644
--- a/urdf/test/singularity.urdf
+++ b/urdf/test/singularity.urdf
@@ -16,7 +16,7 @@
-
+
@@ -27,5 +27,5 @@
-
+
diff --git a/urdf/test/test_robot_model_parser.launch b/urdf/test/test_robot_model_parser.launch
index 8e262c2..25c1844 100644
--- a/urdf/test/test_robot_model_parser.launch
+++ b/urdf/test/test_robot_model_parser.launch
@@ -1,5 +1,5 @@
-
+
diff --git a/urdf/test/two_links_one_joint.urdf b/urdf/test/two_links_one_joint.urdf
index e1e0062..85e94a3 100644
--- a/urdf/test/two_links_one_joint.urdf
+++ b/urdf/test/two_links_one_joint.urdf
@@ -15,5 +15,5 @@
-
+