Skip to content

Commit

Permalink
[ros_bridge][test] Hand camera image topic should be published on sim.
Browse files Browse the repository at this point in the history
  • Loading branch information
130s committed Mar 28, 2017
1 parent 32195ce commit db8a4d3
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions nextage_ros_bridge/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,5 @@ install(DIRECTORY test
if(CATKIN_ENABLE_TESTING)
find_package(rostest REQUIRED)
add_rostest(test/nxo.test)
add_rostest(test/nxo_rosbridge.test)
endif()
1 change: 0 additions & 1 deletion nextage_ros_bridge/test/nxo.test
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@
time-limit="1000" args="$(arg ROBOTCLIENT_ARG_OLDSTYLE)" />
<test type="test_airhand.py" pkg="nextage_ros_bridge" test-name="test_nxo_airhand"
time-limit="1000" args="$(arg ROBOTCLIENT_ARG_OLDSTYLE)" />

</launch>
19 changes: 19 additions & 0 deletions nextage_ros_bridge/test/nxo_rosbridge.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<launch>
<arg name="CORBA_PORT" default="2809" />

<include file="$(find nextage_ros_bridge)/test/test_nextage_ros_bridge_common.launch">
<arg name="corbaport" value="$(arg CORBA_PORT)" />
<arg name="GUI" value="false" />
</include>

<!-- Test if hand camera topic published on sim. -->
<arg name='TESTNAME_HANDCAM_L' value='hz_handcamera_l' />
<test pkg="rostest" type="hztest" test-name="$(arg TESTNAME_HANDCAM_L)"
name="$(arg TESTNAME_HANDCAM_L)" time-limit="30o" retry="3" >
<param name="topic" value="/hand_left/image_raw" />
<param name="hz" value="15.0" />
<param name="hzerror" value="5.0" />
<param name="test_duration" value="5.0" />
<param name="wait_time" value="20.0" />
</test>
</launch>
18 changes: 18 additions & 0 deletions nextage_ros_bridge/test/test_nextage_ros_bridge_common.launch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<launch>
<!-- TODO In the future this launch file can be removed as long as we
modify hironx_ros_bridge)/test/test-hironx-ros-bridge-common.launch so
that it accepts nextage_ros_bridge_simulation.launch as an arg.
-->

<arg name="corbaport" default="2809" />
<arg name="GUI" default="false" />

<!-- See https://github.com/start-jsk/rtmros_common/issues/416#issuecomment-46846623 -->
<node pkg="rtmbuild" type="start_omninames.sh" args="$(arg corbaport)"
name="start_omninames" />

<include file="$(find nextage_ros_bridge)/launch/nextage_ros_bridge_simulation.launch" >
<arg name="GUI" value="$(arg GUI)" />
<arg name="corbaport" value="$(arg corbaport)" />
</include>
</launch>

0 comments on commit db8a4d3

Please sign in to comment.