Skip to content
Discussion options

You must be logged in to vote

Hi @apirrone, thank you for posting that. Super cool to see your Open Duck Mini walking in mjlab!

How to remove a term?

If you only need to drop one or two terms, do this after super():

@dataclass
class OpenDuckRoughEnvCfg(LocomotionVelocityEnvCfg):
  def __post_init__(self):
    super().__post_init__()
    # your code ...
    self.observations.policy.base_lin_vel = None
    self.observations.critic.base_lin_vel = None

How to add terms?

Inherit from ObservationCfg (e.g., ObservationCustomCfg), then override the env’s observations field:

@dataclass
class OpenDuckRoughEnvCfg(LocomotionVelocityEnvCfg):
  observations: ObservationCustomCfg = field(default_factory=ObservationCustomCfg)
  …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@apirrone
Comment options

Answer selected by louislelay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants