Skip to content

Commit a4e8b99

Browse files
Add tags attribute to Description class
1 parent 9130cb8 commit a4e8b99

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
66

77
### Added
88

9+
- Add tags attribute to Description class
910
- Description: Ability Hand (MJCF)
1011
- Description: Ability Hand (URDF)
1112
- Description: Apptronik Apollo (MJCF)

robot_descriptions/_descriptions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ class Description:
2727
"""
2828

2929
formats: Set[Format]
30+
tags: Set[str]
3031

31-
def __init__(self, single_format):
32+
def __init__(self, single_format: Format, tags: Set[str] = set()):
3233
"""Initialize a description that provides a single format.
3334
3435
Args:
3536
single_format: Format provided by the description.
37+
tags: Set of strings describing properties of the description.
3638
"""
3739
self.formats = {single_format}
40+
self.tags = tags
3841

3942
@property
4043
def has_mjcf(self) -> bool:

0 commit comments

Comments
 (0)