(criteria_stop)
| 74 | |
| 75 | @staticmethod |
| 76 | def _get_stops(criteria_stop): |
| 77 | stop_sign = criteria_stop._target_stop_sign |
| 78 | stops = [] |
| 79 | if (stop_sign is not None) and (not criteria_stop._stop_completed): |
| 80 | bb_loc = carla.Location(stop_sign.trigger_volume.location) |
| 81 | bb_ext = carla.Vector3D(stop_sign.trigger_volume.extent) |
| 82 | bb_ext.x = max(bb_ext.x, bb_ext.y) |
| 83 | bb_ext.y = max(bb_ext.x, bb_ext.y) |
| 84 | trans = stop_sign.get_transform() |
| 85 | stops = [(carla.Transform(trans.location, trans.rotation), bb_loc, bb_ext)] |
| 86 | return stops |
| 87 | |
| 88 | def get_observation(self, route_plan): |
| 89 | ev_transform = self._parent_actor.get_transform() |
no test coverage detected