ADD: added orientation
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
|
||||
#include "SimCore/Identifier.hpp"
|
||||
#include "SimCore/Orientation.hpp"
|
||||
#include "SimCore/Position.hpp"
|
||||
#include "WHISPER/Messages/Message.hpp"
|
||||
#include <SimCore/SimCore.hpp>
|
||||
#include <memory>
|
||||
@@ -23,13 +25,16 @@ class Ship : public Entities::Entity
|
||||
std::string CommandIPAddress):
|
||||
Entity( OwnID,EntityName,ownType, ParentID, EntityKind, GroundTruthPort, CommandPort, CommandIPAddress)
|
||||
{
|
||||
|
||||
this->ownShipPosition_ = std::make_shared<SimCore::Position>();
|
||||
this->ownShipOrientation_ = std::make_shared<SimCore::Orientation>();
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
void specificPhysicsCalculations(std::chrono::milliseconds::rep duration) override
|
||||
{
|
||||
|
||||
|
||||
LOG_S(INFO)<<"calculating every " << duration << "milliseconds";
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user