ADD: use of new sensor messages
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include "DirectCommunicationClient.hpp"
|
||||
#include "SimCore/Messages/SensorData.hpp"
|
||||
#include "SimCore/Messages/SensorTrack.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
#include "WHISPER/InternalUDPListener.hpp"
|
||||
#include <WHISPER/InternalUDPService.hpp>
|
||||
@@ -28,6 +30,7 @@ namespace Entities {
|
||||
Sensor(
|
||||
SimCore::Identifier OwnID,
|
||||
SimCore::Identifier OwnShipID,
|
||||
std::string Name,
|
||||
SimCore::SensorKinds SensorKind,
|
||||
std::string GroundTruthAddress,
|
||||
std::uint32_t GroundTruthPort,
|
||||
@@ -39,19 +42,18 @@ namespace Entities {
|
||||
|
||||
protected:
|
||||
|
||||
SimCore::SensorData OwnData;
|
||||
|
||||
|
||||
virtual void specificSensorCalculations(std::unique_ptr<SimCore::SimTrack> track) = 0;
|
||||
|
||||
std::shared_ptr<SimCore::SimTrack> OwnShipTrack_ = nullptr;
|
||||
|
||||
const SimCore::Identifier OwnID_;
|
||||
const SimCore::Identifier OwnShipID;
|
||||
|
||||
|
||||
SimCore::SensorKinds SensorKind_;
|
||||
|
||||
std::shared_ptr<WHISPER::threadSafeQueue<std::shared_ptr<SimCore::SimTrack>>> recognisedTracks_ = nullptr;
|
||||
std::shared_ptr<WHISPER::threadSafeQueue<std::shared_ptr<SimCore::SensorTrack>>> recognisedTracks_ = nullptr;
|
||||
private:
|
||||
|
||||
std::uint32_t GroundTruthPort_;
|
||||
|
||||
Reference in New Issue
Block a user