From b7563080afd81f417b5080c79108ddd300ca862c Mon Sep 17 00:00:00 2001 From: Han Zhang Date: Thu, 14 Nov 2024 17:10:57 -0800 Subject: [PATCH 1/2] processing fileStoragePath from env variable --- src/driver.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/driver.cpp b/src/driver.cpp index 94bd61b..83b16a6 100644 --- a/src/driver.cpp +++ b/src/driver.cpp @@ -128,7 +128,23 @@ int main(int argc, char **argv) Grid grid(base_folder + map_path); planner->env->map_name = map_path.substr(map_path.find_last_of("/") + 1); - planner->env->file_storage_path = vm["fileStoragePath"].as(); + + + string file_storage_path = vm["fileStoragePath"].as(); + if (file_storage_path==""){ + char const* tmp = getenv("LORR_LARGE_FILE_STORAGE_PATH"); + if ( tmp != nullptr ) { + file_storage_path = string(tmp); + } + } + + // check if the path exists; + if (file_storage_path!="" &&!std::filesystem::exists(file_storage_path)){ + std::ostringstream stringStream; + stringStream << "fileStoragePath (" << file_storage_path << ") is not valid"; + logger->log_warning(stringStream.str()); + } + planner->env->file_storage_path = file_storage_path; ActionModelWithRotate *model = new ActionModelWithRotate(grid); model->set_logger(logger); From 1fd2cd0b84ed43a4220115dc56e9f43cce6edd2b Mon Sep 17 00:00:00 2001 From: Han Zhang Date: Thu, 14 Nov 2024 17:16:03 -0800 Subject: [PATCH 2/2] update documentation --- Input_Output_Format.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Input_Output_Format.md b/Input_Output_Format.md index 67470e6..0bc8203 100644 --- a/Input_Output_Format.md +++ b/Input_Output_Format.md @@ -8,7 +8,7 @@ | --output | String
output results from the evaluation into a JSON formated file. If no file specified, the default name is 'output.json' | | --outputScreen | Int (=1)
The level of details in the output file (=1 to show all, = 2 to show problem summary, start and actual path and =3 to show only problem summary). | | --simulationTime | Int
The maximum number of timesteps allowed for solving the problem, we sometimes refer to this as planning horizon | -| --fileStoragePath | String
the large file storage path | +| --fileStoragePath | String
the large file storage path. If this parameter is not specified, the program will read from environment variable `$LORR_LARGE_FILE_STORAGE_PATH`. If specified, we ignore the environment variable. | | --planTimeLimit | Int
The amount of time available for planning in each timestep (in millseconds), if this time limit is exceeded by the planner, all robots are issued wait commands at current timestep and the task schedule keeps the same as last time. Note that for 2023 round the planTimeLimit is planning time for each timestep in seconds, so if you are using the planner from 2023 participants, please carefully checkout the timeout settings in the planner. | | --preprocessTimeLimit | Int
The amount of time in millseconds available for loading and precomputing auxiliary data before the problem-solving process begins | | --logFile | String
An output file that records all warnings and errors issued by the simulator in the event of invalid or incomplete actions from the planner |