Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix function call and usage description #3

Merged
merged 3 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion analysis/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

void usage()
{
printf("Usage: Central64Analysis <mode> <scope> <filepath> [scenario]\n");
printf("Usage: Central64Analysis <mode> <scope> <filepath> [<scenario>]\n");
printf("\n");
printf("The <mode> must be one of the following:\n");
printf(" heuristic Plan one path for each benchmark scenario.\n");
Expand All @@ -14,6 +14,12 @@ void usage()
printf("The <scope> must be one of the following:\n");
printf(" partial Compare a selected set of path planning methods.\n");
printf(" complete Compare a comprehensive set of path planning methods.\n");
printf("\n");
printf("The <filepath> is the path to the map file. For example:\n");
printf(" ../benchmarks/dao/arena.map\n");
printf("\n");
printf("The <scenario> is the 0-based index of the scenario to be solved.\n");
printf(" If not provided, all scenarios are solved.\n");
}

int main(int argc, char* argv[])
Expand Down
2 changes: 1 addition & 1 deletion include/central64/grid/Offset2D.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ inline std::string ToString(const std::vector<Offset2D>& pathVertices,
if (i > 0) {
pathString += vertexDelimiter;
}
pathString += ToString(pathVertices[i]);
pathString += ToString(pathVertices[i], leftBracket, rightBracket, coordDelimiter);
}
return pathString;
}
Expand Down