ADD: added use of raw tracklist update
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include "SimCore/Identifier.hpp"
|
||||
#include "SimCore/Messages/SensorTracklistItem.hpp"
|
||||
#include "SimCore/SimCore.hpp"
|
||||
#include <SimCore/Messages/SimTrack.hpp>
|
||||
#include <kubecontrol/KubePod.hpp>
|
||||
@@ -20,7 +21,8 @@ namespace Sensor
|
||||
SensorControl(SimCore::Identifier ID, std::string Name, std::string IP, SimCore::SensorKinds sensorKind);
|
||||
|
||||
|
||||
|
||||
SimCore::SensorTracklistItem getSensorTracklistItem();
|
||||
|
||||
|
||||
|
||||
TrackList::TrackList TrackStore;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include "Entities/SensorControl.hpp"
|
||||
#include "Entities/Tracklist/Trackfusion.hpp"
|
||||
#include "SimCore/Identifier.hpp"
|
||||
#include "SimCore/Messages/SensorTracklistUpdate.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
#include "SimCore/Messages/TracklistUpdate.hpp"
|
||||
#include "SimCore/SimCore.hpp"
|
||||
@@ -117,7 +118,17 @@ namespace Entities
|
||||
*
|
||||
* @return std::unique_ptr<SimCore::TracklistUpdate>
|
||||
*/
|
||||
std::unique_ptr<SimCore::TracklistUpdate> getTrackListUpdate();
|
||||
std::unique_ptr<SimCore::TracklistUpdate> getTrackListUpdateFusioned();
|
||||
|
||||
/**
|
||||
* @brief Get the Track List Update Raw
|
||||
*
|
||||
* in this list every sensor has its own tracks without a sensorfusion over all sensors
|
||||
*
|
||||
* @return std::unique_ptr<SimCore::SensorTracklistUpdate>
|
||||
*/
|
||||
std::unique_ptr<SimCore::SensorTracklistUpdate> getTrackListUpdateRaw();
|
||||
|
||||
|
||||
/**
|
||||
* @brief send the ownShipTrack to all connected Sensors
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "SimCore/Identifier.hpp"
|
||||
#include "SimCore/IdentifierMaker.hpp"
|
||||
#include "SimCore/Messages/SensorTrack.hpp"
|
||||
#include "SimCore/Messages/SimTrack.hpp"
|
||||
#include "nlohmann/json.hpp"
|
||||
#include <atomic>
|
||||
@@ -24,21 +25,22 @@ namespace TrackList
|
||||
{
|
||||
public:
|
||||
TrackList();
|
||||
void addTrack(std::shared_ptr<SimCore::SimTrack> Track);
|
||||
std::shared_ptr<SimCore::SimTrack> getTrack(SimCore::Identifier);
|
||||
void addTrack(std::shared_ptr<SimCore::SensorTrack> Track);
|
||||
std::shared_ptr<SimCore::SensorTrack> getTrack(SimCore::Identifier);
|
||||
|
||||
void deleteTrack(std::string ID);
|
||||
void deleteTrack(SimCore::Identifier);
|
||||
std::shared_ptr<SimCore::SimTrack> getTrackBySringID(std::string ID);
|
||||
std::shared_ptr<SimCore::SensorTrack> getTrackBySringID(std::string ID);
|
||||
|
||||
size_t getSize();
|
||||
|
||||
void getJsonTRackList(nlohmann::json &message);
|
||||
std::map<std::string, std::shared_ptr<SimCore::SensorTrack>> getTrackStore();
|
||||
|
||||
|
||||
private:
|
||||
mutable std::mutex mx_;
|
||||
std::map<std::string, std::shared_ptr<SimCore::SimTrack>> TrackStore_;
|
||||
std::map<std::string, std::shared_ptr<SimCore::SensorTrack>> TrackStore_;
|
||||
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user