Skip to content

Conversation

kellyguo11
Copy link
Contributor

Description

GroundPlaneCfg allows for specifying visible parameter, but this would not being parsed in spawn_ground_plane, resulting in the parameter being a no-op when specified. This change adds a fix to parse the visible parameter from the cfg and sets the visibility attribute for the ground plane cfg appropriately.

Fixes #3263

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have run the pre-commit checks with ./isaaclab.sh --format
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the changelog and the corresponding version in the extension's config/extension.toml file
  • I have added my name to the CONTRIBUTORS.md or my name already exists there

@@ -217,6 +217,10 @@ def spawn_ground_plane(
# create semantic type and data attributes
sem.CreateSemanticTypeAttr().Set(semantic_type)
sem.CreateSemanticDataAttr().Set(semantic_value)

# Apply visibility
prim_utils.set_prim_property(prim_path, "visibility", "invisible" if not cfg.visible else "inherited")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is a prim or stage utils that directly allows setting this. It's called set_prim_visibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, updated to use the prim utils API

@Mayankm96 Mayankm96 merged commit c91a125 into isaac-sim:main Sep 1, 2025
8 checks passed
ooctipus pushed a commit to ooctipus/IsaacLab that referenced this pull request Sep 2, 2025
# Description

`GroundPlaneCfg` allows for specifying `visible` parameter, but this
would not being parsed in `spawn_ground_plane`, resulting in the
parameter being a no-op when specified. This change adds a fix to parse
the `visible` parameter from the cfg and sets the visibility attribute
for the ground plane cfg appropriately.

Fixes isaac-sim#3263 

<!-- As a practice, it is recommended to open an issue to have
discussions on the proposed pull request.
This makes it easier for the community to keep track of what is being
developed or added, and if a given feature
is demanded by more than one party. -->

## Type of change

<!-- As you go through the list, delete the ones that are not
applicable. -->

- Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [ ] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there

<!--
As you go through the checklist above, you can mark something as done by
putting an x character in it

For example,
- [x] I have done this task
- [ ] I have not done this task
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] GroundPlaneCfg(visible=False) has no effect (cannot disable ground plane visuality)
3 participants