MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / _get_stops

Method _get_stops

roach/obs_manager/birdview/chauffeurnet.py:76–86  ·  view source on GitHub ↗
(criteria_stop)

Source from the content-addressed store, hash-verified

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()

Callers 1

get_observationMethod · 0.95

Calls 1

get_transformMethod · 0.80

Tested by

no test coverage detected