Skip to content

Commit

Permalink
[jsk_pcl_ros] Add test of sample_octomap_server_contact_pr2.launch
Browse files Browse the repository at this point in the history
  • Loading branch information
pazeshun committed Feb 7, 2024
1 parent 6f2b856 commit a9e1f81
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions jsk_pcl_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ if (CATKIN_ENABLE_TESTING)
add_rostest(test/test_dump_depth_error.test)
add_rostest(test/test_octree_voxel_grid.test)
add_rostest(test/test_octomap_contact.test)
add_rostest(test/test_octomap_server_contact_pr2.test)
add_rostest(test/test_handle_estimator.test)
add_rostest(test/test_hsi_color_filter.test)
add_rostest(test/test_icp_registration.test)
Expand Down
5 changes: 4 additions & 1 deletion jsk_pcl_ros/sample/sample_octomap_server_contact_pr2.launch
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<launch>
<arg name="rviz" default="true" />

<param name="robot_description" command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2.urdf.xacro'"/>

<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
Expand Down Expand Up @@ -62,6 +64,7 @@
<node pkg="jsk_pcl_ros" type="test_contact_sensor.py" name="test_contact_sensor"
output="screen" />

<node pkg="rviz" type="rviz" name="rviz"
<node if="$(arg rviz)"
pkg="rviz" type="rviz" name="rviz"
args="-d $(find jsk_pcl_ros)/config/octomap_server_contact_pr2.rviz" />
</launch>
25 changes: 25 additions & 0 deletions jsk_pcl_ros/test/test_octomap_server_contact_pr2.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<launch>

<include file="$(find jsk_pcl_ros)/sample/sample_octomap_server_contact_pr2.launch">
<arg name="rviz" value="false" />
</include>

<test test-name="test_octomap_server_contact_pr2"
name="test_octomap_server_contact_pr2"
pkg="jsk_tools" type="test_topic_published.py"
time-limit="30" retry="3">
<rosparam>
topic_0: /occupied_cells_vis_array
timeout_0: 30
topic_1: /free_cells_vis_array
timeout_1: 30
topic_2: /unknown_cells_vis_array
timeout_2: 30
topic_3: /octomap_full
timeout_3: 30
topic_4: /octomap_binary
timeout_4: 30
</rosparam>
</test>

</launch>

0 comments on commit a9e1f81

Please sign in to comment.