FIX: fixed the incorect setting of the command port and chnaged to connecet to the virtual console in the cms

This commit is contained in:
Henry Winkel
2024-03-12 18:29:40 +01:00
parent d6b18f560d
commit fb6b8f6178
3 changed files with 34 additions and 7 deletions

View File

@@ -42,11 +42,11 @@ int main()
}
const char* GroundTruthAddr = "239.0.0.1";
if (std::getenv("GROUNDTRUTH_ADDR") != nullptr) {
CommandPortChar = std::getenv("GROUNDTRUTH_ADDR");
GroundTruthAddr = std::getenv("GROUNDTRUTH_ADDR");
}
const char* GroundTruthPort = "10000";
if (std::getenv("GROUNDTRUTH_PORT") != nullptr) {
CommandPortChar = std::getenv("GROUNDTRUTH_PORT");
GroundTruthPort = std::getenv("GROUNDTRUTH_PORT");
}
const char* Namespace = "simulator";
@@ -67,6 +67,8 @@ int main()
LOG_S(INFO)<<"online:" << online;
LOG_S(INFO)<< "command port"<< CommandPortChar;
SimControl::SimControl sc(online,CommandPortChar,GroundTruthAddr,SimCore::UtilFunctions::StringToUShort(GroundTruthPort),Namespace);