-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[FEATURE] Add support of USD import for Rigid Body. #2067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+4,087
−42
Merged
Changes from 15 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
4e7862c
primary impl
alanray-tech e5d699f
seems successful
alanray-tech dd257bd
able to load g1
alanray-tech 97d4c8c
[FEATURE] Add USD stage import functionality and related parsing util…
alanray-tech b85d994
temp
alanray-tech 0a44794
Merge branch 'Genesis-Embodied-AI:main' into main
alanray-tech 8c88436
Merge remote-tracking branch 'origin/main' into dev
alanray-tech f652a3a
new structure
alanray-tech 8814e38
add free root joint support
alanray-tech 2e47e34
fix free joint base link init transform
alanray-tech b0727c8
refactor code to better structure
alanray-tech 4d31b02
Merge branch 'main' into dev
alanray-tech 9fc5db0
add missing usd-parser-related import
alanray-tech 74689d2
support usd optional import
alanray-tech 7a44ac2
add missing morphs.Drone
alanray-tech 303f84f
support assets-download/argparser in usd example, clean up deps
alanray-tech e51f975
add usd import stage example to unit test
alanray-tech 1f4633e
refactor parser
alanray-tech cabdd49
fix uv_name missing
alanray-tech 7b0c544
fix rotation scaling extract
alanray-tech 0b23d9a
add usd driver api support
alanray-tech 0f5d298
update doc
alanray-tech 606752d
update workflow, install usd for usd unit test
alanray-tech 83675f1
add a simple animator, add default value init for dofs_frictionloss/d…
alanray-tech 54443f0
add morph option
YilingQiao 82b3533
Merge pull request #1 from YilingQiao/yiling/251210_usd_collision_vis…
alanray-tech 7d64715
Merge remote-tracking branch 'pub/main' into dev
alanray-tech a3fee62
weird target behaviour, need fix
alanray-tech dbc08ca
Merge branch 'main' into dev
YilingQiao bb87147
set target
YilingQiao c7cfa53
update limit
YilingQiao 8f02db1
add target to dofs info
YilingQiao 886dfe6
Merge pull request #2 from YilingQiao/yiling/251216_change_target
alanray-tech 7820f73
Merge remote-tracking branch 'pub/main' into dev
alanray-tech f9a037f
update pyproject.toml
alanray-tech e72dff4
merge origin/dev
alanray-tech 28ba6ce
change damping
YilingQiao 2290640
Merge pull request #3 from YilingQiao/yiling/251229_change_damping
alanray-tech 9e24f49
Merge remote-tracking branch 'pub/main' into dev
alanray-tech 0a8611d
fix rigid_solver_decomp missing entity_idx, which crash the rigid sim…
alanray-tech eba954a
Fixed the import path of .usda
alanray-tech a47bae5
fix usd_parser, move Entity type import into the function, so that a …
alanray-tech 6a71764
try skip usd related test on ARM machine
alanray-tech 45c5119
Merge branch 'main' into dev
alanray-tech fd4dda0
make usd import optional
alanray-tech e973715
Merge remote-tracking branch 'pub/main' into dev
alanray-tech e587af0
Merge branch 'main' into dev
alanray-tech ea45d00
Merge branch 'main' into dev
alanray-tech 10a38a3
improve at api and code style level according to the review
alanray-tech feb0ebe
refactor parsing logic & clean up codes for better readability and pe…
alanray-tech 3a82ffd
improve docstring
alanray-tech 016909b
try fix CI
alanray-tech 179be0e
fix drone test
alanray-tech 9b0fbe2
unify the usd rigidbody and articulation parser to rigid entity parse…
alanray-tech c443129
remove compute_joint_axis_scaling_factor, because USD take this value…
alanray-tech dcea807
Merge branch 'main' into dev
alanray-tech 0b54773
try fix NV EULA agreement input
alanray-tech e817bda
merge
alanray-tech 5bab2c6
add some unit tests, not fully implemented
alanray-tech 778b92b
add PureRigid/Revoluate/Prismatic/Spherical unit tests
alanray-tech d470b10
Adding OMNI_KIT_ACCEPT_EULA to the workflows that use USD; Improve ex…
alanray-tech c84b358
Merge branch 'dev' of https://github.com/alanray-tech/Genesis into dev
alanray-tech 46a025c
use float32 compatible tol in test_usd
alanray-tech ff159d3
expose more options in USD(Morph), align them with MJCF, test passed
alanray-tech b111c67
clean up code, add better warning when attribute matching fails
alanray-tech f7bbd6a
Merge remote-tracking branch 'pub/main' into dev
alanray-tech 86c5def
change warning about attribute missing to debug
alanray-tech 131147c
include OMNI_KIT_ACCEPT_EULA and OMNI_KIT_ALLOW_ROOT in SLURM_ENV_VAR…
alanray-tech 6ce56ec
support batched polar (torch and numpy), add filter function in polar…
alanray-tech 38dd302
update tol
alanray-tech 79a25ad
Merge remote-tracking branch 'pub/main' into dev
alanray-tech 4c5f77c
Final cleanup.
duburcqa a4d64a7
Merge branch 'main' into dev
duburcqa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,33 @@ | ||
| import genesis as gs | ||
|
|
||
| gs.init(backend=gs.cpu) | ||
|
|
||
| scene = gs.Scene( | ||
| viewer_options=gs.options.ViewerOptions( | ||
| camera_pos=(3.5, 0.0, 2.5), | ||
| camera_lookat=(0.0, 0.0, 0.5), | ||
| camera_fov=40, | ||
| enable_interaction=True, | ||
| ), | ||
| rigid_options=gs.options.RigidOptions( | ||
| # constraint_solver=gs.constraint_solver.Newton, | ||
| gravity=(0, 0, -9.8), | ||
| enable_collision=True, | ||
| enable_joint_limit=True, | ||
| max_collision_pairs=1000, | ||
| ), | ||
| show_viewer=True, | ||
| ) | ||
|
|
||
| AssetRoot = "D:/Assets" | ||
|
|
||
| # load a stage from USD file | ||
| entities = scene.add_stage(f"{AssetRoot}/Lightwheel_Kitchen001/Kitchen001/Kitchen001.usd") | ||
|
|
||
| # Build the scene | ||
| scene.build() | ||
|
|
||
| # Run the simulation for visualization | ||
| while scene.viewer.is_alive(): | ||
alanray-tech marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| scene.step() | ||
| pass | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
alanray-tech marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,16 @@ | ||
| """ | ||
| USD Parser System for Genesis | ||
|
|
||
| This package provides an extendable USD parser system with: | ||
| - UsdParserUtils: Utility functions for transforms, mesh conversion, etc. | ||
| - UsdParserContext: Context for tracking materials, articulations, and rigid bodies | ||
| - UsdRenderingMaterialParser: Parser for rendering materials | ||
| - UsdArticulationParser: Parser for articulations | ||
| - UsdRigidBodyParser: Parser for rigid bodies | ||
| - UsdParser: Main parser entrance with import_from_stage function | ||
| """ | ||
|
|
||
| from .usd_parser import UsdParser | ||
| from .usd_parser import import_from_usd | ||
| from .usd_articulation_parser import parse_usd_articulation | ||
| from .usd_rigid_body_parser import parse_usd_rigid_body |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.