liujinxin commited on
Commit ·
c6fc539
1
Parent(s): 83d6872
sync
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitmodules +3 -0
- __todo__/.gitignore +286 -0
- __todo__/packages/robotodo.egg-info/PKG-INFO +1 -1
- __todo__/packages/robotodo.egg-info/SOURCES.txt +7 -1
- __todo__/packages/robotodo.egg-info/requires.txt +1 -1
- __todo__/packages/robotodo.egg-info/top_level.txt +1 -0
- __todo__/packages/robotodo/todos/_legacy.py +352 -0
- __todo__/packages/robotodo/todos/placement_planners.py +2 -0
- __todo__/packages/robotodo/todos/scene.py +31 -337
- __todo__/packages/robotodo/utils/asset.py +88 -0
- __todo__/packages/robotodo_assets/robotwin_objects/__init__.py +76 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-0/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-0/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-0/metadata.json +1 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-0/model.urdf +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-1/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-1/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-1/metadata.json +1 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-1/model.urdf +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-10/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-10/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-10/metadata.json +1 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-10/model.urdf +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-11/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-11/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-11/metadata.json +1 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-11/model.urdf +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-12/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-12/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-12/metadata.json +1 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-12/model.urdf +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-13/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-13/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-13/metadata.json +1 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-13/model.urdf +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-14/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-14/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-14/metadata.json +1 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-14/model.urdf +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-15/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-15/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-15/metadata.json +1 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-15/model.urdf +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-16/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-16/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-16/metadata.json +1 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-16/model.urdf +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-17/mesh/collision.glb +0 -0
- {__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-17/mesh/visual.glb +0 -0
- __todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-17/metadata.json +1 -0
.gitmodules
CHANGED
|
@@ -1,3 +1,6 @@
|
|
| 1 |
[submodule "__thirdparty__/unitree_ros"]
|
| 2 |
path = __thirdparty__/unitree_ros
|
| 3 |
url = https://github.com/unitreerobotics/unitree_ros
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
[submodule "__thirdparty__/unitree_ros"]
|
| 2 |
path = __thirdparty__/unitree_ros
|
| 3 |
url = https://github.com/unitreerobotics/unitree_ros
|
| 4 |
+
[submodule "__todo__/packages/robotodo_assets/unitree_robots/resources/unitree_ros"]
|
| 5 |
+
path = __todo__/packages/robotodo_assets/unitree_robots/resources/unitree_ros
|
| 6 |
+
url = https://github.com/unitreerobotics/unitree_ros.git
|
__todo__/.gitignore
ADDED
|
@@ -0,0 +1,286 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Windows thumbnail cache files
|
| 2 |
+
Thumbs.db
|
| 3 |
+
Thumbs.db:encryptable
|
| 4 |
+
ehthumbs.db
|
| 5 |
+
ehthumbs_vista.db
|
| 6 |
+
|
| 7 |
+
# Dump file
|
| 8 |
+
*.stackdump
|
| 9 |
+
|
| 10 |
+
# Folder config file
|
| 11 |
+
[Dd]esktop.ini
|
| 12 |
+
|
| 13 |
+
# Recycle Bin used on file shares
|
| 14 |
+
$RECYCLE.BIN/
|
| 15 |
+
|
| 16 |
+
# Windows Installer files
|
| 17 |
+
*.cab
|
| 18 |
+
*.msi
|
| 19 |
+
*.msix
|
| 20 |
+
*.msm
|
| 21 |
+
*.msp
|
| 22 |
+
|
| 23 |
+
# Windows shortcuts
|
| 24 |
+
*.lnk
|
| 25 |
+
.vscode/*
|
| 26 |
+
!.vscode/settings.json
|
| 27 |
+
!.vscode/tasks.json
|
| 28 |
+
!.vscode/launch.json
|
| 29 |
+
!.vscode/extensions.json
|
| 30 |
+
!.vscode/*.code-snippets
|
| 31 |
+
|
| 32 |
+
# Local History for Visual Studio Code
|
| 33 |
+
.history/
|
| 34 |
+
|
| 35 |
+
# Built Visual Studio Code Extensions
|
| 36 |
+
*.vsix
|
| 37 |
+
# Byte-compiled / optimized / DLL files
|
| 38 |
+
__pycache__/
|
| 39 |
+
*.py[cod]
|
| 40 |
+
*$py.class
|
| 41 |
+
|
| 42 |
+
# C extensions
|
| 43 |
+
*.so
|
| 44 |
+
|
| 45 |
+
# Distribution / packaging
|
| 46 |
+
.Python
|
| 47 |
+
build/
|
| 48 |
+
develop-eggs/
|
| 49 |
+
dist/
|
| 50 |
+
downloads/
|
| 51 |
+
eggs/
|
| 52 |
+
.eggs/
|
| 53 |
+
lib/
|
| 54 |
+
lib64/
|
| 55 |
+
parts/
|
| 56 |
+
sdist/
|
| 57 |
+
var/
|
| 58 |
+
wheels/
|
| 59 |
+
share/python-wheels/
|
| 60 |
+
*.egg-info/
|
| 61 |
+
.installed.cfg
|
| 62 |
+
*.egg
|
| 63 |
+
MANIFEST
|
| 64 |
+
|
| 65 |
+
# PyInstaller
|
| 66 |
+
# Usually these files are written by a python script from a template
|
| 67 |
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
| 68 |
+
*.manifest
|
| 69 |
+
*.spec
|
| 70 |
+
|
| 71 |
+
# Installer logs
|
| 72 |
+
pip-log.txt
|
| 73 |
+
pip-delete-this-directory.txt
|
| 74 |
+
|
| 75 |
+
# Unit test / coverage reports
|
| 76 |
+
htmlcov/
|
| 77 |
+
.tox/
|
| 78 |
+
.nox/
|
| 79 |
+
.coverage
|
| 80 |
+
.coverage.*
|
| 81 |
+
.cache
|
| 82 |
+
nosetests.xml
|
| 83 |
+
coverage.xml
|
| 84 |
+
*.cover
|
| 85 |
+
*.py,cover
|
| 86 |
+
.hypothesis/
|
| 87 |
+
.pytest_cache/
|
| 88 |
+
cover/
|
| 89 |
+
|
| 90 |
+
# Translations
|
| 91 |
+
*.mo
|
| 92 |
+
*.pot
|
| 93 |
+
|
| 94 |
+
# Django stuff:
|
| 95 |
+
*.log
|
| 96 |
+
local_settings.py
|
| 97 |
+
db.sqlite3
|
| 98 |
+
db.sqlite3-journal
|
| 99 |
+
|
| 100 |
+
# Flask stuff:
|
| 101 |
+
instance/
|
| 102 |
+
.webassets-cache
|
| 103 |
+
|
| 104 |
+
# Scrapy stuff:
|
| 105 |
+
.scrapy
|
| 106 |
+
|
| 107 |
+
# Sphinx documentation
|
| 108 |
+
docs/_build/
|
| 109 |
+
|
| 110 |
+
# PyBuilder
|
| 111 |
+
.pybuilder/
|
| 112 |
+
target/
|
| 113 |
+
|
| 114 |
+
# Jupyter Notebook
|
| 115 |
+
.ipynb_checkpoints
|
| 116 |
+
|
| 117 |
+
# IPython
|
| 118 |
+
profile_default/
|
| 119 |
+
ipython_config.py
|
| 120 |
+
|
| 121 |
+
# pyenv
|
| 122 |
+
# For a library or package, you might want to ignore these files since the code is
|
| 123 |
+
# intended to run in multiple environments; otherwise, check them in:
|
| 124 |
+
# .python-version
|
| 125 |
+
|
| 126 |
+
# pipenv
|
| 127 |
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
| 128 |
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
| 129 |
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
| 130 |
+
# install all needed dependencies.
|
| 131 |
+
#Pipfile.lock
|
| 132 |
+
|
| 133 |
+
# poetry
|
| 134 |
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
| 135 |
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
| 136 |
+
# commonly ignored for libraries.
|
| 137 |
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
| 138 |
+
#poetry.lock
|
| 139 |
+
|
| 140 |
+
# pdm
|
| 141 |
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
| 142 |
+
#pdm.lock
|
| 143 |
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
| 144 |
+
# in version control.
|
| 145 |
+
# https://pdm.fming.dev/#use-with-ide
|
| 146 |
+
.pdm.toml
|
| 147 |
+
|
| 148 |
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
| 149 |
+
__pypackages__/
|
| 150 |
+
|
| 151 |
+
# Celery stuff
|
| 152 |
+
celerybeat-schedule
|
| 153 |
+
celerybeat.pid
|
| 154 |
+
|
| 155 |
+
# SageMath parsed files
|
| 156 |
+
*.sage.py
|
| 157 |
+
|
| 158 |
+
# Environments
|
| 159 |
+
.env
|
| 160 |
+
.venv
|
| 161 |
+
env/
|
| 162 |
+
venv/
|
| 163 |
+
ENV/
|
| 164 |
+
env.bak/
|
| 165 |
+
venv.bak/
|
| 166 |
+
|
| 167 |
+
# Spyder project settings
|
| 168 |
+
.spyderproject
|
| 169 |
+
.spyproject
|
| 170 |
+
|
| 171 |
+
# Rope project settings
|
| 172 |
+
.ropeproject
|
| 173 |
+
|
| 174 |
+
# mkdocs documentation
|
| 175 |
+
/site
|
| 176 |
+
|
| 177 |
+
# mypy
|
| 178 |
+
.mypy_cache/
|
| 179 |
+
.dmypy.json
|
| 180 |
+
dmypy.json
|
| 181 |
+
|
| 182 |
+
# Pyre type checker
|
| 183 |
+
.pyre/
|
| 184 |
+
|
| 185 |
+
# pytype static type analyzer
|
| 186 |
+
.pytype/
|
| 187 |
+
|
| 188 |
+
# Cython debug symbols
|
| 189 |
+
cython_debug/
|
| 190 |
+
|
| 191 |
+
# PyCharm
|
| 192 |
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
| 193 |
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
| 194 |
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
| 195 |
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
| 196 |
+
#.idea/
|
| 197 |
+
# Swap
|
| 198 |
+
[._]*.s[a-v][a-z]
|
| 199 |
+
!*.svg # comment out if you don't need vector files
|
| 200 |
+
[._]*.sw[a-p]
|
| 201 |
+
[._]s[a-rt-v][a-z]
|
| 202 |
+
[._]ss[a-gi-z]
|
| 203 |
+
[._]sw[a-p]
|
| 204 |
+
|
| 205 |
+
# Session
|
| 206 |
+
Session.vim
|
| 207 |
+
Sessionx.vim
|
| 208 |
+
|
| 209 |
+
# Temporary
|
| 210 |
+
.netrwhist
|
| 211 |
+
*~
|
| 212 |
+
# Auto-generated tag files
|
| 213 |
+
tags
|
| 214 |
+
# Persistent undo
|
| 215 |
+
[._]*.un~
|
| 216 |
+
# Cache files for Sublime Text
|
| 217 |
+
*.tmlanguage.cache
|
| 218 |
+
*.tmPreferences.cache
|
| 219 |
+
*.stTheme.cache
|
| 220 |
+
|
| 221 |
+
# Workspace files are user-specific
|
| 222 |
+
*.sublime-workspace
|
| 223 |
+
|
| 224 |
+
# Project files should be checked into the repository, unless a significant
|
| 225 |
+
# proportion of contributors will probably not be using Sublime Text
|
| 226 |
+
# *.sublime-project
|
| 227 |
+
|
| 228 |
+
# SFTP configuration file
|
| 229 |
+
sftp-config.json
|
| 230 |
+
sftp-config-alt*.json
|
| 231 |
+
|
| 232 |
+
# Package control specific files
|
| 233 |
+
Package Control.last-run
|
| 234 |
+
Package Control.ca-list
|
| 235 |
+
Package Control.ca-bundle
|
| 236 |
+
Package Control.system-ca-bundle
|
| 237 |
+
Package Control.cache/
|
| 238 |
+
Package Control.ca-certs/
|
| 239 |
+
Package Control.merged-ca-bundle
|
| 240 |
+
Package Control.user-ca-bundle
|
| 241 |
+
oscrypto-ca-bundle.crt
|
| 242 |
+
bh_unicode_properties.cache
|
| 243 |
+
|
| 244 |
+
# Sublime-github package stores a github token in this file
|
| 245 |
+
# https://packagecontrol.io/packages/sublime-github
|
| 246 |
+
GitHub.sublime-settings
|
| 247 |
+
*~
|
| 248 |
+
|
| 249 |
+
# temporary files which can be created if a process still has a handle open of a deleted file
|
| 250 |
+
.fuse_hidden*
|
| 251 |
+
|
| 252 |
+
# KDE directory preferences
|
| 253 |
+
.directory
|
| 254 |
+
|
| 255 |
+
# Linux trash folder which might appear on any partition or disk
|
| 256 |
+
.Trash-*
|
| 257 |
+
|
| 258 |
+
# .nfs files are created when an open file is removed but is still being accessed
|
| 259 |
+
.nfs*
|
| 260 |
+
# General
|
| 261 |
+
.DS_Store
|
| 262 |
+
.AppleDouble
|
| 263 |
+
.LSOverride
|
| 264 |
+
|
| 265 |
+
# Icon must end with two \r
|
| 266 |
+
Icon
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
# Thumbnails
|
| 270 |
+
._*
|
| 271 |
+
|
| 272 |
+
# Files that might appear in the root of a volume
|
| 273 |
+
.DocumentRevisions-V100
|
| 274 |
+
.fseventsd
|
| 275 |
+
.Spotlight-V100
|
| 276 |
+
.TemporaryItems
|
| 277 |
+
.Trashes
|
| 278 |
+
.VolumeIcon.icns
|
| 279 |
+
.com.apple.timemachine.donotpresent
|
| 280 |
+
|
| 281 |
+
# Directories potentially created on remote AFP share
|
| 282 |
+
.AppleDB
|
| 283 |
+
.AppleDesktop
|
| 284 |
+
Network Trash Folder
|
| 285 |
+
Temporary Items
|
| 286 |
+
.apdisk
|
__todo__/packages/robotodo.egg-info/PKG-INFO
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
Metadata-Version: 2.4
|
| 2 |
Name: robotodo
|
| 3 |
Version: 0.0.0b0
|
| 4 |
-
Requires-Dist: sapien
|
|
|
|
| 1 |
Metadata-Version: 2.4
|
| 2 |
Name: robotodo
|
| 3 |
Version: 0.0.0b0
|
| 4 |
+
Requires-Dist: sapien==3.0.0b1
|
__todo__/packages/robotodo.egg-info/SOURCES.txt
CHANGED
|
@@ -5,4 +5,10 @@ packages/robotodo.egg-info/PKG-INFO
|
|
| 5 |
packages/robotodo.egg-info/SOURCES.txt
|
| 6 |
packages/robotodo.egg-info/dependency_links.txt
|
| 7 |
packages/robotodo.egg-info/requires.txt
|
| 8 |
-
packages/robotodo.egg-info/top_level.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
packages/robotodo.egg-info/SOURCES.txt
|
| 6 |
packages/robotodo.egg-info/dependency_links.txt
|
| 7 |
packages/robotodo.egg-info/requires.txt
|
| 8 |
+
packages/robotodo.egg-info/top_level.txt
|
| 9 |
+
packages/robotodo/todos/_legacy.py
|
| 10 |
+
packages/robotodo/todos/placement_planners.py
|
| 11 |
+
packages/robotodo/todos/scene.py
|
| 12 |
+
packages/robotodo/utils/asset.py
|
| 13 |
+
packages/robotodo_assets/robotwin_objects/__init__.py
|
| 14 |
+
packages/robotodo_assets/unitree_robots/__init__.py
|
__todo__/packages/robotodo.egg-info/requires.txt
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
sapien
|
|
|
|
| 1 |
+
sapien==3.0.0b1
|
__todo__/packages/robotodo.egg-info/top_level.txt
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
robotodo
|
|
|
|
|
|
| 1 |
robotodo
|
| 2 |
+
robotodo_assets
|
__todo__/packages/robotodo/todos/_legacy.py
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sapien
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# TODO rm
|
| 6 |
+
def _todo_get_actor_dataset_entry(
|
| 7 |
+
# scene: sapien.Scene,
|
| 8 |
+
# pose: sapien.Pose,
|
| 9 |
+
modelname: str = "001_bottle",
|
| 10 |
+
# scale=(1, 1, 1),
|
| 11 |
+
# convex=False,
|
| 12 |
+
# is_static=False,
|
| 13 |
+
model_id=0,
|
| 14 |
+
):
|
| 15 |
+
from pathlib import Path
|
| 16 |
+
import json
|
| 17 |
+
|
| 18 |
+
def get_glb_or_obj_file(modeldir, model_id):
|
| 19 |
+
modeldir = Path(modeldir)
|
| 20 |
+
if model_id is None:
|
| 21 |
+
file = modeldir / "base.glb"
|
| 22 |
+
else:
|
| 23 |
+
file = modeldir / f"base{model_id}.glb"
|
| 24 |
+
if not file.exists():
|
| 25 |
+
if model_id is None:
|
| 26 |
+
file = modeldir / "textured.obj"
|
| 27 |
+
else:
|
| 28 |
+
file = modeldir / f"textured{model_id}.obj"
|
| 29 |
+
return file
|
| 30 |
+
|
| 31 |
+
modeldir = Path("assets/objects") / modelname
|
| 32 |
+
|
| 33 |
+
if model_id is None:
|
| 34 |
+
json_file_path = modeldir / "model_data.json"
|
| 35 |
+
else:
|
| 36 |
+
json_file_path = modeldir / f"model_data{model_id}.json"
|
| 37 |
+
|
| 38 |
+
# TODO !!!!!
|
| 39 |
+
collision_file = ""
|
| 40 |
+
visual_file = ""
|
| 41 |
+
if (modeldir / "collision").exists():
|
| 42 |
+
collision_file = get_glb_or_obj_file(modeldir / "collision", model_id)
|
| 43 |
+
if collision_file == "" or not collision_file.exists():
|
| 44 |
+
collision_file = get_glb_or_obj_file(modeldir, model_id)
|
| 45 |
+
|
| 46 |
+
if (modeldir / "visual").exists():
|
| 47 |
+
visual_file = get_glb_or_obj_file(modeldir / "visual", model_id)
|
| 48 |
+
if visual_file == "" or not visual_file.exists():
|
| 49 |
+
visual_file = get_glb_or_obj_file(modeldir, model_id)
|
| 50 |
+
|
| 51 |
+
if not collision_file.exists() or not visual_file.exists():
|
| 52 |
+
raise FileNotFoundError(f"Cannot find model files for {modelname} id={model_id}")
|
| 53 |
+
|
| 54 |
+
with open(json_file_path, "r") as file:
|
| 55 |
+
model_data = json.load(file)
|
| 56 |
+
|
| 57 |
+
return {
|
| 58 |
+
"metadata": model_data,
|
| 59 |
+
"collision_file": collision_file,
|
| 60 |
+
"visual_file": visual_file,
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
# # TODO
|
| 65 |
+
# _todo_get_actor_dataset_entry_entity(
|
| 66 |
+
# scene,
|
| 67 |
+
# model_name="001_bottle",
|
| 68 |
+
# model_id=16,
|
| 69 |
+
# # model_name="023_tissue-box",
|
| 70 |
+
# # model_id=0,
|
| 71 |
+
# convex=True,
|
| 72 |
+
# physical_material=physical_material,
|
| 73 |
+
# )
|
| 74 |
+
# _todo_robotwin_objects_create_entity(
|
| 75 |
+
# scene,
|
| 76 |
+
# id="001_bottle-16",
|
| 77 |
+
# )
|
| 78 |
+
|
| 79 |
+
# TODO rm
|
| 80 |
+
def _todo_get_actor_dataset_entry_entity(
|
| 81 |
+
scene: sapien.Scene,
|
| 82 |
+
model_name: str = "001_bottle",
|
| 83 |
+
model_id=0,
|
| 84 |
+
convex=False,
|
| 85 |
+
# TODO
|
| 86 |
+
# physical_type: str = "dynamic",
|
| 87 |
+
physical_material: sapien.physx.PhysxMaterial | None = None,
|
| 88 |
+
):
|
| 89 |
+
todo = _todo_get_actor_dataset_entry(modelname=model_name, model_id=model_id)
|
| 90 |
+
|
| 91 |
+
scale = todo["metadata"]["scale"]
|
| 92 |
+
collision_file = (todo["collision_file"])
|
| 93 |
+
visual_file = (todo["visual_file"])
|
| 94 |
+
|
| 95 |
+
|
| 96 |
+
builder = scene.create_actor_builder()
|
| 97 |
+
# TODO
|
| 98 |
+
builder.set_physx_body_type("dynamic")
|
| 99 |
+
|
| 100 |
+
if convex == True:
|
| 101 |
+
builder.add_multiple_convex_collisions_from_file(
|
| 102 |
+
filename=str(collision_file),
|
| 103 |
+
scale=scale,
|
| 104 |
+
material=physical_material,
|
| 105 |
+
)
|
| 106 |
+
else:
|
| 107 |
+
builder.add_nonconvex_collision_from_file(
|
| 108 |
+
filename=str(collision_file),
|
| 109 |
+
scale=scale,
|
| 110 |
+
material=physical_material,
|
| 111 |
+
)
|
| 112 |
+
|
| 113 |
+
builder.add_visual_from_file(filename=str(visual_file), scale=scale)
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
entity = builder.build(name=model_name)
|
| 117 |
+
# mesh.set_name(modelname)
|
| 118 |
+
# mesh.set_pose(pose)
|
| 119 |
+
# return Actor(mesh, model_data)
|
| 120 |
+
|
| 121 |
+
# TODO HACK!!!! set mass!!!!!
|
| 122 |
+
for component in entity.get_components():
|
| 123 |
+
if isinstance(component, sapien.physx.PhysxRigidDynamicComponent):
|
| 124 |
+
component.mass = 1.
|
| 125 |
+
# TODO !!!!
|
| 126 |
+
# component.inertia = [0., 0., 0.]
|
| 127 |
+
# component.put_to_sleep()
|
| 128 |
+
|
| 129 |
+
return entity
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
# # TODO rm
|
| 134 |
+
# def _todo_robotwin_objects_create_entity(scene: sapien.Scene, id: str = "001_bottle-2"):
|
| 135 |
+
# loader = scene.create_urdf_loader()
|
| 136 |
+
# loader.load_multiple_collisions_from_file = True
|
| 137 |
+
# _, [entity] = loader.load_multiple(f"__todo_assets__/assets/{id}/model.urdf")
|
| 138 |
+
# return entity
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
|
| 143 |
+
import types
|
| 144 |
+
from typing import TypedDict
|
| 145 |
+
|
| 146 |
+
import numpy
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
class ARX5Robot:
|
| 150 |
+
def __init__(self, scene: sapien.Scene):
|
| 151 |
+
self._scene = scene
|
| 152 |
+
|
| 153 |
+
# whole robot
|
| 154 |
+
loader = scene.create_urdf_loader()
|
| 155 |
+
loader.fix_root_link = True
|
| 156 |
+
# TODO args["left_embodiment_config"]["urdf_path"]
|
| 157 |
+
# TODO !!!!!!!! incl asset in package
|
| 158 |
+
self._entity = loader.load("./assets/embodiments/aloha-agilex/urdf/arx5_description_isaac.urdf")
|
| 159 |
+
# TODO args["left_embodiment_config"]["robot_pose"]
|
| 160 |
+
# TODO !!!!!
|
| 161 |
+
# self._entity.set_root_pose(
|
| 162 |
+
# sapien.Pose(p=[0, -0.65, 0.0], q=[0.707, 0, 0, 0.707])
|
| 163 |
+
# )
|
| 164 |
+
|
| 165 |
+
def _find_joint_by_name(articulation: sapien.physx.PhysxArticulation, joint_name: str):
|
| 166 |
+
joint = articulation.find_joint_by_name(joint_name)
|
| 167 |
+
if joint is None:
|
| 168 |
+
raise ValueError(f"Joint {joint_name} not found in the robot model.")
|
| 169 |
+
return joint
|
| 170 |
+
|
| 171 |
+
# joints (grouped by function)
|
| 172 |
+
self._joints = {
|
| 173 |
+
"left_arm": tuple(
|
| 174 |
+
_find_joint_by_name(self._entity, joint_name)
|
| 175 |
+
for joint_name in (
|
| 176 |
+
"fl_joint1",
|
| 177 |
+
"fl_joint2",
|
| 178 |
+
"fl_joint3",
|
| 179 |
+
"fl_joint4",
|
| 180 |
+
"fl_joint5",
|
| 181 |
+
"fl_joint6",
|
| 182 |
+
)
|
| 183 |
+
),
|
| 184 |
+
"right_arm": tuple(
|
| 185 |
+
_find_joint_by_name(self._entity, joint_name)
|
| 186 |
+
for joint_name in (
|
| 187 |
+
"fr_joint1",
|
| 188 |
+
"fr_joint2",
|
| 189 |
+
"fr_joint3",
|
| 190 |
+
"fr_joint4",
|
| 191 |
+
"fr_joint5",
|
| 192 |
+
"fr_joint6",
|
| 193 |
+
)
|
| 194 |
+
),
|
| 195 |
+
"left_gripper": tuple(
|
| 196 |
+
_find_joint_by_name(self._entity, joint_name)
|
| 197 |
+
for joint_name in (
|
| 198 |
+
"fl_joint7",
|
| 199 |
+
"fl_joint8",
|
| 200 |
+
)
|
| 201 |
+
),
|
| 202 |
+
"right_gripper": tuple(
|
| 203 |
+
_find_joint_by_name(self._entity, joint_name)
|
| 204 |
+
for joint_name in (
|
| 205 |
+
"fr_joint7",
|
| 206 |
+
"fr_joint8",
|
| 207 |
+
)
|
| 208 |
+
),
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
# TODO args["left_embodiment_config"]["arm_joints_name"]
|
| 212 |
+
# TODO args["left_embodiment_config"]["joint_stiffness"]
|
| 213 |
+
# TODO args["left_embodiment_config"]["joint_damping"]
|
| 214 |
+
for joint in (*self._joints["left_arm"], *self._joints["right_arm"]):
|
| 215 |
+
joint.set_drive_property(
|
| 216 |
+
stiffness=1_000,
|
| 217 |
+
damping=200,
|
| 218 |
+
)
|
| 219 |
+
|
| 220 |
+
# TODO args["left_embodiment_config"]["gripper_name"]
|
| 221 |
+
# TODO args["left_embodiment_config"]["gripper_stiffness"]
|
| 222 |
+
# TODO args["left_embodiment_config"]["gripper_damping"]
|
| 223 |
+
for joint in (*self._joints["left_gripper"], *self._joints["right_gripper"]):
|
| 224 |
+
joint.set_drive_property(
|
| 225 |
+
stiffness=1_000,
|
| 226 |
+
damping=200,
|
| 227 |
+
)
|
| 228 |
+
|
| 229 |
+
for link in self._entity.links:
|
| 230 |
+
link.set_mass(1)
|
| 231 |
+
|
| 232 |
+
# cameras
|
| 233 |
+
# TODO lifecycle mgmt: destroy when robot destroyed? upstream controllables
|
| 234 |
+
self._cameras = {
|
| 235 |
+
camera_link_name: self._scene.add_mounted_camera(
|
| 236 |
+
# TODO uuid bc the name cannot be used as an identifier!!!!!!???
|
| 237 |
+
name=f"{camera_link_name}",
|
| 238 |
+
mount=self._entity.find_link_by_name(camera_link_name).entity,
|
| 239 |
+
pose=sapien.Pose(),
|
| 240 |
+
width=640,
|
| 241 |
+
height=480,
|
| 242 |
+
fovy=numpy.deg2rad(93),
|
| 243 |
+
near=.1,
|
| 244 |
+
far=100.,
|
| 245 |
+
)
|
| 246 |
+
for camera_link_name in (
|
| 247 |
+
"left_camera",
|
| 248 |
+
"right_camera",
|
| 249 |
+
"camera_link1",
|
| 250 |
+
"camera_link2",
|
| 251 |
+
)
|
| 252 |
+
}
|
| 253 |
+
# TODO args['left_embodiment_config']['static_camera_list'] NOPE!!!
|
| 254 |
+
# replaces: key: "front_camera" => "waist_camera"; "head_camera"
|
| 255 |
+
# NOTE aliases
|
| 256 |
+
self._cameras["left_wrist_camera"] = self._cameras["left_camera"]
|
| 257 |
+
self._cameras["right_wrist_camera"] = self._cameras["right_camera"]
|
| 258 |
+
self._cameras["waist_camera"] = self._cameras["camera_link1"]
|
| 259 |
+
self._cameras["head_camera"] = self._cameras["camera_link2"]
|
| 260 |
+
|
| 261 |
+
class CameraDict(TypedDict):
|
| 262 |
+
left_wrist_camera: sapien.render.RenderCameraComponent
|
| 263 |
+
right_wrist_camera: sapien.render.RenderCameraComponent
|
| 264 |
+
waist_camera: sapien.render.RenderCameraComponent
|
| 265 |
+
head_camera: sapien.render.RenderCameraComponent
|
| 266 |
+
|
| 267 |
+
@property
|
| 268 |
+
def cameras(self) -> CameraDict:
|
| 269 |
+
return types.MappingProxyType(self._cameras)
|
| 270 |
+
|
| 271 |
+
class JointsDict(TypedDict):
|
| 272 |
+
left_arm: tuple[sapien.physx.PhysxArticulationJoint, ...]
|
| 273 |
+
right_arm: tuple[sapien.physx.PhysxArticulationJoint, ...]
|
| 274 |
+
left_gripper: tuple[sapien.physx.PhysxArticulationJoint, ...]
|
| 275 |
+
right_gripper: tuple[sapien.physx.PhysxArticulationJoint, ...]
|
| 276 |
+
|
| 277 |
+
@property
|
| 278 |
+
def joints(self) -> JointsDict:
|
| 279 |
+
return types.MappingProxyType(self._joints)
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
class UnitreeG1DFQRobot:
|
| 284 |
+
def __init__(self, scene: sapien.Scene):
|
| 285 |
+
self._scene = scene
|
| 286 |
+
|
| 287 |
+
loader = scene.create_urdf_loader()
|
| 288 |
+
loader.fix_root_link = True
|
| 289 |
+
# TODO args["left_embodiment_config"]["urdf_path"]
|
| 290 |
+
# TODO !!!!!!!! incl asset in package
|
| 291 |
+
self._entity = loader.load("__thirdparty__/unitree_ros/robots/g1_description/g1_29dof_rev_1_0_with_inspire_hand_DFQ.urdf")
|
| 292 |
+
# self._entity = loader.load("__thirdparty__/unitree_ros/robots/g1_description/g1_29dof_rev_1_0.urdf")
|
| 293 |
+
# TODO args["left_embodiment_config"]["robot_pose"]
|
| 294 |
+
self._entity.root_pose = (
|
| 295 |
+
# TODO
|
| 296 |
+
# sapien.Pose(p=[0., -0.65, 1.], q=[0.707, 0, 0, 0.707])
|
| 297 |
+
sapien.Pose(p=[0., 0., 1.])
|
| 298 |
+
)
|
| 299 |
+
|
| 300 |
+
self._joints = {
|
| 301 |
+
joint.name: joint
|
| 302 |
+
for joint in self._entity.joints
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
# TODO
|
| 306 |
+
self._cameras = {
|
| 307 |
+
camera_link_name: self._scene.add_mounted_camera(
|
| 308 |
+
# TODO uuid bc the name cannot be used as an identifier!!!!!!???
|
| 309 |
+
name=f"{camera_link_name}",
|
| 310 |
+
mount=self._entity.find_link_by_name(camera_link_name).entity,
|
| 311 |
+
pose=sapien.Pose(),
|
| 312 |
+
width=1280,
|
| 313 |
+
height=720,
|
| 314 |
+
# TODO
|
| 315 |
+
fovy=numpy.deg2rad(0),
|
| 316 |
+
near=.1,
|
| 317 |
+
far=100.,
|
| 318 |
+
)
|
| 319 |
+
for camera_link_name in (
|
| 320 |
+
"d435_link",
|
| 321 |
+
)
|
| 322 |
+
}
|
| 323 |
+
|
| 324 |
+
# TODO ref https://www.intel.com/content/www/us/en/support/articles/000030385/emerging-technologies/intel-realsense-technology.html
|
| 325 |
+
self._cameras["d435_link"].set_fovx(numpy.deg2rad(86), compute_y=False)
|
| 326 |
+
self._cameras["d435_link"].set_fovy(numpy.deg2rad(57), compute_x=False)
|
| 327 |
+
|
| 328 |
+
self._cameras["head_camera"] = self._cameras["d435_link"]
|
| 329 |
+
|
| 330 |
+
# # TODO !!!!!!!!
|
| 331 |
+
for link in self._entity.links:
|
| 332 |
+
link.set_mass(1)
|
| 333 |
+
|
| 334 |
+
@property
|
| 335 |
+
def root_pose(self):
|
| 336 |
+
return self._entity.root_pose
|
| 337 |
+
|
| 338 |
+
@root_pose.setter
|
| 339 |
+
def root_pose(self, value: sapien.Pose):
|
| 340 |
+
self._entity.root_pose = value
|
| 341 |
+
|
| 342 |
+
# TODO !!!!
|
| 343 |
+
@property
|
| 344 |
+
def joints(self): # TODO !!!!!!
|
| 345 |
+
return types.MappingProxyType(self._joints)
|
| 346 |
+
|
| 347 |
+
class CameraDict(TypedDict):
|
| 348 |
+
head_camera: sapien.render.RenderCameraComponent
|
| 349 |
+
|
| 350 |
+
@property
|
| 351 |
+
def cameras(self) -> CameraDict:
|
| 352 |
+
return types.MappingProxyType(self._cameras)
|
__todo__/packages/robotodo/todos/placement_planners.py
CHANGED
|
@@ -21,6 +21,8 @@ def _todo_place_polygon_randomly(
|
|
| 21 |
max_trials: int = 1_000,
|
| 22 |
) -> PlacementResult | None:
|
| 23 |
"""
|
|
|
|
|
|
|
| 24 |
Attempt to randomly place the given polygon (`shape`) inside `surface` without overlapping `collisions`.
|
| 25 |
The shape will be randomly rotated and translated.
|
| 26 |
|
|
|
|
| 21 |
max_trials: int = 1_000,
|
| 22 |
) -> PlacementResult | None:
|
| 23 |
"""
|
| 24 |
+
TODO doc
|
| 25 |
+
|
| 26 |
Attempt to randomly place the given polygon (`shape`) inside `surface` without overlapping `collisions`.
|
| 27 |
The shape will be randomly rotated and translated.
|
| 28 |
|
__todo__/packages/robotodo/todos/scene.py
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import sapien
|
| 2 |
|
| 3 |
def make_scene(options: dict = dict()):
|
|
@@ -81,7 +86,7 @@ class LightingController:
|
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
-
# TODO
|
| 85 |
def _todo_get_textured_render_material() -> sapien.render.RenderMaterial:
|
| 86 |
texture2d = sapien.render.RenderTexture2D(
|
| 87 |
f"./assets/background_texture/seen/0.png"
|
|
@@ -100,119 +105,6 @@ def _todo_get_plain_render_material(color=(1, 1, 1)) -> sapien.render.RenderMate
|
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
-
# TODO
|
| 104 |
-
def _todo_get_actor_dataset_entry(
|
| 105 |
-
# scene: sapien.Scene,
|
| 106 |
-
# pose: sapien.Pose,
|
| 107 |
-
modelname: str = "001_bottle",
|
| 108 |
-
# scale=(1, 1, 1),
|
| 109 |
-
# convex=False,
|
| 110 |
-
# is_static=False,
|
| 111 |
-
model_id=0,
|
| 112 |
-
):
|
| 113 |
-
from pathlib import Path
|
| 114 |
-
import json
|
| 115 |
-
|
| 116 |
-
def get_glb_or_obj_file(modeldir, model_id):
|
| 117 |
-
modeldir = Path(modeldir)
|
| 118 |
-
if model_id is None:
|
| 119 |
-
file = modeldir / "base.glb"
|
| 120 |
-
else:
|
| 121 |
-
file = modeldir / f"base{model_id}.glb"
|
| 122 |
-
if not file.exists():
|
| 123 |
-
if model_id is None:
|
| 124 |
-
file = modeldir / "textured.obj"
|
| 125 |
-
else:
|
| 126 |
-
file = modeldir / f"textured{model_id}.obj"
|
| 127 |
-
return file
|
| 128 |
-
|
| 129 |
-
modeldir = Path("assets/objects") / modelname
|
| 130 |
-
|
| 131 |
-
if model_id is None:
|
| 132 |
-
json_file_path = modeldir / "model_data.json"
|
| 133 |
-
else:
|
| 134 |
-
json_file_path = modeldir / f"model_data{model_id}.json"
|
| 135 |
-
|
| 136 |
-
# TODO !!!!!
|
| 137 |
-
collision_file = ""
|
| 138 |
-
visual_file = ""
|
| 139 |
-
if (modeldir / "collision").exists():
|
| 140 |
-
collision_file = get_glb_or_obj_file(modeldir / "collision", model_id)
|
| 141 |
-
if collision_file == "" or not collision_file.exists():
|
| 142 |
-
collision_file = get_glb_or_obj_file(modeldir, model_id)
|
| 143 |
-
|
| 144 |
-
if (modeldir / "visual").exists():
|
| 145 |
-
visual_file = get_glb_or_obj_file(modeldir / "visual", model_id)
|
| 146 |
-
if visual_file == "" or not visual_file.exists():
|
| 147 |
-
visual_file = get_glb_or_obj_file(modeldir, model_id)
|
| 148 |
-
|
| 149 |
-
if not collision_file.exists() or not visual_file.exists():
|
| 150 |
-
raise FileNotFoundError(f"Cannot find model files for {modelname} id={model_id}")
|
| 151 |
-
|
| 152 |
-
with open(json_file_path, "r") as file:
|
| 153 |
-
model_data = json.load(file)
|
| 154 |
-
|
| 155 |
-
return {
|
| 156 |
-
"metadata": model_data,
|
| 157 |
-
"collision_file": collision_file,
|
| 158 |
-
"visual_file": visual_file,
|
| 159 |
-
}
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
# TODO
|
| 163 |
-
def _todo_get_actor_dataset_entry_entity(
|
| 164 |
-
scene: sapien.Scene,
|
| 165 |
-
model_name: str = "001_bottle",
|
| 166 |
-
model_id=0,
|
| 167 |
-
convex=False,
|
| 168 |
-
# TODO
|
| 169 |
-
# physical_type: str = "dynamic",
|
| 170 |
-
physical_material: sapien.physx.PhysxMaterial | None = None,
|
| 171 |
-
):
|
| 172 |
-
todo = _todo_get_actor_dataset_entry(modelname=model_name, model_id=model_id)
|
| 173 |
-
|
| 174 |
-
scale = todo["metadata"]["scale"]
|
| 175 |
-
collision_file = (todo["collision_file"])
|
| 176 |
-
visual_file = (todo["visual_file"])
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
builder = scene.create_actor_builder()
|
| 180 |
-
# TODO
|
| 181 |
-
builder.set_physx_body_type("dynamic")
|
| 182 |
-
|
| 183 |
-
if convex == True:
|
| 184 |
-
builder.add_multiple_convex_collisions_from_file(
|
| 185 |
-
filename=str(collision_file),
|
| 186 |
-
scale=scale,
|
| 187 |
-
material=physical_material,
|
| 188 |
-
)
|
| 189 |
-
else:
|
| 190 |
-
builder.add_nonconvex_collision_from_file(
|
| 191 |
-
filename=str(collision_file),
|
| 192 |
-
scale=scale,
|
| 193 |
-
material=physical_material,
|
| 194 |
-
)
|
| 195 |
-
|
| 196 |
-
builder.add_visual_from_file(filename=str(visual_file), scale=scale)
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
entity = builder.build(name=model_name)
|
| 200 |
-
# mesh.set_name(modelname)
|
| 201 |
-
# mesh.set_pose(pose)
|
| 202 |
-
# return Actor(mesh, model_data)
|
| 203 |
-
|
| 204 |
-
# TODO HACK!!!! set mass!!!!!
|
| 205 |
-
for component in entity.get_components():
|
| 206 |
-
if isinstance(component, sapien.physx.PhysxRigidDynamicComponent):
|
| 207 |
-
component.mass = 1.
|
| 208 |
-
# TODO !!!!
|
| 209 |
-
# component.inertia = [0., 0., 0.]
|
| 210 |
-
# component.put_to_sleep()
|
| 211 |
-
|
| 212 |
-
return entity
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
|
| 217 |
|
| 218 |
def _todo_create_observer_camera(scene: sapien.Scene):
|
|
@@ -301,7 +193,8 @@ class Wall:
|
|
| 301 |
|
| 302 |
|
| 303 |
|
| 304 |
-
|
|
|
|
| 305 |
|
| 306 |
import numpy
|
| 307 |
import gymnasium.spaces
|
|
@@ -473,7 +366,16 @@ class Table:
|
|
| 473 |
# ]
|
| 474 |
|
| 475 |
# TODO !!!!!!
|
| 476 |
-
def scatter_entities_on_tabletop(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 477 |
# TODO
|
| 478 |
import shapely
|
| 479 |
from .placement_planners import _todo_place_polygon_randomly
|
|
@@ -484,17 +386,17 @@ class Table:
|
|
| 484 |
if isinstance(component, sapien.physx.PhysxRigidBaseComponent):
|
| 485 |
return component.compute_global_aabb_tight()
|
| 486 |
|
| 487 |
-
|
| 488 |
def _todo_polygon_from_sapien_entity(entity: sapien.Entity):
|
| 489 |
# TODO simplify !!!!!!
|
| 490 |
(x_min, y_min, z_min), (x_max, y_max, z_max) = _todo_aabb_from_sapien_entity(entity)
|
| 491 |
return shapely.geometry.box(x_min, y_min, x_max, y_max)
|
| 492 |
|
|
|
|
| 493 |
collisions = [
|
| 494 |
_todo_polygon_from_sapien_entity(entity)
|
| 495 |
for entity in self.tabletop_entities
|
| 496 |
]
|
| 497 |
-
|
| 498 |
for entity in entities:
|
| 499 |
res = _todo_place_polygon_randomly(
|
| 500 |
_todo_polygon_from_sapien_entity(entity),
|
|
@@ -506,8 +408,16 @@ class Table:
|
|
| 506 |
# TODO
|
| 507 |
collisions=collisions,
|
| 508 |
)
|
|
|
|
| 509 |
if res is None:
|
| 510 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 511 |
# TODO NOTE alt: derive collision from scene - maybe unreliable
|
| 512 |
collisions += [res.placed_polygon]
|
| 513 |
|
|
@@ -519,222 +429,6 @@ class Table:
|
|
| 519 |
pose = sapien.Pose([res.transform.x, res.transform.y, self.tabletop_pos_space.low[2] + z_half])
|
| 520 |
pose.set_rpy([0, 0, res.transform.angle_rad])
|
| 521 |
entity.set_pose(pose)
|
|
|
|
| 522 |
|
| 523 |
-
|
| 524 |
-
def tablefront_pose(self):
|
| 525 |
-
self._entity.pose
|
| 526 |
-
pass
|
| 527 |
-
|
| 528 |
-
|
| 529 |
-
|
| 530 |
-
|
| 531 |
-
import types
|
| 532 |
-
from typing import TypedDict
|
| 533 |
-
|
| 534 |
-
import numpy
|
| 535 |
-
|
| 536 |
-
|
| 537 |
-
class ARX5Robot:
|
| 538 |
-
def __init__(self, scene: sapien.Scene):
|
| 539 |
-
self._scene = scene
|
| 540 |
-
|
| 541 |
-
# whole robot
|
| 542 |
-
loader = scene.create_urdf_loader()
|
| 543 |
-
loader.fix_root_link = True
|
| 544 |
-
# TODO args["left_embodiment_config"]["urdf_path"]
|
| 545 |
-
# TODO !!!!!!!! incl asset in package
|
| 546 |
-
self._entity = loader.load("./assets/embodiments/aloha-agilex/urdf/arx5_description_isaac.urdf")
|
| 547 |
-
# TODO args["left_embodiment_config"]["robot_pose"]
|
| 548 |
-
# TODO !!!!!
|
| 549 |
-
# self._entity.set_root_pose(
|
| 550 |
-
# sapien.Pose(p=[0, -0.65, 0.0], q=[0.707, 0, 0, 0.707])
|
| 551 |
-
# )
|
| 552 |
-
|
| 553 |
-
def _find_joint_by_name(articulation: sapien.physx.PhysxArticulation, joint_name: str):
|
| 554 |
-
joint = articulation.find_joint_by_name(joint_name)
|
| 555 |
-
if joint is None:
|
| 556 |
-
raise ValueError(f"Joint {joint_name} not found in the robot model.")
|
| 557 |
-
return joint
|
| 558 |
-
|
| 559 |
-
# joints (grouped by function)
|
| 560 |
-
self._joints = {
|
| 561 |
-
"left_arm": tuple(
|
| 562 |
-
_find_joint_by_name(self._entity, joint_name)
|
| 563 |
-
for joint_name in (
|
| 564 |
-
"fl_joint1",
|
| 565 |
-
"fl_joint2",
|
| 566 |
-
"fl_joint3",
|
| 567 |
-
"fl_joint4",
|
| 568 |
-
"fl_joint5",
|
| 569 |
-
"fl_joint6",
|
| 570 |
-
)
|
| 571 |
-
),
|
| 572 |
-
"right_arm": tuple(
|
| 573 |
-
_find_joint_by_name(self._entity, joint_name)
|
| 574 |
-
for joint_name in (
|
| 575 |
-
"fr_joint1",
|
| 576 |
-
"fr_joint2",
|
| 577 |
-
"fr_joint3",
|
| 578 |
-
"fr_joint4",
|
| 579 |
-
"fr_joint5",
|
| 580 |
-
"fr_joint6",
|
| 581 |
-
)
|
| 582 |
-
),
|
| 583 |
-
"left_gripper": tuple(
|
| 584 |
-
_find_joint_by_name(self._entity, joint_name)
|
| 585 |
-
for joint_name in (
|
| 586 |
-
"fl_joint7",
|
| 587 |
-
"fl_joint8",
|
| 588 |
-
)
|
| 589 |
-
),
|
| 590 |
-
"right_gripper": tuple(
|
| 591 |
-
_find_joint_by_name(self._entity, joint_name)
|
| 592 |
-
for joint_name in (
|
| 593 |
-
"fr_joint7",
|
| 594 |
-
"fr_joint8",
|
| 595 |
-
)
|
| 596 |
-
),
|
| 597 |
-
}
|
| 598 |
-
|
| 599 |
-
# TODO args["left_embodiment_config"]["arm_joints_name"]
|
| 600 |
-
# TODO args["left_embodiment_config"]["joint_stiffness"]
|
| 601 |
-
# TODO args["left_embodiment_config"]["joint_damping"]
|
| 602 |
-
for joint in (*self._joints["left_arm"], *self._joints["right_arm"]):
|
| 603 |
-
joint.set_drive_property(
|
| 604 |
-
stiffness=1_000,
|
| 605 |
-
damping=200,
|
| 606 |
-
)
|
| 607 |
-
|
| 608 |
-
# TODO args["left_embodiment_config"]["gripper_name"]
|
| 609 |
-
# TODO args["left_embodiment_config"]["gripper_stiffness"]
|
| 610 |
-
# TODO args["left_embodiment_config"]["gripper_damping"]
|
| 611 |
-
for joint in (*self._joints["left_gripper"], *self._joints["right_gripper"]):
|
| 612 |
-
joint.set_drive_property(
|
| 613 |
-
stiffness=1_000,
|
| 614 |
-
damping=200,
|
| 615 |
-
)
|
| 616 |
-
|
| 617 |
-
for link in self._entity.links:
|
| 618 |
-
link.set_mass(1)
|
| 619 |
-
|
| 620 |
-
# cameras
|
| 621 |
-
# TODO lifecycle mgmt: destroy when robot destroyed? upstream controllables
|
| 622 |
-
self._cameras = {
|
| 623 |
-
camera_link_name: self._scene.add_mounted_camera(
|
| 624 |
-
# TODO uuid bc the name cannot be used as an identifier!!!!!!???
|
| 625 |
-
name=f"{camera_link_name}",
|
| 626 |
-
mount=self._entity.find_link_by_name(camera_link_name).entity,
|
| 627 |
-
pose=sapien.Pose(),
|
| 628 |
-
width=640,
|
| 629 |
-
height=480,
|
| 630 |
-
fovy=numpy.deg2rad(93),
|
| 631 |
-
near=.1,
|
| 632 |
-
far=100.,
|
| 633 |
-
)
|
| 634 |
-
for camera_link_name in (
|
| 635 |
-
"left_camera",
|
| 636 |
-
"right_camera",
|
| 637 |
-
"camera_link1",
|
| 638 |
-
"camera_link2",
|
| 639 |
-
)
|
| 640 |
-
}
|
| 641 |
-
# TODO args['left_embodiment_config']['static_camera_list'] NOPE!!!
|
| 642 |
-
# replaces: key: "front_camera" => "waist_camera"; "head_camera"
|
| 643 |
-
# NOTE aliases
|
| 644 |
-
self._cameras["left_wrist_camera"] = self._cameras["left_camera"]
|
| 645 |
-
self._cameras["right_wrist_camera"] = self._cameras["right_camera"]
|
| 646 |
-
self._cameras["waist_camera"] = self._cameras["camera_link1"]
|
| 647 |
-
self._cameras["head_camera"] = self._cameras["camera_link2"]
|
| 648 |
-
|
| 649 |
-
class CameraDict(TypedDict):
|
| 650 |
-
left_wrist_camera: sapien.render.RenderCameraComponent
|
| 651 |
-
right_wrist_camera: sapien.render.RenderCameraComponent
|
| 652 |
-
waist_camera: sapien.render.RenderCameraComponent
|
| 653 |
-
head_camera: sapien.render.RenderCameraComponent
|
| 654 |
-
|
| 655 |
-
@property
|
| 656 |
-
def cameras(self) -> CameraDict:
|
| 657 |
-
return types.MappingProxyType(self._cameras)
|
| 658 |
-
|
| 659 |
-
class JointsDict(TypedDict):
|
| 660 |
-
left_arm: tuple[sapien.physx.PhysxArticulationJoint, ...]
|
| 661 |
-
right_arm: tuple[sapien.physx.PhysxArticulationJoint, ...]
|
| 662 |
-
left_gripper: tuple[sapien.physx.PhysxArticulationJoint, ...]
|
| 663 |
-
right_gripper: tuple[sapien.physx.PhysxArticulationJoint, ...]
|
| 664 |
-
|
| 665 |
-
@property
|
| 666 |
-
def joints(self) -> JointsDict:
|
| 667 |
-
return types.MappingProxyType(self._joints)
|
| 668 |
-
|
| 669 |
-
|
| 670 |
-
|
| 671 |
-
class UnitreeG1DFQRobot:
|
| 672 |
-
def __init__(self, scene: sapien.Scene):
|
| 673 |
-
self._scene = scene
|
| 674 |
-
|
| 675 |
-
loader = scene.create_urdf_loader()
|
| 676 |
-
loader.fix_root_link = True
|
| 677 |
-
# TODO args["left_embodiment_config"]["urdf_path"]
|
| 678 |
-
# TODO !!!!!!!! incl asset in package
|
| 679 |
-
self._entity = loader.load("__thirdparty__/unitree_ros/robots/g1_description/g1_29dof_rev_1_0_with_inspire_hand_DFQ.urdf")
|
| 680 |
-
# self._entity = loader.load("__thirdparty__/unitree_ros/robots/g1_description/g1_29dof_rev_1_0.urdf")
|
| 681 |
-
# TODO args["left_embodiment_config"]["robot_pose"]
|
| 682 |
-
self._entity.root_pose = (
|
| 683 |
-
# TODO
|
| 684 |
-
# sapien.Pose(p=[0., -0.65, 1.], q=[0.707, 0, 0, 0.707])
|
| 685 |
-
sapien.Pose(p=[0., 0., 1.])
|
| 686 |
-
)
|
| 687 |
-
|
| 688 |
-
self._joints = {
|
| 689 |
-
joint.name: joint
|
| 690 |
-
for joint in self._entity.joints
|
| 691 |
-
}
|
| 692 |
-
|
| 693 |
-
# TODO
|
| 694 |
-
self._cameras = {
|
| 695 |
-
camera_link_name: self._scene.add_mounted_camera(
|
| 696 |
-
# TODO uuid bc the name cannot be used as an identifier!!!!!!???
|
| 697 |
-
name=f"{camera_link_name}",
|
| 698 |
-
mount=self._entity.find_link_by_name(camera_link_name).entity,
|
| 699 |
-
pose=sapien.Pose(),
|
| 700 |
-
width=1280,
|
| 701 |
-
height=720,
|
| 702 |
-
# TODO
|
| 703 |
-
fovy=numpy.deg2rad(0),
|
| 704 |
-
near=.1,
|
| 705 |
-
far=100.,
|
| 706 |
-
)
|
| 707 |
-
for camera_link_name in (
|
| 708 |
-
"d435_link",
|
| 709 |
-
)
|
| 710 |
-
}
|
| 711 |
-
|
| 712 |
-
# TODO ref https://www.intel.com/content/www/us/en/support/articles/000030385/emerging-technologies/intel-realsense-technology.html
|
| 713 |
-
self._cameras["d435_link"].set_fovx(numpy.deg2rad(86), compute_y=False)
|
| 714 |
-
self._cameras["d435_link"].set_fovy(numpy.deg2rad(57), compute_x=False)
|
| 715 |
-
|
| 716 |
-
self._cameras["head_camera"] = self._cameras["d435_link"]
|
| 717 |
-
|
| 718 |
-
# # TODO !!!!!!!!
|
| 719 |
-
for link in self._entity.links:
|
| 720 |
-
link.set_mass(1)
|
| 721 |
-
|
| 722 |
-
@property
|
| 723 |
-
def root_pose(self):
|
| 724 |
-
return self._entity.root_pose
|
| 725 |
-
|
| 726 |
-
@root_pose.setter
|
| 727 |
-
def root_pose(self, value: sapien.Pose):
|
| 728 |
-
self._entity.root_pose = value
|
| 729 |
-
|
| 730 |
-
# TODO !!!!
|
| 731 |
-
@property
|
| 732 |
-
def joints(self): # TODO !!!!!!
|
| 733 |
-
return types.MappingProxyType(self._joints)
|
| 734 |
-
|
| 735 |
-
class CameraDict(TypedDict):
|
| 736 |
-
head_camera: sapien.render.RenderCameraComponent
|
| 737 |
-
|
| 738 |
-
@property
|
| 739 |
-
def cameras(self) -> CameraDict:
|
| 740 |
-
return types.MappingProxyType(self._cameras)
|
|
|
|
| 1 |
+
# TODO rm
|
| 2 |
+
from ._legacy import _todo_get_actor_dataset_entry, _todo_get_actor_dataset_entry_entity, ARX5Robot, UnitreeG1DFQRobot
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
import sapien
|
| 7 |
|
| 8 |
def make_scene(options: dict = dict()):
|
|
|
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
+
# TODO !!!!!
|
| 90 |
def _todo_get_textured_render_material() -> sapien.render.RenderMaterial:
|
| 91 |
texture2d = sapien.render.RenderTexture2D(
|
| 92 |
f"./assets/background_texture/seen/0.png"
|
|
|
|
| 105 |
|
| 106 |
|
| 107 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 108 |
|
| 109 |
|
| 110 |
def _todo_create_observer_camera(scene: sapien.Scene):
|
|
|
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
+
import types
|
| 197 |
+
from typing import Literal, TypedDict, Iterable
|
| 198 |
|
| 199 |
import numpy
|
| 200 |
import gymnasium.spaces
|
|
|
|
| 366 |
# ]
|
| 367 |
|
| 368 |
# TODO !!!!!!
|
| 369 |
+
def scatter_entities_on_tabletop(
|
| 370 |
+
self,
|
| 371 |
+
entities: Iterable[sapien.Entity],
|
| 372 |
+
out_of_space_behavior: Literal["abort", "ignore", "raise"] = "ignore",
|
| 373 |
+
) -> list[sapien.Entity]:
|
| 374 |
+
"""
|
| 375 |
+
TODO doc: return placed entities ONLY
|
| 376 |
+
|
| 377 |
+
"""
|
| 378 |
+
|
| 379 |
# TODO
|
| 380 |
import shapely
|
| 381 |
from .placement_planners import _todo_place_polygon_randomly
|
|
|
|
| 386 |
if isinstance(component, sapien.physx.PhysxRigidBaseComponent):
|
| 387 |
return component.compute_global_aabb_tight()
|
| 388 |
|
|
|
|
| 389 |
def _todo_polygon_from_sapien_entity(entity: sapien.Entity):
|
| 390 |
# TODO simplify !!!!!!
|
| 391 |
(x_min, y_min, z_min), (x_max, y_max, z_max) = _todo_aabb_from_sapien_entity(entity)
|
| 392 |
return shapely.geometry.box(x_min, y_min, x_max, y_max)
|
| 393 |
|
| 394 |
+
placed_entities = []
|
| 395 |
collisions = [
|
| 396 |
_todo_polygon_from_sapien_entity(entity)
|
| 397 |
for entity in self.tabletop_entities
|
| 398 |
]
|
| 399 |
+
|
| 400 |
for entity in entities:
|
| 401 |
res = _todo_place_polygon_randomly(
|
| 402 |
_todo_polygon_from_sapien_entity(entity),
|
|
|
|
| 408 |
# TODO
|
| 409 |
collisions=collisions,
|
| 410 |
)
|
| 411 |
+
# NOTE TODO out of space; try another
|
| 412 |
if res is None:
|
| 413 |
+
match out_of_space_behavior:
|
| 414 |
+
case "abort":
|
| 415 |
+
break
|
| 416 |
+
case "raise":
|
| 417 |
+
raise RuntimeError(f"Out of space. Failed to place entity {entity} on table.")
|
| 418 |
+
case "ignore":
|
| 419 |
+
continue
|
| 420 |
+
raise ValueError(f"Unknown out of space behavior: {out_of_space_behavior}")
|
| 421 |
# TODO NOTE alt: derive collision from scene - maybe unreliable
|
| 422 |
collisions += [res.placed_polygon]
|
| 423 |
|
|
|
|
| 429 |
pose = sapien.Pose([res.transform.x, res.transform.y, self.tabletop_pos_space.low[2] + z_half])
|
| 430 |
pose.set_rpy([0, 0, res.transform.angle_rad])
|
| 431 |
entity.set_pose(pose)
|
| 432 |
+
placed_entities += [entity]
|
| 433 |
|
| 434 |
+
return placed_entities
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__todo__/packages/robotodo/utils/asset.py
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
TODO asset loading specification? standardization for robotodo_assets?
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
"""
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
import os
|
| 9 |
+
import pathlib
|
| 10 |
+
from typing import Any, Literal, Optional, TypedDict, Iterable, TypeAlias
|
| 11 |
+
|
| 12 |
+
# TODO
|
| 13 |
+
import json
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
MetadataObjectOrPath: TypeAlias = """
|
| 18 |
+
os.PathLike
|
| 19 |
+
| MetadataCatalog
|
| 20 |
+
| MetadataResource
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
class MetadataResource(TypedDict):
|
| 24 |
+
type: Optional[Literal["resource"]]
|
| 25 |
+
base_path: Optional[os.PathLike] # TODO or url!!!!!
|
| 26 |
+
content: Optional[Any]
|
| 27 |
+
# TODO unused for now !!!!!!!
|
| 28 |
+
id: Optional[str]
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
class MetadataCatalog(TypedDict):
|
| 32 |
+
type: Literal["catalog"]
|
| 33 |
+
base_path: Optional[os.PathLike] # TODO or url!!!!!
|
| 34 |
+
includes: Optional[list[MetadataObjectOrPath]] # TODO url!!!!!
|
| 35 |
+
|
| 36 |
+
class MetadataResourceLoader:
|
| 37 |
+
"""
|
| 38 |
+
TODO doc metadata data structures!!!!
|
| 39 |
+
|
| 40 |
+
"""
|
| 41 |
+
|
| 42 |
+
# TODO find resource by id????
|
| 43 |
+
|
| 44 |
+
# TODO
|
| 45 |
+
def __call__(
|
| 46 |
+
self,
|
| 47 |
+
metadata_or_path: MetadataObjectOrPath,
|
| 48 |
+
base_path: os.PathLike | None = None,
|
| 49 |
+
) -> Iterable[MetadataResource]:
|
| 50 |
+
"""
|
| 51 |
+
TODO
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
+
if isinstance(metadata_or_path, dict):
|
| 55 |
+
metadata = dict(metadata_or_path)
|
| 56 |
+
match metadata.get("type", "resource"):
|
| 57 |
+
case "resource":
|
| 58 |
+
metadata: MetadataResource
|
| 59 |
+
yield {
|
| 60 |
+
**metadata,
|
| 61 |
+
"base_path": os.fspath(
|
| 62 |
+
pathlib.Path(base_path or "")
|
| 63 |
+
/ (metadata.get("base_path") or "")
|
| 64 |
+
),
|
| 65 |
+
}
|
| 66 |
+
return
|
| 67 |
+
case "catalog":
|
| 68 |
+
metadata: MetadataCatalog
|
| 69 |
+
# TODO
|
| 70 |
+
for include in metadata.get("includes") or []:
|
| 71 |
+
# TODO
|
| 72 |
+
yield from self.__call__(
|
| 73 |
+
include,
|
| 74 |
+
base_path=base_path,
|
| 75 |
+
)
|
| 76 |
+
return
|
| 77 |
+
|
| 78 |
+
if isinstance(metadata_or_path, (str, bytes, os.PathLike)):
|
| 79 |
+
metadata_path = pathlib.Path(base_path or "") / os.fspath(metadata_or_path)
|
| 80 |
+
with open(os.fspath(metadata_path), "r") as f:
|
| 81 |
+
yield from self.__call__(
|
| 82 |
+
json.load(f),
|
| 83 |
+
base_path=metadata_path.parent,
|
| 84 |
+
)
|
| 85 |
+
return
|
| 86 |
+
|
| 87 |
+
raise ValueError(f"Invalid metadata (or path) of type {type(metadata_or_path)}: {metadata_or_path}")
|
| 88 |
+
|
__todo__/packages/robotodo_assets/robotwin_objects/__init__.py
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
import os
|
| 7 |
+
import pathlib
|
| 8 |
+
import types
|
| 9 |
+
from typing import TypedDict
|
| 10 |
+
import importlib.resources
|
| 11 |
+
|
| 12 |
+
import numpy
|
| 13 |
+
import sapien
|
| 14 |
+
|
| 15 |
+
from robotodo.utils.asset import MetadataResourceLoader
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
# TODO
|
| 19 |
+
class RobotwinObjectInfo(TypedDict):
|
| 20 |
+
id: str
|
| 21 |
+
category: str
|
| 22 |
+
model_path: pathlib.Path
|
| 23 |
+
contact_transforms: list[numpy.ndarray]
|
| 24 |
+
target_transforms: list[numpy.ndarray]
|
| 25 |
+
functional_transforms: list[numpy.ndarray]
|
| 26 |
+
orientation_transforms: list[numpy.ndarray]
|
| 27 |
+
|
| 28 |
+
# TODO
|
| 29 |
+
class RobotwinEntityFactory:
|
| 30 |
+
def __init__(self):
|
| 31 |
+
# TODO metadata_or_path
|
| 32 |
+
|
| 33 |
+
self._infos_by_id: dict[str, RobotwinObjectInfo] = {}
|
| 34 |
+
|
| 35 |
+
res_loader = MetadataResourceLoader()
|
| 36 |
+
# TODO load the dataset from somewhere else?
|
| 37 |
+
for resource in res_loader(
|
| 38 |
+
importlib.resources.files(__package__) / "resources" / "metadata.json"
|
| 39 |
+
):
|
| 40 |
+
base_path = resource.get("base_path") or ""
|
| 41 |
+
content = resource["content"]
|
| 42 |
+
assert isinstance(content, dict)
|
| 43 |
+
self._infos_by_id[content["id"]] = RobotwinObjectInfo(
|
| 44 |
+
id=content["id"],
|
| 45 |
+
category=content["category"],
|
| 46 |
+
model_path=(pathlib.Path(base_path) / content["model_path"]).resolve(),
|
| 47 |
+
contact_transforms=content.get("contact_transforms", []),
|
| 48 |
+
target_transforms=content.get("target_transforms", []),
|
| 49 |
+
functional_transforms=content.get("functional_transforms", []),
|
| 50 |
+
orientation_transforms=content.get("orientation_transforms", []),
|
| 51 |
+
)
|
| 52 |
+
|
| 53 |
+
@property
|
| 54 |
+
def infos_by_id(self) -> dict[str, RobotwinObjectInfo]:
|
| 55 |
+
return types.MappingProxyType(self._infos_by_id)
|
| 56 |
+
|
| 57 |
+
def query(self, entity_or_id: sapien.Entity | str) -> RobotwinObjectInfo | None:
|
| 58 |
+
if isinstance(entity_or_id, str):
|
| 59 |
+
return self._infos_by_id.get(entity_or_id)
|
| 60 |
+
|
| 61 |
+
if isinstance(entity_or_id, sapien.Entity):
|
| 62 |
+
return self._infos_by_id.get(entity_or_id.name)
|
| 63 |
+
|
| 64 |
+
raise TypeError(f"Unsupported entity (or id): {entity_or_id}")
|
| 65 |
+
|
| 66 |
+
def create(self, scene: sapien.Scene, id: str) -> list[sapien.Entity]:
|
| 67 |
+
loader = scene.create_urdf_loader()
|
| 68 |
+
loader.load_multiple_collisions_from_file = True
|
| 69 |
+
_, entities = loader.load_multiple(
|
| 70 |
+
os.fspath(self._infos_by_id[id]["model_path"])
|
| 71 |
+
)
|
| 72 |
+
# TODO !!!!!
|
| 73 |
+
for entity in entities:
|
| 74 |
+
entity: sapien.Entity
|
| 75 |
+
entity.name = id
|
| 76 |
+
return entities
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-0/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-0/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-0/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-0", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 0.9487648192335866], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 0.9487648192335866], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 0.9487648192335866], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 0.9487648192335866], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, 0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, -4.329780281177466e-17, 0.9487648192335866], [0.0, 0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, 0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, -4.329780281177467e-17, 0.9487648192335866], [0.0, 0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, -0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, 4.329780281177467e-17, 0.9487648192335866], [0.0, -0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, -0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, 4.329780281177466e-17, 0.9487648192335866], [0.0, -0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.9487648192335866], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.9487648192335866], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.8975296384671732], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-0/model.urdf
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-1/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-1/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-1/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-1", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 0.950504765229936], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 0.950504765229936], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 0.950504765229936], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 0.950504765229936], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, 0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, -4.329780281177466e-17, 0.950504765229936], [0.0, 0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, 0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, -4.329780281177467e-17, 0.950504765229936], [0.0, 0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, -0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, 4.329780281177467e-17, 0.950504765229936], [0.0, -0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, -0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, 4.329780281177466e-17, 0.950504765229936], [0.0, -0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.950504765229936], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.950504765229936], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.901009530459872], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-1/model.urdf
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-10/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-10/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-10/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-10", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 0.948301549251603], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 0.948301549251603], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 0.948301549251603], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 0.948301549251603], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.948301549251603], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.948301549251603], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.896603098503206], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-10/model.urdf
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-11/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-11/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-11/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-11", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 0.8241185306297152], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 0.8241185306297152], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 0.8241185306297152], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 0.8241185306297152], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.8241185306297152], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.8241185306297152], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.6482370612594304], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-11/model.urdf
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-12/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-12/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-12/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-12", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 0.9484654406094759], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 0.9484654406094759], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 0.9484654406094759], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 0.9484654406094759], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, 0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, -4.329780281177466e-17, 0.9484654406094759], [0.0, 0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, 0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, -4.329780281177467e-17, 0.9484654406094759], [0.0, 0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, -0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, 4.329780281177467e-17, 0.9484654406094759], [0.0, -0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, -0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, 4.329780281177466e-17, 0.9484654406094759], [0.0, -0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.9484654406094759], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.9484654406094759], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.8969308812189518], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-12/model.urdf
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-13/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-13/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-13/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-13", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 0.9238575889494822], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 0.9238575889494822], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 0.9238575889494822], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 0.9238575889494822], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, 0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, -4.329780281177466e-17, 0.9238575889494822], [0.0, 0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, 0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, -4.329780281177467e-17, 0.9238575889494822], [0.0, 0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, -0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, 4.329780281177467e-17, 0.9238575889494822], [0.0, -0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, -0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, 4.329780281177466e-17, 0.9238575889494822], [0.0, -0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.9238575889494822], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.9238575889494822], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.8477151778989644], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-13/model.urdf
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-14/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-14/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-14/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-14", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 0.9509331448649547], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 0.9509331448649547], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 0.9509331448649547], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 0.9509331448649547], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, 0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, -4.329780281177466e-17, 0.9509331448649547], [0.0, 0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, 0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, -4.329780281177467e-17, 0.9509331448649547], [0.0, 0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, -0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, 4.329780281177467e-17, 0.9509331448649547], [0.0, -0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, -0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, 4.329780281177466e-17, 0.9509331448649547], [0.0, -0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.9509331448649547], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.9509331448649547], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.9018662897299095], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-14/model.urdf
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-15/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-15/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-15/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-15", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 1.1505662867821471], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 1.1505662867821471], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 1.1505662867821471], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 1.1505662867821471], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, 0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, -4.329780281177466e-17, 1.1505662867821471], [0.0, 0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, 0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, -4.329780281177467e-17, 1.1505662867821471], [0.0, 0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, -0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, 4.329780281177467e-17, 1.1505662867821471], [0.0, -0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, -0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, 4.329780281177466e-17, 1.1505662867821471], [0.0, -0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.950566286782147], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.950566286782147], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.901132573564294], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-15/model.urdf
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-16/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-16/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-16/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-16", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 0.9536239987553657], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 0.9536239987553657], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 0.9536239987553657], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 0.9536239987553657], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, 0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, -4.329780281177466e-17, 0.9536239987553657], [0.0, 0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, 0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, -4.329780281177467e-17, 0.9536239987553657], [0.0, 0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, -0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, 4.329780281177467e-17, 0.9536239987553657], [0.0, -0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, -0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, 4.329780281177466e-17, 0.9536239987553657], [0.0, -0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.9536239987553657], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.9536239987553657], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.9072479975107315], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-16/model.urdf
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-17/mesh/collision.glb
RENAMED
|
File without changes
|
{__todo_assets__ → __todo__/packages/robotodo_assets/robotwin_objects/resources}/assets/001_bottle-17/mesh/visual.glb
RENAMED
|
File without changes
|
__todo__/packages/robotodo_assets/robotwin_objects/resources/assets/001_bottle-17/metadata.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type": "resource", "content": {"id": "001_bottle-17", "category": "bottle", "model_path": "model.urdf", "contact_transforms": [[[6.123233995736766e-17, -1.0, 0.0, 0.0], [1.0, 6.123233995736766e-17, 0.0, 0.9461165877571774], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, 1.0, 0.0], [1.0, 3.749399456654644e-33, -6.123233995736766e-17, 0.9461165877571774], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 1.0, 1.2246467991473532e-16, 0.0], [1.0, -6.123233995736766e-17, -7.498798913309288e-33, 0.9461165877571774], [0.0, 1.2246467991473532e-16, -1.0, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -6.123233995736766e-17, -1.0, 0.0], [1.0, 3.749399456654644e-33, 6.123233995736766e-17, 0.9461165877571774], [0.0, -1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, 0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, -4.329780281177466e-17, 0.9461165877571774], [0.0, 0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, 0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, -4.329780281177467e-17, 0.9461165877571774], [0.0, 0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, 0.7071067811865475, -0.7071067811865476, 0.0], [1.0, -4.329780281177466e-17, 4.329780281177467e-17, 0.9461165877571774], [0.0, -0.7071067811865476, -0.7071067811865475, 0.0], [0.0, 0.0, 0.0, 1.0]], [[6.123233995736766e-17, -0.7071067811865476, -0.7071067811865475, 0.0], [1.0, 4.329780281177467e-17, 4.329780281177466e-17, 0.9461165877571774], [0.0, -0.7071067811865475, 0.7071067811865476, 0.0], [0.0, 0.0, 0.0, 1.0]]], "target_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.9461165877571774], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]], "functional_transforms": [[[1.0, 0.0, 0.0, 0.0], [0.0, 6.123233995736766e-17, -1.0, 0.9461165877571774], [0.0, 1.0, 6.123233995736766e-17, 0.0], [0.0, 0.0, 0.0, 1.0]]], "orientation_transforms": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 1.8922331755143549], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}
|