Skip to content

about the code for mapping the boxes #21

@zjr-bit

Description

@zjr-bit

Hi !
Thanks for your great work.
I have a question about the code snippet for mapping the bounding boxes to the local sensor coordinate

# caused by coordinate inconsistency of nuscene-toolkit
box.center[0] = - box.center[0]
# debug
shift = [box.center[0], box.center[1], box.center[2]]
box.translate(-np.array(shift))
box.rotate(Quaternion([0, 1, 0, 0]).inverse)
box.translate(np.array(shift))

Could you please tell me why it needs the code in detail. Thanks a lot!

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