Adds body tracking option to ViewerCfg #1620
Merged
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.
Description
Resolves Issue #1534 by adding non-root body tracking as an option in the ViewerCfg. See the issue for justification/discussion. API as follows:
When origin_type = "asset_body" and "body_name" matches a body in the asset specified in "asset_name", the viewport is configured to track the link frame of the body in world coordinates. By using the existing eye and lookat fields in ViewerCfg the additional features are enabled:
Type of change
Training Video from "Isaac-Lift-Cube-Franka-v0" after 1000 iterations.
Viewer defined as follows:
viewer = ViewerCfg(eye=(0.5, 0.5, 0.0), origin_type="asset_body", env_index=0, asset_name="robot", body_name="panda_hand")
No other changes were made from the default environment definition.
Video_1024_franka_asset_body_test.mp4
Checklist
pre-commit
checks with./isaaclab.sh --format
config/extension.toml
fileCONTRIBUTORS.md
or my name already exists there