Skip to content

[Bug] AttributeError: 'Tensor' object has no attribute 'torch' in direct task template with recent Isaac Lab (0.54.4) #9

Description

@zbbright233

Bug Description

When running the skrl training script with the direct task template, the environment crashes with AttributeError: 'Tensor' object has no attribute 'torch' at line 107 in isaac_lab_tutorial_env.py. This is because in recent commits of Isaac Lab (Extension version 0.54.4), self.robot.data.root_link_quat_w and self.robot.data.FORWARD_VEC_B already returns a standard PyTorch Tensor. Calling .torch on it is now redundant and causes a failure. Removing .torch resolves the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions