Unverified Commit 34cda4f7 authored by Kelly Guo's avatar Kelly Guo Committed by GitHub

Fixes typo in reset_scene_to_default (#2778)

# Description

Fixes typo in reset_scene_to_default that was recently added where joint
position was incorrectly set to velocity targets.


## 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
- [ ] 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
-->
parent 4f25c9d7
...@@ -1157,7 +1157,7 @@ def reset_scene_to_default(env: ManagerBasedEnv, env_ids: torch.Tensor): ...@@ -1157,7 +1157,7 @@ def reset_scene_to_default(env: ManagerBasedEnv, env_ids: torch.Tensor):
default_joint_vel = articulation_asset.data.default_joint_vel[env_ids].clone() default_joint_vel = articulation_asset.data.default_joint_vel[env_ids].clone()
# set into the physics simulation # set into the physics simulation
articulation_asset.set_joint_position_target(default_joint_pos, env_ids=env_ids) articulation_asset.set_joint_position_target(default_joint_pos, env_ids=env_ids)
articulation_asset.set_joint_velocity_target(default_joint_pos, env_ids=env_ids) articulation_asset.set_joint_velocity_target(default_joint_vel, env_ids=env_ids)
articulation_asset.write_joint_state_to_sim(default_joint_pos, default_joint_vel, env_ids=env_ids) articulation_asset.write_joint_state_to_sim(default_joint_pos, default_joint_vel, env_ids=env_ids)
# deformable objects # deformable objects
for deformable_object in env.scene.deformable_objects.values(): for deformable_object in env.scene.deformable_objects.values():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment