def _init(self): super()._init() self._vehicle = CarlaActorPool.get_hero_actor() self._world = self._vehicle.get_world() self._waypoint_planner = RoutePlanner(4.0, 50) self._waypoint_planner.set_route(self._plan_gps_HACK, True) self._traffic_lights = list()
def _init(self): self._command_planner = RoutePlanner(7.5, 25.0, 257) self._command_planner.set_route(self._global_plan, True) self._vehicle = CarlaActorPool.get_hero_actor() self._world = self._vehicle.get_world() self._waypoint_planner = RoutePlanner(4.0, 50) self._waypoint_planner.set_route(self._plan_gps_HACK, True) self._traffic_lights = list() self.initialized = True