Skip to content

Commit

Permalink
rostest for SO3ControlNodelet
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpshah committed Mar 8, 2024
1 parent 6227a26 commit 2123511
Show file tree
Hide file tree
Showing 5 changed files with 716 additions and 0 deletions.
20 changes: 20 additions & 0 deletions kr_mav_controllers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,23 @@ install(
install(FILES nodelet_plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)

if(CATKIN_ENABLE_TESTING)
find_package(catkin REQUIRED COMPONENTS
roscpp
std_msgs
nav_msgs
kr_mav_msgs
rostest
)

include_directories(include ${catkin_INCLUDE_DIRS})
include_directories(${GTEST_INCLUDE_DIRS})

add_executable(so3_control_nodelet_test test/so3_control_nodelet_test.cpp)
# add_rostest_gtest(so3_control_nodelet_test test/so3_control_nodelet.test test/so3_control_nodelet_test.cpp)
target_link_libraries(so3_control_nodelet_test ${catkin_LIBRARIES} ${GTEST_LIBRARIES})

add_rostest(test/so3_control_nodelet.test)

endif()
Loading

0 comments on commit 2123511

Please sign in to comment.