Beispiel #1
0
    def __init__(self, map_name, sim_conf=None):
        """
        Init function

        Args:
            map_name: name of forest map to use.
            sim_conf: config file for simulation
        """
        if sim_conf is None:
            path = os.path.dirname(__file__)
            sim_conf = lib.load_conf(path, "std_config")

        env_map = ForestMap(map_name)
        BaseSim.__init__(self, env_map, self.check_done_forest, sim_conf)
Beispiel #2
0
    def __init__(self, map_name, sim_conf=None):
        """
        Init function

        Args:
            map_name: name of map to use.
            sim_conf: config file for simulation

        """
        if sim_conf is None:
            path = os.path.dirname(__file__)
            sim_conf = lib.load_conf(path, "std_config")

        env_map = TrackMap(map_name)
        BaseSim.__init__(self, env_map, self.check_done_reward_track_train,
                         sim_conf)
        self.end_distance = sim_conf.end_distance