adding mesh reference for shop setup #347
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
current shop setup copies meshes from robot part directory.
however, when we want to create parts with different urdf settings (same meshes but with different settings such as velocity, ranges, or reduced joints) this is inconvenient for four reasons.
one, we are duplicating tons of .dae files, which is a waste of memory.
two, we have to change all the model paths in the urdf/.xacro.
three, we cannot distinguish whether there is actually a diff in .dae or if it is just a copy.
four, when there is a fix in the .dae, we have to recopy it for all directories that has duplicated the mesh.
this pull request allows you to add a meshes.txt under meshes if you are using the same meshes from an existing robot part directory.
by writing
aero_shop/typeF_upperbody
in meshes/meshes.txt, the script will copy meshes from typeF_upperbody.downsides. the script does not handle recursive reference. so if typeF_upperbody had a meshes.txt instead of .dae files, the setup will fail.