Skip to content

[Bug Report] DigitalFilter fails with integer-valued coefficient lists #9246

Done

Description

@sylvesterkaczmarek

Describe the bug

DigitalFilterCfg(A=[0], B=[0, 1]) represents a unit-delay filter, but construction infers integer coefficient tensors while the history buffers are floating-point. Calling the processor then raises a matrix multiplication dtype error.

Steps to reproduce

import torch
from isaaclab.utils.tensor_processors import DigitalFilter, DigitalFilterCfg

cfg = DigitalFilterCfg(A=[0], B=[0, 1])
f = DigitalFilter(cfg, (2,), device="cpu")
print(f(torch.tensor([2., 3.])))

Expected: zero output on the first sample and the previous input on the next sample. Actual: RuntimeError: expected m1 and m2 to have the same dtype.

System Info

main at ebf162a, macOS ARM64, Python 3.12, PyTorch 2.12.0. CPU reproduction without Isaac Sim.

Additional context

Use the default floating-point dtype for the coefficient tensors, consistent with history storage. Regression coverage checks the unit-delay response and reset behavior under float32 and float64 defaults. Both new cases fail on main and pass with the fix; all 13 tensor-processor tests pass.

Activity

  1. added a commit that references this issue on Dec 2, 2026
    7d4024c
  2. RandomOakForest commented on Dec 2, 2026

    @RandomOakForest
    Collaborator

    Thanks, I hit the same dtype error on main and #9247 fixes it.

  3. added
    bug
    on Dec 2, 2026
  4. added a commit that references this issue on Dec 3, 2026
    fc28c5c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions