You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add checked_apply helper for forwarding configclass fields onto upstream dataclasses
When an Isaac Lab configclass mirrors an upstream library's dataclass
(for example NewtonShapeCfg → Newton's ShapeConfig), bare setattr
loops are fragile: if upstream renames or removes a field, every
write becomes a silent no-op (the failure mode PR isaac-sim#5289 fixed for
ShapeConfig.contact_margin → margin).
Add isaaclab.utils.checked_apply(src, target):
- Iterates fields(src) — single source of truth for declared fields
- Raises AttributeError if target lacks a declared field — failure
surfaces at startup, not at runtime
- One-line apply at the call site, no per-field setattr noise
0 commit comments