Skip to content

habitat-sim=0.3.3 leads to program crash in create_hm3dsem_walks_gt.py #25

@pechpo

Description

@pechpo
    def append_habitat_infos(self):
        for obj in self.scene.objects:
            obj_id = int(obj.id.split("_")[1])

            if obj_id in self.id2obj_idx:
                self.objects[self.id2obj_idx[obj_id]].aabb_center = obj.aabb.center.tolist()
                self.objects[self.id2obj_idx[obj_id]].aabb_dims = obj.aabb.sizes.tolist()
                self.objects[self.id2obj_idx[obj_id]].obb_center = obj.obb.center.tolist()
                self.objects[self.id2obj_idx[obj_id]].obb_dims = obj.obb.sizes.tolist()
                self.objects[self.id2obj_idx[obj_id]].obb_rotation = obj.obb.rotation.tolist()
                self.objects[self.id2obj_idx[obj_id]].obb_local_to_world = obj.obb.local_to_world.tolist()
                self.objects[self.id2obj_idx[obj_id]].obb_world_to_local = obj.obb.world_to_local.tolist()
                self.objects[self.id2obj_idx[obj_id]].obb_volume = obj.obb.volume
                self.objects[self.id2obj_idx[obj_id]].obb_half_extents = obj.obb.half_extents.tolist()

The code here in "create_hm3dsem_walks_gt.py" with habitat-sim=0.3.3 will make the program crash, since variables like "obj.aabb.center" are no longer numpy arrays.
For me, downgrading habitat-sim to 0.3.2 solve the promblem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions