-
Notifications
You must be signed in to change notification settings - Fork 70
/
test-camshift.test
40 lines (37 loc) · 1.93 KB
/
test-camshift.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<launch>
<arg name="gui" default="true" />
<param name="use_sim_time" value="true" />
<node name="play_face_bag" pkg="rosbag" type="play" args="-l $(find opencv_apps)/test/face_detector_withface_test_diamondback.bag --clock -r 0.1" />
<group ns="wide_stereo/left" >
<node name="image_proc" pkg="image_proc" type="image_proc" />
<node name="image_view" pkg="image_view" type="image_view" args="image:=image_rect_color" if="$(arg gui)" />
<!-- camshift.cpp -->
<include file="$(find opencv_apps)/launch/camshift.launch" >
<arg name="debug_view" value="$(arg gui)" />
<arg name="image" value="image_rect_color" />
<arg name="histogram" value="[0.0, 255.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]" />
<arg name="vmin" value="120" />
<arg name="vmax" value="230" />
<arg name="smin" value="60" />
</include>
<!-- Test Codes -->
<node name="camshift_saver_result" pkg="image_view" type="image_saver" >
<param name="filename_format" value="$(find opencv_apps)/test/camshift_result.png"/>
<param name="queue_size" value="5" />
<remap from="image" to="camshift/image" />
<remap from="camshift/camera_info" to="camera_info" />
</node>
<node name="camshift_saver_back_project" pkg="image_view" type="image_saver" >
<param name="filename_format" value="$(find opencv_apps)/test/camshift_back_project.png"/>
<param name="queue_size" value="5" />
<remap from="image" to="camshift/back_project" />
<remap from="camshift/camera_info" to="camera_info" />
</node>
<param name="camshift_test/topic" value="camshift/track_box" /> <!-- opencv_apps/Point2DArrayStamped -->
<test test-name="camshift_test" pkg="rostest" type="hztest" name="camshift_test" >
<param name="hz" value="30" />
<param name="hzerror" value="10.0" />
<param name="test_duration" value="1.0" />
</test>
</group>
</launch>