ADD: added Movement calculation and a Tracklist class
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
|
||||
|
||||
#include "Entities/Movement.hpp"
|
||||
#include "SimCore/Messages/GroundThruthTrack.hpp"
|
||||
#include "SimCore/Messages/Track.hpp"
|
||||
#include "SimCore/Orientation.hpp"
|
||||
@@ -26,7 +27,7 @@
|
||||
|
||||
namespace Entities {
|
||||
|
||||
struct SensorData
|
||||
struct SensorClientData
|
||||
{
|
||||
std::string SensorName;
|
||||
bool isActive;
|
||||
@@ -34,7 +35,7 @@ namespace Entities {
|
||||
std::shared_ptr<WHISPER::InternalUDPSender> SensorSender;
|
||||
};
|
||||
|
||||
struct EffectorData
|
||||
struct EffectorClientData
|
||||
{
|
||||
std::string EffectorName;
|
||||
bool isActive;
|
||||
@@ -58,8 +59,7 @@ namespace Entities {
|
||||
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
std::shared_ptr<WHISPER::threadSafeQueue<WHISPER::Message>> incommingCommandMessages = nullptr;
|
||||
@@ -68,17 +68,13 @@ namespace Entities {
|
||||
virtual void specificPhysicsCalculations(std::chrono::milliseconds::rep duration) = 0;
|
||||
virtual void specificReloadCharacteristicts() = 0;
|
||||
|
||||
std::shared_ptr<SimCore::Position> ownShipPosition_ = nullptr;
|
||||
std::shared_ptr<SimCore::Orientation> ownShipOrientation_ = nullptr;
|
||||
|
||||
Entities::Movement Movement_;
|
||||
|
||||
private:
|
||||
|
||||
std::string EntityName_;
|
||||
|
||||
|
||||
|
||||
|
||||
SimCore::GroundTruthTrack ownTrack_;
|
||||
SimCore::Identifier ParentID_;
|
||||
SimCore::EntityKind EntityKind_;
|
||||
@@ -111,7 +107,7 @@ namespace Entities {
|
||||
|
||||
std::shared_ptr<WHISPER::InternalUDPSender> GroundTruthUDPSender_ = nullptr;
|
||||
|
||||
std::shared_ptr<std::list<Entities::SensorData>> SensorStore_;
|
||||
std::shared_ptr<std::list<Entities::SensorClientData>> SensorStore_;
|
||||
|
||||
std::shared_ptr<SimCore::SafeMap<SimCore::Identifier, std::shared_ptr<SimCore::Track>>> Trackstore_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user