-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test showing failure for deeply nested welds in model directives (#…
…19090) Change one usage of `DRAKE_DEMAND` to `DRAKE_THROW_UNLESS`
- Loading branch information
Marco A. Gutierrez
authored
May 12, 2023
1 parent
f8709f7
commit 0078915
Showing
5 changed files
with
75 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
19 changes: 19 additions & 0 deletions
19
multibody/parsing/test/process_model_directives_test/deep_child_frame_weld.dmd.yaml
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,19 @@ | ||
directives: | ||
|
||
- add_model: | ||
name: top_level_model | ||
file: package://process_model_directives_test/model_with_directly_nested_models.sdf | ||
|
||
- add_model: | ||
name: simple_model | ||
file: package://process_model_directives_test/simple_model.sdf | ||
|
||
- add_frame: | ||
name: top_injected_frame | ||
X_PF: | ||
base_frame: top_level_model::robot1::robot_base | ||
translation: [1, 2, 3] | ||
|
||
- add_weld: | ||
parent: simple_model::base | ||
child: top_injected_frame |
13 changes: 13 additions & 0 deletions
13
multibody/parsing/test/process_model_directives_test/deep_child_weld.dmd.yaml
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,13 @@ | ||
directives: | ||
|
||
- add_model: | ||
name: top_level_model | ||
file: package://process_model_directives_test/model_with_directly_nested_models.sdf | ||
|
||
- add_model: | ||
name: simple_model | ||
file: package://process_model_directives_test/simple_model.sdf | ||
|
||
- add_weld: | ||
parent: simple_model::base | ||
child: top_level_model::robot1::robot_base |
15 changes: 15 additions & 0 deletions
15
multibody/parsing/test/process_model_directives_test/model_with_directly_nested_models.sdf
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,15 @@ | ||
<?xml version="1.0"?> | ||
<sdf xmlns:drake="http://drake.mit.edu" version="1.7"> | ||
<model name="scoped_model"> | ||
<link name="base"/> | ||
<model name="robot1"> | ||
<link name="robot_base"/> | ||
<frame name="tool_frame"> | ||
<pose relative_to="robot_base">1 2 3 0 0 0</pose> | ||
</frame> | ||
</model> | ||
<frame name="frame"> | ||
<pose relative_to="base">1 2 3 0 0 0</pose> | ||
</frame> | ||
</model> | ||
</sdf> |