Returns 2D floor bounding box for an actor.
(self, actor_bb, scale_factor=1)
| 717 | return world_cords |
| 718 | |
| 719 | def _create_2d_bb_points(self, actor_bb, scale_factor=1): |
| 720 | """ |
| 721 | Returns 2D floor bounding box for an actor. |
| 722 | """ |
| 723 | |
| 724 | cords = np.zeros((4, 4)) |
| 725 | extent = actor_bb.extent |
| 726 | x = extent.x * scale_factor |
| 727 | y = extent.y * scale_factor |
| 728 | z = extent.z * scale_factor |
| 729 | cords[0, :] = np.array([x, y, 0, 1]) |
| 730 | cords[1, :] = np.array([-x, y, 0, 1]) |
| 731 | cords[2, :] = np.array([-x, -y, 0, 1]) |
| 732 | cords[3, :] = np.array([x, -y, 0, 1]) |
| 733 | return cords |
| 734 | |
| 735 | def _get_sensor_position(self, cam): |
| 736 | """returns the sensor position and rotation |
no outgoing calls
no test coverage detected