Skip to content

Commit 9db1183

Browse files
matafelachenjianyuecideng
authored
Add ARX5 robot (#124)
Co-authored-by: chenjian <chenjian@dexforce.com> Co-authored-by: Yueci Deng <dengyueci@qq.com>
1 parent 3eb881e commit 9db1183

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

embodichain/data/assets/robot_assets.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,3 +504,32 @@ def __init__(self, data_root: str = None):
504504
path = EMBODICHAIN_DEFAULT_DATA_ROOT if data_root is None else data_root
505505

506506
super().__init__(prefix, data_descriptor, path)
507+
508+
509+
class ARX5(EmbodiChainDataset):
510+
"""Dataset class for the ARX5 robot.
511+
512+
Reference:
513+
https://arx-x.com/
514+
515+
Directory structure:
516+
ARX5/
517+
X5A.urdf
518+
519+
Example usage:
520+
>>> from embodichain.data.robot_dataset import ARX5
521+
>>> dataset = ARX5()
522+
or
523+
>>> from embodichain.data import get_data_path
524+
>>> print(get_data_path("ARX5/X5A.urdf"))
525+
"""
526+
527+
def __init__(self, data_root: str = None):
528+
data_descriptor = o3d.data.DataDescriptor(
529+
os.path.join(EMBODICHAIN_DOWNLOAD_PREFIX, robot_assets, "ARX5.zip"),
530+
"da207ba65e21577aa8e8f349af63e608",
531+
)
532+
prefix = "ARX5"
533+
path = EMBODICHAIN_DEFAULT_DATA_ROOT if data_root is None else data_root
534+
535+
super().__init__(prefix, data_descriptor, path)

0 commit comments

Comments
 (0)