-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-- [Part 1 of 2] Semantic Attributes Metadata : Support for Semantic …
…Regions - Add attributes/config support (#2299) * --initial commit; Add semantic attributes class &SemanticAttributesManager * --support semantic attributes referencing current semantic desc files * --add semantic attributes configs and attributes managers tests. * --support ssd filename and semantic asset filename in semantic attributes * --map stage semantics into semantic attributes if they exist.; fix tests. * --expand init handling of semantic attributes to also accept filepath wildcards * --preserve scene dataset JSON load order * --stub out semantic attributes init built-from-config code * --add manager bindings TODO : need to add template bindings when format has been firmed up. * --support semantic attributes tag based on scene instance name wildcard * --improve naming convention for wildcard-based filename lookups * --set semantic attributes handle tag based on wildcard * --add retrieval function to managed containers for first matching substring; also adds binding * --improve semantic attributes retrieval; Added substring-search based retrieval. * --update load and test to properly add/check for paths
- Loading branch information
Showing
31 changed files
with
2,227 additions
and
414 deletions.
There are no files selected for viewing
280 changes: 280 additions & 0 deletions
280
data/test_assets/semantic/test_regions.semantic_config.json
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,280 @@ | ||
{ | ||
"region_annotations": [ | ||
{ | ||
"name": "bedroom", | ||
"label": "bedroom", | ||
"poly_loop": [ | ||
[ | ||
-18.876018524169922, | ||
0.0, | ||
-10.983560562133789 | ||
], | ||
[ | ||
-15.061599731445312, | ||
0.0, | ||
-10.983560562133789 | ||
], | ||
[ | ||
-15.061599731445312, | ||
0.0, | ||
-8.543549537658691 | ||
], | ||
[ | ||
-18.876018524169922, | ||
0.0, | ||
-8.543549537658691 | ||
] | ||
], | ||
"floor_height": 0.0, | ||
"extrusion_height": 4.0, | ||
"min_bounds": [ | ||
-18.876018524169922, | ||
0.0, | ||
-10.983560562133789 | ||
], | ||
"max_bounds": [ | ||
-15.061599731445312, | ||
4.0, | ||
-8.543549537658691 | ||
] | ||
}, | ||
{ | ||
"name": "kitchen", | ||
"label": "kitchen", | ||
"poly_loop": [ | ||
[ | ||
-18.876018524169922, | ||
0.0, | ||
-8.393549919128418 | ||
], | ||
[ | ||
-15.316800117492676, | ||
0.0, | ||
-8.393549919128418 | ||
], | ||
[ | ||
-18.876018524169922, | ||
0.0, | ||
-5.939759731292725 | ||
], | ||
[ | ||
-15.316800117492676, | ||
0.0, | ||
-5.939759731292725 | ||
] | ||
], | ||
"floor_height": 0.0, | ||
"extrusion_height": 4.0, | ||
"min_bounds": [ | ||
-18.876018524169922, | ||
0.0, | ||
-8.393549919128418 | ||
], | ||
"max_bounds": [ | ||
-15.316800117492676, | ||
4.0, | ||
-5.939759731292725 | ||
] | ||
}, | ||
{ | ||
"name": "living room", | ||
"label": "living room", | ||
"poly_loop": [ | ||
[ | ||
-18.876018524169922, | ||
0.0, | ||
-5.789760112762451 | ||
], | ||
[ | ||
-13.965399742126465, | ||
0.0, | ||
-5.789760112762451 | ||
], | ||
[ | ||
-18.876018524169922, | ||
0.0, | ||
-2.040019989013672 | ||
], | ||
[ | ||
-13.965399742126465, | ||
0.0, | ||
-2.040019989013672 | ||
] | ||
], | ||
"floor_height": 0.0, | ||
"extrusion_height": 4.0, | ||
"min_bounds": [ | ||
-18.876018524169922, | ||
0.0, | ||
-5.789760112762451 | ||
], | ||
"max_bounds": [ | ||
-13.965399742126465, | ||
4.0, | ||
-2.040019989013672 | ||
] | ||
}, | ||
{ | ||
"name": "rec/game", | ||
"label": "rec/game", | ||
"poly_loop": [ | ||
[ | ||
-15.166800498962402, | ||
0.0, | ||
-8.393549919128418 | ||
], | ||
[ | ||
-10.796329498291016, | ||
0.0, | ||
-8.393549919128418 | ||
], | ||
[ | ||
-15.166800498962402, | ||
0.0, | ||
-6.908959865570068 | ||
], | ||
[ | ||
-13.815400123596191, | ||
0.0, | ||
-6.908959865570068 | ||
], | ||
[ | ||
-13.815400123596191, | ||
0.0, | ||
-2.040019989013672 | ||
], | ||
[ | ||
-10.796329498291016, | ||
0.0, | ||
-2.040019989013672 | ||
] | ||
], | ||
"floor_height": 0.0, | ||
"extrusion_height": 4.0, | ||
"min_bounds": [ | ||
-15.166800498962402, | ||
0.0, | ||
-8.393549919128418 | ||
], | ||
"max_bounds": [ | ||
-10.796329498291016, | ||
4.0, | ||
-2.040019989013672 | ||
] | ||
}, | ||
{ | ||
"name": "bathroom", | ||
"label": "bathroom", | ||
"poly_loop": [ | ||
[ | ||
-15.166800498962402, | ||
0.0, | ||
-6.758960247039795 | ||
], | ||
[ | ||
-13.965399742126465, | ||
0.0, | ||
-6.758960247039795 | ||
], | ||
[ | ||
-15.166800498962402, | ||
0.0, | ||
-5.939759731292725 | ||
], | ||
[ | ||
-13.965399742126465, | ||
0.0, | ||
-5.939759731292725 | ||
] | ||
], | ||
"floor_height": 0.0, | ||
"extrusion_height": 4.0, | ||
"min_bounds": [ | ||
-15.166800498962402, | ||
0.0, | ||
-6.758960247039795 | ||
], | ||
"max_bounds": [ | ||
-13.965399742126465, | ||
4.0, | ||
-5.939759731292725 | ||
] | ||
}, | ||
{ | ||
"name": "tv", | ||
"label": "tv", | ||
"poly_loop": [ | ||
[ | ||
-14.911600112915039, | ||
0.0, | ||
-10.983560562133789 | ||
], | ||
[ | ||
-11.86514949798584, | ||
0.0, | ||
-10.983560562133789 | ||
], | ||
[ | ||
-14.911600112915039, | ||
0.0, | ||
-8.543549537658691 | ||
], | ||
[ | ||
-11.86514949798584, | ||
0.0, | ||
-8.543549537658691 | ||
] | ||
], | ||
"floor_height": 0.0, | ||
"extrusion_height": 4.0, | ||
"min_bounds": [ | ||
-14.911600112915039, | ||
0.0, | ||
-10.983560562133789 | ||
], | ||
"max_bounds": [ | ||
-11.86514949798584, | ||
4.0, | ||
-8.543549537658691 | ||
] | ||
}, | ||
{ | ||
"name": "bathroom.001", | ||
"label": "bathroom", | ||
"poly_loop": [ | ||
[ | ||
-11.715149879455566, | ||
0.0, | ||
-10.983560562133789 | ||
], | ||
[ | ||
-10.796329498291016, | ||
0.0, | ||
-10.983560562133789 | ||
], | ||
[ | ||
-11.715149879455566, | ||
0.0, | ||
-8.543549537658691 | ||
], | ||
[ | ||
-10.796329498291016, | ||
0.0, | ||
-8.543549537658691 | ||
] | ||
], | ||
"floor_height": 0.0, | ||
"extrusion_height": 4.0, | ||
"min_bounds": [ | ||
-11.715149879455566, | ||
0.0, | ||
-10.983560562133789 | ||
], | ||
"max_bounds": [ | ||
-10.796329498291016, | ||
4.0, | ||
-8.543549537658691 | ||
] | ||
} | ||
] | ||
} |
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
Oops, something went wrong.