MOD: made modification to fit to SIMCORE
This commit is contained in:
@@ -4,9 +4,7 @@
|
||||
|
||||
#include "DirectCommunicationServer.hpp"
|
||||
#include "Entities/Movement.hpp"
|
||||
#include "SimCore/Messages/GroundThruthTrack.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
#include "SimCore/Messages/Track.hpp"
|
||||
#include "SimCore/Orientation.hpp"
|
||||
#include "SimCore/SafeMap.hpp"
|
||||
#include "SimCore/SimCore.hpp"
|
||||
@@ -55,7 +53,6 @@ namespace Entities {
|
||||
Entity(const SimCore::Identifier OwnID,
|
||||
std::string EnttityName,
|
||||
WHISPER::SourceType OwnType,
|
||||
SimCore::Identifier ParentID,
|
||||
SimCore::EntityKind EntityKind,
|
||||
std::uint32_t GroundTruthPort,
|
||||
ushort CommandPort,
|
||||
@@ -82,7 +79,6 @@ namespace Entities {
|
||||
std::shared_ptr<SimCore::SimTrack> OwnShipTrack = nullptr;
|
||||
|
||||
std::string EntityName_;
|
||||
SimCore::Identifier ParentID_;
|
||||
SimCore::EntityKind EntityKind_;
|
||||
|
||||
ushort MovemntWorkerPort_;
|
||||
@@ -106,7 +102,7 @@ namespace Entities {
|
||||
void handleMovement();
|
||||
|
||||
|
||||
std::shared_ptr<DirectCommunication::DirectCommunicationServer> ExternalCommsServer_ = nullptr;
|
||||
std::shared_ptr<DirectCommunication::DirectCommunicationServer> CommandCommsServer_ = nullptr;
|
||||
|
||||
void handleExternalComms(std::string msg);
|
||||
|
||||
@@ -120,7 +116,7 @@ namespace Entities {
|
||||
|
||||
std::shared_ptr<std::list<Entities::SensorClientData>> SensorStore_;
|
||||
|
||||
std::shared_ptr<SimCore::SafeMap<SimCore::Identifier, std::shared_ptr<SimCore::Track>>> Trackstore_;
|
||||
std::shared_ptr<SimCore::SafeMap<SimCore::Identifier, std::shared_ptr< SimCore::SimTrack>>> Trackstore_;
|
||||
|
||||
|
||||
};
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
|
||||
#include "SimCore/Messages/GroundThruthTrack.hpp"
|
||||
#include "SimCore/Messages/Track.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
#include <WHISPER/InternalUDPService.hpp>
|
||||
#include <SimCore/Identifier.hpp>
|
||||
|
||||
@@ -25,7 +22,7 @@ namespace Entities {
|
||||
void stop();
|
||||
|
||||
protected:
|
||||
std::shared_ptr<WHISPER::threadSafeQueue<std::shared_ptr<SimCore::GroundTruthTrack>>> incommingTrackMessages = nullptr;
|
||||
std::shared_ptr<WHISPER::threadSafeQueue<std::shared_ptr<SimCore::SimTrack>>> incommingTrackMessages = nullptr;
|
||||
|
||||
|
||||
std::shared_ptr<WHISPER::threadSafeQueue<WHISPER::Message>> incommingGroundThruthMessages = nullptr;
|
||||
|
||||
@@ -3,13 +3,13 @@
|
||||
|
||||
#include "SimCore/Identifier.hpp"
|
||||
#include "SimCore/IdentifierMaker.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
#include <atomic>
|
||||
#include <cstddef>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
|
||||
#include <SimCore/Position.hpp>
|
||||
#include <SimCore/Messages/Track.hpp>
|
||||
#include <SimCore/SafeMap.hpp>
|
||||
#include <Entities/Tracklist/TracklistItem.hpp>
|
||||
#include <thread>
|
||||
@@ -28,9 +28,9 @@ namespace TrackList
|
||||
|
||||
SimCore::Identifier getTrackID(SimCore::ObjectSource source);
|
||||
|
||||
void addTrack(std::shared_ptr<SimCore::Track> track);
|
||||
void addTrack(std::shared_ptr<SimCore::SimTrack> track);
|
||||
|
||||
void addTrack(std::shared_ptr<SimCore::Track> track,SensorData sensorData);
|
||||
void addTrack(std::shared_ptr<SimCore::SimTrack> track,SensorData sensorData);
|
||||
|
||||
std::shared_ptr<TracklistItem> getTrack(SimCore::Identifier TrackID);
|
||||
|
||||
@@ -46,8 +46,8 @@ namespace TrackList
|
||||
|
||||
void tracklistSanitizer();
|
||||
|
||||
void addNewTrack(std::shared_ptr<SimCore::Track> track,SensorData sensorData);
|
||||
void addNewTrack(std::shared_ptr<SimCore::Track> track);
|
||||
void addNewTrack(std::shared_ptr<SimCore::SimTrack> track,SensorData sensorData);
|
||||
void addNewTrack(std::shared_ptr<SimCore::SimTrack> track);
|
||||
|
||||
std::map<std::string, std::shared_ptr<TracklistItem>> TrackList_;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
#include "SimCore/Identifier.hpp"
|
||||
#include "SimCore/Messages/Track.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
#include "SimCore/SimCore.hpp"
|
||||
#include <SimCore/Position.hpp>
|
||||
#include <chrono>
|
||||
@@ -31,8 +31,8 @@ namespace TrackList {
|
||||
class TracklistItem
|
||||
{
|
||||
public:
|
||||
TracklistItem(std::shared_ptr<SimCore::Track> track,SensorData sensorData);
|
||||
TracklistItem(std::shared_ptr<SimCore::Track> track);
|
||||
TracklistItem(std::shared_ptr<SimCore::SimTrack> track,SensorData sensorData);
|
||||
TracklistItem(std::shared_ptr<SimCore::SimTrack> track);
|
||||
|
||||
SimCore::Identifier getID();
|
||||
|
||||
@@ -55,9 +55,9 @@ namespace TrackList {
|
||||
|
||||
std::chrono::time_point<std::chrono::steady_clock> getLastUpdateTimestamp();
|
||||
|
||||
void updateTrack(std::shared_ptr<SimCore::Track> track,SensorData sensorData);
|
||||
void updateTrack(std::shared_ptr<SimCore::SimTrack> track,SensorData sensorData);
|
||||
|
||||
void updateTrack(std::shared_ptr<SimCore::Track> track);
|
||||
void updateTrack(std::shared_ptr<SimCore::SimTrack> track);
|
||||
|
||||
bool checkIfSensorIDIsIn(SimCore::Identifier SensorTrackID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user