ADD: add the usage of the kubecontroller bus not with fully using the start of pods
This commit is contained in:
@@ -2,11 +2,16 @@
|
||||
#include "Entities/Movement.hpp"
|
||||
#include "Orders/MoveOrder.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
#include "SimCore/UtilFunctions.hpp"
|
||||
#include "WHISPER/InternalUDPListener.hpp"
|
||||
#include "WHISPER/InternalUDPSender.hpp"
|
||||
#include "WHISPER/Messages/Message.hpp"
|
||||
#include "WHISPER/Messages/stringData.hpp"
|
||||
#include "WHISPER/threadSafeQueue.hpp"
|
||||
#include "crossguid/guid.hpp"
|
||||
#include "kubecontrol/KubePod.hpp"
|
||||
#include "kubecontrol/PodController.hpp"
|
||||
#include "yaml-cpp/node/parse.h"
|
||||
#include <SimCore/SimCore.hpp>
|
||||
|
||||
#include <Entities/Entity.hpp>
|
||||
@@ -34,6 +39,7 @@ namespace Entities
|
||||
EntityKind_(EntityKind)
|
||||
|
||||
{
|
||||
PodController_ = std::make_unique<kubecontrol::PodController>("libs/KubeControl/docs/config");
|
||||
OwnShipTrack = std::make_shared<SimCore::SimTrack>(OwnID, OwnType, EntityKind);
|
||||
OwnShipTrack->setPosition(SimCore::Position());
|
||||
|
||||
@@ -116,8 +122,13 @@ namespace Entities
|
||||
}
|
||||
|
||||
void Entity::startMovementWorker()
|
||||
{
|
||||
{
|
||||
auto MovementPod = kubecontrol::KubePod("MovmentPod_"+EntityName_,xg::newGuid().str(),"movementimage:latest");
|
||||
|
||||
MovementPod.setEnvironmentVar("SERVER_IP", SimCore::UtilFunctions::getOwnIP());
|
||||
// LOG_S(INFO)<< MovementPod.createYAML();
|
||||
LOG_S(INFO)<<PodController_->getServerAddress();
|
||||
|
||||
LOG_S(INFO)<< "TODO: starting the movement app from here";
|
||||
|
||||
if (MovemtServer_->countClients() > 0 )
|
||||
|
||||
Reference in New Issue
Block a user