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/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 @@
-
+