From fa73c37fa8ee24d426ffac9aad2eecf12bf4266c Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Fri, 2 Feb 2024 12:07:46 +0900 Subject: [PATCH 1/5] add test_octomap_server_contact_pr2.test for xacro or xacro.py, see #2817 --- jsk_pcl_ros/CMakeLists.txt | 1 + .../sample_octomap_server_contact_pr2.launch | 6 ++++-- .../test/test_octomap_server_contact_pr2.test | 15 +++++++++++++++ 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 jsk_pcl_ros/test/test_octomap_server_contact_pr2.test diff --git a/jsk_pcl_ros/CMakeLists.txt b/jsk_pcl_ros/CMakeLists.txt index 0076d779f3..985b04abf5 100644 --- a/jsk_pcl_ros/CMakeLists.txt +++ b/jsk_pcl_ros/CMakeLists.txt @@ -659,6 +659,7 @@ if (CATKIN_ENABLE_TESTING) if(tf2_eigen_FOUND) add_rostest(test/test_container_occupancy_detector.test) endif() + add_rostest(test/test_octomap_server_contact_pr2.test) endif() roslaunch_add_file_check(launch/openni_local.launch) roslaunch_add_file_check(launch/openni2_local.launch) diff --git a/jsk_pcl_ros/sample/sample_octomap_server_contact_pr2.launch b/jsk_pcl_ros/sample/sample_octomap_server_contact_pr2.launch index ea7b776367..04ebcaa440 100644 --- a/jsk_pcl_ros/sample/sample_octomap_server_contact_pr2.launch +++ b/jsk_pcl_ros/sample/sample_octomap_server_contact_pr2.launch @@ -1,8 +1,10 @@ + + - + - diff --git a/jsk_pcl_ros/test/test_octomap_server_contact_pr2.test b/jsk_pcl_ros/test/test_octomap_server_contact_pr2.test new file mode 100644 index 0000000000..63e801641c --- /dev/null +++ b/jsk_pcl_ros/test/test_octomap_server_contact_pr2.test @@ -0,0 +1,15 @@ + + + + + + + + topic_0: /octomap_binary + timeout_0: 30 + + + From 9832d50a35fc189aee00a71784052e81881e4b71 Mon Sep 17 00:00:00 2001 From: Shun Hasegawa Date: Thu, 25 Jan 2024 19:57:32 +0900 Subject: [PATCH 2/5] xacro.py is removed on noetic --- jsk_pcl_ros/sample/include/play_rosbag_pr2_sink.xml | 2 +- jsk_pcl_ros/sample/sample_octomap_server_contact_pr2.launch | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jsk_pcl_ros/sample/include/play_rosbag_pr2_sink.xml b/jsk_pcl_ros/sample/include/play_rosbag_pr2_sink.xml index cb7289c05b..0814384af8 100644 --- a/jsk_pcl_ros/sample/include/play_rosbag_pr2_sink.xml +++ b/jsk_pcl_ros/sample/include/play_rosbag_pr2_sink.xml @@ -2,7 +2,7 @@ - - + From 169112216f40bad5322a41ed263706a9db7f26ae Mon Sep 17 00:00:00 2001 From: Shun Hasegawa Date: Thu, 8 Feb 2024 02:14:46 +0900 Subject: [PATCH 3/5] [jsk_pcl_ros] Check more topics in test_octomap_server_contact_pr2 --- jsk_pcl_ros/test/test_octomap_server_contact_pr2.test | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jsk_pcl_ros/test/test_octomap_server_contact_pr2.test b/jsk_pcl_ros/test/test_octomap_server_contact_pr2.test index 63e801641c..1b7a6cb42c 100644 --- a/jsk_pcl_ros/test/test_octomap_server_contact_pr2.test +++ b/jsk_pcl_ros/test/test_octomap_server_contact_pr2.test @@ -8,8 +8,16 @@ pkg="jsk_tools" type="test_topic_published.py" retry="3"> - topic_0: /octomap_binary + 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 From abbef14c4326162f8ae614030b85bac635a4baa5 Mon Sep 17 00:00:00 2001 From: Shun Hasegawa Date: Thu, 8 Feb 2024 01:59:13 +0900 Subject: [PATCH 4/5] [jsk_pcl_ros] Add missing dependency of sample_octomap_server_contact_pr2.launch --- jsk_pcl_ros/package.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jsk_pcl_ros/package.xml b/jsk_pcl_ros/package.xml index 40507cb90f..bc46e05ee4 100644 --- a/jsk_pcl_ros/package.xml +++ b/jsk_pcl_ros/package.xml @@ -73,12 +73,14 @@ pcl_conversions pcl_msgs pcl_ros + pr2_description python-sklearn python3-sklearn resized_image_transport robot_self_filter rosboost_cfg roscpp_tutorials + roseus sensor_msgs std_msgs std_srvs From 952c35e34a5713af61a5739bc6ca5bba44fcc0f3 Mon Sep 17 00:00:00 2001 From: Shun Hasegawa Date: Thu, 8 Feb 2024 13:09:46 +0900 Subject: [PATCH 5/5] [jsk_pcl_ros] Explicitly add all dependencies of test_octomap_server_contact_pr2 --- jsk_pcl_ros/package.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jsk_pcl_ros/package.xml b/jsk_pcl_ros/package.xml index bc46e05ee4..d8780c998c 100644 --- a/jsk_pcl_ros/package.xml +++ b/jsk_pcl_ros/package.xml @@ -50,6 +50,7 @@ image_transport image_view2 interactive_markers + joint_state_publisher jsk_data jsk_footstep_msgs jsk_interactive_marker @@ -78,6 +79,7 @@ python3-sklearn resized_image_transport robot_self_filter + robot_state_publisher rosboost_cfg roscpp_tutorials roseus @@ -91,6 +93,7 @@ tf_conversions topic_tools visualization_msgs + xacro yaml-cpp compressed_depth_image_transport