Returns 3D bounding box world coordinates.
(self, bb)
| 360 | return weather |
| 361 | |
| 362 | def _create_bb_points(self, bb): |
| 363 | """ |
| 364 | Returns 3D bounding box world coordinates. |
| 365 | """ |
| 366 | |
| 367 | cords = np.zeros((8, 4)) |
| 368 | extent = bb[1] |
| 369 | loc = bb[0] |
| 370 | cords[0, :] = np.array([loc[0] + extent[0], loc[1] + extent[1], loc[2] - extent[2], 1]) |
| 371 | cords[1, :] = np.array([loc[0] - extent[0], loc[1] + extent[1], loc[2] - extent[2], 1]) |
| 372 | cords[2, :] = np.array([loc[0] - extent[0], loc[1] - extent[1], loc[2] - extent[2], 1]) |
| 373 | cords[3, :] = np.array([loc[0] + extent[0], loc[1] - extent[1], loc[2] - extent[2], 1]) |
| 374 | cords[4, :] = np.array([loc[0] + extent[0], loc[1] + extent[1], loc[2] + extent[2], 1]) |
| 375 | cords[5, :] = np.array([loc[0] - extent[0], loc[1] + extent[1], loc[2] + extent[2], 1]) |
| 376 | cords[6, :] = np.array([loc[0] - extent[0], loc[1] - extent[1], loc[2] + extent[2], 1]) |
| 377 | cords[7, :] = np.array([loc[0] + extent[0], loc[1] - extent[1], loc[2] + extent[2], 1]) |
| 378 | return cords |
| 379 | |
| 380 | def _translate_tl_state(self, state): |
| 381 |