def __init__(self, env_file, robot_log_file):
        # get environemnt information and robot log
        self._enviroment = open(os.path.join(path, 'map',env_file), 'r')
        self._log = open(os.path.join(path, 'log', robot_log_file), 'r')
        [self._robot_spec, self._occupancy_grid] = read_log.read_map(self._enviroment)
        self._filter = particle_filter('configuration.json', self._occupancy_grid)

        self._occupancy_grid = 1 - self._occupancy_grid 
        self._occupancy_grid[self._occupancy_grid > 1.1] = -1

        self._previous_robot_pose = None
Exemplo n.º 2
0
    def __init__(self, env_file):
        # get environemnt information and robot log
        self._enviroment = open(os.path.join(path, 'map',env_file), 'r')
 
        self._max_laser_reading = 8183.0
        
        [self._robot_spec, self._occupancy_grid] = read_log.read_map(self._enviroment)
        self._occupancy_grid = 1 - self._occupancy_grid 
        self._occupancy_grid[self._occupancy_grid > 1.1] = -1

        self._num_interp = 820
        self._linspace_array = np.mat(np.linspace(0, 1, self._num_interp))
Exemplo n.º 3
0
    def __init__(self, env_file, robot_log_file):
        # get environemnt information and robot log
        self._enviroment = open(os.path.join(path, 'map', env_file), 'r')
        self._log = open(os.path.join(path, 'log', robot_log_file), 'r')
        [self._robot_spec,
         self._occupancy_grid] = read_log.read_map(self._enviroment)
        self._filter = particle_filter('configuration.json',
                                       self._occupancy_grid)

        self._occupancy_grid = 1 - self._occupancy_grid
        self._occupancy_grid[self._occupancy_grid > 1.1] = -1

        self._previous_robot_pose = None
Exemplo n.º 4
0
    def __init__(self, env_file):
        # get environemnt information and robot log
        self._enviroment = open(os.path.join(path, 'map', env_file), 'r')

        self._max_laser_reading = 8183.0

        [self._robot_spec,
         self._occupancy_grid] = read_log.read_map(self._enviroment)
        self._occupancy_grid = 1 - self._occupancy_grid
        self._occupancy_grid[self._occupancy_grid > 1.1] = -1

        self._num_interp = 820
        self._linspace_array = np.mat(np.linspace(0, 1, self._num_interp))