Skip to content
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

Fixes setting of pose when spawning a mesh #692

Merged
merged 4 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Guidelines for modifications:
* Johnson Sun
* Kourosh Darvish
* Lorenz Wellhausen
* Masoud Moghani
* Muhong Guo
* Nuralem Abizov
* Özhan Özen
Expand Down
2 changes: 1 addition & 1 deletion source/extensions/omni.isaac.lab/config/extension.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

# Note: Semantic Versioning is used: https://semver.org/
version = "0.20.2"
version = "0.20.3"

# Description
title = "Isaac Lab framework for Robot Learning"
Expand Down
12 changes: 12 additions & 0 deletions source/extensions/omni.isaac.lab/docs/CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
Changelog
---------

0.20.3 (2024-08-02)
~~~~~~~~~~~~~~~~~~~

Fixed
^^^^^

* Fixed the setting of translation and orientation when spawning a mesh prim. Earlier, the translation
and orientation was being applied both on the parent Xform and the mesh prim. This was causing the
mesh prim to be offset by the translation and orientation of the parent Xform, which is not the intended
behavior.


0.20.2 (2024-08-02)
~~~~~~~~~~~~~~~~~~~

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ def _spawn_mesh_geom_from_mesh(
mesh_prim = prim_utils.create_prim(
mesh_prim_path,
prim_type="Mesh",
translation=translation,
orientation=orientation,
scale=scale,
attributes={
"points": mesh.vertices,
Expand Down
2 changes: 1 addition & 1 deletion source/standalone/tutorials/00_sim/spawn_prims.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def design_scene():
visual_material=sim_utils.PreviewSurfaceCfg(diffuse_color=(0.0, 1.0, 0.0)),
)
cfg_cone_rigid.func(
"/World/Objects/ConeRigid", cfg_cone_rigid, translation=(0.0, 0.0, 2.0), orientation=(0.5, 0.0, 0.5, 0.0)
"/World/Objects/ConeRigid", cfg_cone_rigid, translation=(-0.2, 0.0, 2.0), orientation=(0.5, 0.0, 0.5, 0.0)
)

# spawn a blue cuboid with deformable body
Expand Down
Loading