Skip to content

Commit

Permalink
Merge pull request #1157 from Nobu19800/bugs/managerconf
Browse files Browse the repository at this point in the history
スレーブマネージャ起動時にrtc.confを指定できるようにする
  • Loading branch information
n-ando authored Aug 19, 2024
2 parents 543353d + e50659e commit b0d14f7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/lib/rtm/ManagerServant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,15 @@ namespace RTM

std::string lang_path_key("manager.modules.");
lang_path_key += lang + ".load_paths";
if (param.find("config_file") != param.end())
{
rtcd_cmd += " -f \"" + coil::escape(param["config_file"]) + "\"";
}
else if (prop.findNode("config_file"))
{
rtcd_cmd += " -f \"" + coil::escape(prop["config_file"]) + "\"";
}

rtcd_cmd += " -o \"manager.modules.load_path:" + coil::escape(prop["manager.modules.load_path"]) + "\"";
rtcd_cmd += " -o \"" + lang_path_key + ":" + coil::escape(prop[lang_path_key]) + "\"";

Expand Down Expand Up @@ -1384,6 +1393,15 @@ namespace RTM
RTC_WARN(("rtcd command name not found. Default rtcd is used."));
rtcd_cmd = "rtcd";
}

if (param.find("config_file") != param.end())
{
rtcd_cmd += " -f \"" + coil::escape(param["config_file"]) + "\"";
}
else if (prop.findNode("config_file"))
{
rtcd_cmd += " -f \"" + coil::escape(prop["config_file"]) + "\"";
}
rtcd_cmd += " -o \"corba.master_manager:" + mgrstr + "\"";
rtcd_cmd += " -d ";

Expand Down

0 comments on commit b0d14f7

Please sign in to comment.