Unverified Commit 887342ae authored by Kelly Guo's avatar Kelly Guo Committed by GitHub

Updates locomotion configs to fix body_com error (#2655)

# Description

The body_com event term added to the base velocity cfg caused errors in
some locomotion environments if the body was not named "base". This PR
disables the event term for these environments.

Fixes #2574 

## 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 33b49731
...@@ -82,3 +82,4 @@ class UnitreeA1RoughEnvCfg_PLAY(UnitreeA1RoughEnvCfg): ...@@ -82,3 +82,4 @@ class UnitreeA1RoughEnvCfg_PLAY(UnitreeA1RoughEnvCfg):
# remove random pushing event # remove random pushing event
self.events.base_external_force_torque = None self.events.base_external_force_torque = None
self.events.push_robot = None self.events.push_robot = None
self.events.base_com = None
...@@ -112,3 +112,5 @@ class CassieRoughEnvCfg_PLAY(CassieRoughEnvCfg): ...@@ -112,3 +112,5 @@ class CassieRoughEnvCfg_PLAY(CassieRoughEnvCfg):
self.commands.base_velocity.ranges.heading = (0.0, 0.0) self.commands.base_velocity.ranges.heading = (0.0, 0.0)
# disable randomization for play # disable randomization for play
self.observations.policy.enable_corruption = False self.observations.policy.enable_corruption = False
# disable com randomization
self.events.base_com = None
...@@ -178,3 +178,4 @@ class G1RoughEnvCfg_PLAY(G1RoughEnvCfg): ...@@ -178,3 +178,4 @@ class G1RoughEnvCfg_PLAY(G1RoughEnvCfg):
# remove random pushing # remove random pushing
self.events.base_external_force_torque = None self.events.base_external_force_torque = None
self.events.push_robot = None self.events.push_robot = None
self.events.base_com = None
...@@ -82,3 +82,4 @@ class UnitreeGo1RoughEnvCfg_PLAY(UnitreeGo1RoughEnvCfg): ...@@ -82,3 +82,4 @@ class UnitreeGo1RoughEnvCfg_PLAY(UnitreeGo1RoughEnvCfg):
# remove random pushing event # remove random pushing event
self.events.base_external_force_torque = None self.events.base_external_force_torque = None
self.events.push_robot = None self.events.push_robot = None
self.events.base_com = None
...@@ -82,3 +82,4 @@ class UnitreeGo2RoughEnvCfg_PLAY(UnitreeGo2RoughEnvCfg): ...@@ -82,3 +82,4 @@ class UnitreeGo2RoughEnvCfg_PLAY(UnitreeGo2RoughEnvCfg):
# remove random pushing event # remove random pushing event
self.events.base_external_force_torque = None self.events.base_external_force_torque = None
self.events.push_robot = None self.events.push_robot = None
self.events.base_com = None
...@@ -142,3 +142,4 @@ class H1RoughEnvCfg_PLAY(H1RoughEnvCfg): ...@@ -142,3 +142,4 @@ class H1RoughEnvCfg_PLAY(H1RoughEnvCfg):
# remove random pushing # remove random pushing
self.events.base_external_force_torque = None self.events.base_external_force_torque = None
self.events.push_robot = None self.events.push_robot = None
self.events.base_com = None
...@@ -296,7 +296,7 @@ class SpotTerminationsCfg: ...@@ -296,7 +296,7 @@ class SpotTerminationsCfg:
@configclass @configclass
class SpotFlatEnvCfg(LocomotionVelocityRoughEnvCfg): class SpotFlatEnvCfg(LocomotionVelocityRoughEnvCfg):
# Basic settings' # Basic settings
observations: SpotObservationsCfg = SpotObservationsCfg() observations: SpotObservationsCfg = SpotObservationsCfg()
actions: SpotActionsCfg = SpotActionsCfg() actions: SpotActionsCfg = SpotActionsCfg()
commands: SpotCommandsCfg = SpotCommandsCfg() commands: SpotCommandsCfg = SpotCommandsCfg()
...@@ -375,5 +375,3 @@ class SpotFlatEnvCfg_PLAY(SpotFlatEnvCfg): ...@@ -375,5 +375,3 @@ class SpotFlatEnvCfg_PLAY(SpotFlatEnvCfg):
# disable randomization for play # disable randomization for play
self.observations.policy.enable_corruption = False self.observations.policy.enable_corruption = False
# remove random pushing event # remove random pushing event
# self.events.base_external_force_torque = None
# self.events.push_robot = None
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