Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add test_octomap_server_contact_pr2.test for xacro or xacro.py, see #2817 #2819

Merged
merged 2 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jsk_pcl_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion jsk_pcl_ros/sample/include/play_rosbag_pr2_sink.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<arg name="LOAD_URDF" default="false"/>

<param name="/use_sim_time" value="true"/>
<param name="robot_description" command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2.urdf.xacro'"
<param name="robot_description" command="$(find xacro)/xacro '$(find pr2_description)/robots/pr2.urdf.xacro'"
if="$(arg LOAD_URDF)"/>

<node name="rosbag_play" pkg="rosbag" type="play"
Expand Down
8 changes: 5 additions & 3 deletions jsk_pcl_ros/sample/sample_octomap_server_contact_pr2.launch
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<launch>
<param name="robot_description" command="$(find xacro)/xacro.py '$(find pr2_description)/robots/pr2.urdf.xacro'"/>
<arg name="use_gui" default="true" doc="argument to launch rviz" />

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

<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher">
<param name="use_gui" value="true"/>
<param name="use_gui" value="$(arg use_gui)"/>
</node>

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

<node pkg="rviz" type="rviz" name="rviz"
<node pkg="rviz" type="rviz" name="rviz" if="$(arg use_gui)"
args="-d $(find jsk_pcl_ros)/config/octomap_server_contact_pr2.rviz" />
</launch>
15 changes: 15 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,15 @@
<launch>
<include file="$(find jsk_pcl_ros)/sample/sample_octomap_server_contact_pr2.launch" >
<arg name="use_gui" 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"
retry="3">
<rosparam>
topic_0: /octomap_binary
timeout_0: 30
</rosparam>
</test>
</launch>
Loading