def from_dict(obj_dict): obj = Object3d() obj.id = obj_dict['id'] obj.type = obj_dict['type'] obj.pose = Pose3.from_dict(obj_dict['pose']) obj.bbox = BBox3.from_dict(obj_dict['bounding_box']) return obj
def from_dict(obj_dict): obj = Plane() obj.id = obj_dict['id'] obj.pose = Pose3.from_dict(obj_dict['pose']) obj.bbox = BBox3.from_dict(obj_dict['bounding_box']) return obj