Enum of different ways to represent a box and point cloud. Coordinates in LiDAR: .. code-block:: none up z ^ x front | / | / left y <------ 0 The relative coordinate of bottom center i
| 15 | |
| 16 | @unique |
| 17 | class Coord3DMode(IntEnum): |
| 18 | """Enum of different ways to represent a box and point cloud. |
| 19 | |
| 20 | Coordinates in LiDAR: |
| 21 | |
| 22 | .. code-block:: none |
| 23 | |
| 24 | up z |
| 25 | ^ x front |
| 26 | | / |
| 27 | | / |
| 28 | left y <------ 0 |
| 29 | |
| 30 | The relative coordinate of bottom center in a LiDAR box is (0.5, 0.5, 0), |
| 31 | and the yaw is around the z axis, thus the rotation axis=2. |
| 32 | |
| 33 | Coordinates in Camera: |
| 34 | |
| 35 | .. code-block:: none |
| 36 | |
| 37 | z front |
| 38 | / |
| 39 | / |
| 40 | 0 ------> x right |
| 41 | | |
| 42 | | |
| 43 | v |
| 44 | down y |
| 45 | |
| 46 | The relative coordinate of bottom center in a CAM box is (0.5, 1.0, 0.5), |
| 47 | and the yaw is around the y axis, thus the rotation axis=1. |
| 48 | |
| 49 | Coordinates in Depth: |
| 50 | |
| 51 | .. code-block:: none |
| 52 | |
| 53 | up z |
| 54 | ^ y front |
| 55 | | / |
| 56 | | / |
| 57 | 0 ------> x right |
| 58 | |
| 59 | The relative coordinate of bottom center in a DEPTH box is (0.5, 0.5, 0), |
| 60 | and the yaw is around the z axis, thus the rotation axis=2. |
| 61 | """ |
| 62 | |
| 63 | LIDAR = 0 |
| 64 | CAM = 1 |
| 65 | DEPTH = 2 |
| 66 | |
| 67 | @staticmethod |
| 68 | def convert(input: Union[Sequence[float], np.ndarray, Tensor, |
| 69 | BaseInstance3DBoxes, BasePoints], |
| 70 | src: Union[Box3DMode, 'Coord3DMode'], |
| 71 | dst: Union[Box3DMode, 'Coord3DMode'], |
| 72 | rt_mat: Optional[Union[np.ndarray, Tensor]] = None, |
| 73 | with_yaw: bool = True, |
| 74 | correct_yaw: bool = False, |
nothing calls this directly
no outgoing calls
no test coverage detected