IsaacLab icon indicating copy to clipboard operation
IsaacLab copied to clipboard

[Question] Root Physx Views Order

Open fetian-code opened this issue 7 months ago • 0 comments

        # the order is env_0/object_0, env_0/object_1, env_0/object_..., env_1/object_0, env_1/object_1, ...
        # return a flat tensor of indices
        if isinstance(object_ids, slice):
            object_ids = self._ALL_OBJ_INDICES
        elif isinstance(object_ids, Sequence):
            object_ids = torch.tensor(object_ids, device=self.device)
        return (object_ids.unsqueeze(1) * self.num_instances + env_ids).flatten()

The order calculation in the code of RigidObjectCollection._env_obj_ids_to_view_ids seems inconsistent with the order explained in the comments. Is there an error in the code or in the comments?

Thanks!

fetian-code avatar May 01 '25 21:05 fetian-code