# coding=utf-8 from zuper_commons.logs import ZLogger logger = ZLogger(__name__) from .other_objects import * from .tile import * from .tile_coords import * from .tile_map import * from .traffic_light import * from .map_loading import * from .platform_dynamics import * from .integrator2d import * from .generic_kinematics import * from .lane_segment import * from .duckietown_map import * from .duckiebot import * from .transformations import * from .segmentify import * from .pwm_dynamics import * from .old_map_format import *
# coding=utf-8 __version__ = "6.1.1" from zuper_commons.fs import AbsFilePath from zuper_commons.logs import ZLogger from duckietown_world.resources import list_maps2 logger = ZLogger("gym-duckietown") import os path = os.path.dirname(os.path.dirname(__file__)) logger.debug(f"gym-duckietown version {__version__} path {path}\n") from gym.envs.registration import register from .utils import get_subdir_path def reg_map_env(map_name0: str, map_file: AbsFilePath): gym_id = f"Duckietown-{map_name0}-v0" # logger.info('Registering gym environment id: %s' % gym_id) register( id=gym_id, entry_point="gym_duckietown.envs:DuckietownEnv", reward_threshold=400.0, kwargs={"map_name": map_file}, )