22 std::string cachePath = ArmarXDataPath::GetCachePath();
23 if (cachePath.empty())
28 cachePath.append(
"/pids/");
31 if (!std::filesystem::exists(dir) && !std::filesystem::create_directories(dir))
33 ARMARX_WARNING_S <<
"Unable to create Cache directory for the ScenarioManager plugin at " << cachePath;
38 + app->getPackageName() +
"."
39 + app->getScenario()->getName() +
"."
40 + app->getName() + (app->getInstanceName().empty() ?
"" :
".")
41 + app->getInstanceName() +
".pids";
43 if (!std::filesystem::exists(
filename))
58 std::string cachePath = ArmarXDataPath::GetCachePath();
59 cachePath.append(
"/pids/");
62 if (!std::filesystem::exists(dir) && !std::filesystem::create_directories(dir))
64 ARMARX_WARNING_S <<
"Unable to create Cache directory for the ScenarioManager plugin at " << cachePath;
68 + app->getPackageName() +
"."
69 + app->getScenario()->getName() +
"."
70 + app->getName() + (app->getInstanceName().empty() ?
"" :
".")
71 + app->getInstanceName() +
".pids";
73 if (app->getPid() == -1)
75 std::filesystem::remove(std::filesystem::path(
filename));
81 output << app->getPid();
87 std::string cachePath = ArmarXDataPath::GetCachePath();
88 cachePath.append(
"/iceDeployment/");
91 + scenario->getPackage()->getName() +
"."
92 + scenario->getName() +
".ice";
94 return std::filesystem::exists(
filename);
101 std::string cachePath = ArmarXDataPath::GetCachePath();
102 cachePath.append(
"/iceDeployment/");
103 std::filesystem::path dir(cachePath);
105 if (!std::filesystem::exists(dir) && !std::filesystem::create_directories(dir))
107 ARMARX_WARNING_S <<
"Unable to create Cache directory for the ScenarioManager plugin at " << cachePath;
111 + scenario->getPackage()->getName() +
"."
112 + scenario->getName() +
".ice";
114 if (!std::filesystem::exists(
filename))
123 std::string cachePath = ArmarXDataPath::GetCachePath();
124 cachePath.append(
"/iceDeployment/");
127 + scenario->getPackage()->getName() +
"."
128 + scenario->getName() +
".ice";
130 if (std::filesystem::exists(
filename))
132 if (!std::filesystem::remove(
filename))
143 std::string cachePath = ArmarXDataPath::GetCachePath();
144 cachePath.append(
"/pids/");
146 std::filesystem::remove_all(std::filesystem::path(cachePath));