File tree Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -73,3 +73,15 @@ install(DIRECTORY include/${PROJECT_NAME}/
7373install (FILES zdepth_plugins.xml
7474 DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
7575 )
76+
77+ if (CATKIN_ENABLE_TESTING)
78+ if ("$ENV{ROS_DISTRO} " STRGREATER "kinetic" )
79+ find_package (roslaunch REQUIRED)
80+ find_package (roslint REQUIRED)
81+ find_package (rostest REQUIRED)
82+ add_rostest(test /zdepth_image_transport_16uc1.test )
83+ add_rostest(test /zdepth_image_transport_32fc1.test )
84+ roslaunch_add_file_check(test /zdepth_image_transport_16uc1.test )
85+ roslaunch_add_file_check(test /zdepth_image_transport_32fc1.test )
86+ endif ()
87+ endif ()
Original file line number Diff line number Diff line change 2525 <exec_depend >sensor_msgs</exec_depend >
2626 <exec_depend >std_msgs</exec_depend >
2727 <exec_depend >zdepth</exec_depend >
28+
29+ <test_depend >depth_image_publisher</test_depend >
30+ <test_depend >roslaunch</test_depend >
31+ <test_depend >roslint</test_depend >
32+ <test_depend >rostest</test_depend >
33+
2834 <export >
2935 <image_transport plugin =" ${prefix}/zdepth_plugins.xml" />
3036 </export >
Original file line number Diff line number Diff line change 1+ <launch>
2+ <node name="depth_image_publisher" pkg="depth_image_publisher" type="depth_image_publisher"
3+ args="$(find depth_image_publisher)/sample/sample_16uc1.png">
4+ <param name="encoding" value="16UC1" />
5+ </node>
6+
7+ <test name="zdepth_hztest_16uc1" test-name="zdepth_hztest_test_16uc1"
8+ pkg="rostest" type="hztest">
9+ <param name="topic" value="depth_image_publisher/image_raw/zdepth" />
10+ <param name="hz" value="10.0" />
11+ <param name="hzerror" value="1.0" />
12+ <param name="test_duration" value="1.0" />
13+ </test>
14+
15+ </launch>
Original file line number Diff line number Diff line change 1+ <launch>
2+ <node name="depth_image_publisher" pkg="depth_image_publisher" type="depth_image_publisher"
3+ args="$(find depth_image_publisher)/sample/sample_16uc1.png">
4+ <param name="encoding" value="32FC1" />
5+ </node>
6+
7+ <test name="zdepth_hztest_32fc1" test-name="zdepth_hztest_test_32fc1"
8+ pkg="rostest" type="hztest">
9+ <param name="topic" value="depth_image_publisher/image_raw/zdepth" />
10+ <param name="hz" value="10.0" />
11+ <param name="hzerror" value="1.0" />
12+ <param name="test_duration" value="1.0" />
13+ </test>
14+
15+ </launch>
You can’t perform that action at this time.
0 commit comments