Assignment Search Framework
|
Go to the source code of this file.
Functions | |
bool | read_in_pathfinding_probs (std::string file_name, std::vector< MapLocation > &starts, std::vector< MapLocation > &goals) |
Utilities for maps.
bool read_in_pathfinding_probs | ( | std::string | file_name, |
std::vector< MapLocation > & | starts, | ||
std::vector< MapLocation > & | goals | ||
) |
Reads in the pathfinding problems from the given file.
The input format is assumed to be as follows. Each line represents a different problem, and each is defined by 4 integers. The first two are the x and y coordinates of the start state. The last two are the x and y coordinates of the goal state.
file_name | The file name to read from. |
starts | The vector in which to store the start states. |
goals | The vector in which to store the goal states. |