-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ros_bridge] Add test to ensure if model is loaded. Remove install ru…
…le that's no longer valid.
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<launch> | ||
<!-- This .test is to check joint status, which indirectly ensures if model is successfully loaded. --> | ||
|
||
<arg name="COLLADA_FILE" default="$(find nextage_description)/models/main.dae" /> | ||
<arg name="corbaport" default="2809" /> | ||
<arg name="GUI" default='false' /> | ||
<arg name="VRML_FILE" default="$(find nextage_description)/models/main.wrl" /> | ||
|
||
<!-- Define name for testing model availability at runtime --> | ||
<arg name="TESTNAME_ENSURE_MODEL" default="hz_joints" /> | ||
|
||
<!-- See https://github.com/start-jsk/rtmros_common/issues/416#issuecomment-46846623 --> | ||
<node name="start_omninames" pkg="rtmbuild" type="start_omninames.sh" | ||
args="$(arg corbaport)" /> | ||
|
||
<include file="$(find nextage_ros_bridge)/launch/nextage_ros_bridge_simulation.launch" > | ||
<arg name="COLLADA_FILE" value="$(arg COLLADA_FILE)" /> | ||
<arg name="CORBAPORT" value="$(arg corbaport)" /> | ||
<arg name="GUI" value="$(arg GUI)" /> | ||
<arg name="MODEL_FILE" value="$(arg VRML_FILE)" /> | ||
</include> | ||
|
||
<test pkg="rostest" type="hztest" name="$(arg TESTNAME_ENSURE_MODEL)" test-name="test_$(arg TESTNAME_ENSURE_MODEL)"> | ||
<param name="$(arg TESTNAME_ENSURE_MODEL)/hz" value="200.0" /> | ||
<param name="$(arg TESTNAME_ENSURE_MODEL)/hzerror" value="5.0" /> | ||
<param name="$(arg TESTNAME_ENSURE_MODEL)/test_duration" value="10.0" /> | ||
<param name="$(arg TESTNAME_ENSURE_MODEL)/topic" value="joint_states" /> | ||
<param name="$(arg TESTNAME_ENSURE_MODEL)/wait_time" value="30.0" /> | ||
</test> | ||
</launch> |