ADD: added update of simtrack
This commit is contained in:
@@ -23,6 +23,8 @@ SCENARIO("Testing the SimCore Track")
|
||||
GeodesPos1(SimCore::GeodesicPosition::LONGITUDE) = 13.376935;
|
||||
GeodesPos1(SimCore::GeodesicPosition::HEIGHT) = 0;
|
||||
|
||||
SimCore::Emission emi1("test Radar");
|
||||
|
||||
SimCore::Position pos1(GeocentPos1(SimCore::X),GeocentPos1(SimCore::Y),GeocentPos1(SimCore::Z));
|
||||
|
||||
double course = 90;
|
||||
@@ -47,6 +49,9 @@ SCENARIO("Testing the SimCore Track")
|
||||
if (track.getPosition() == pos) {
|
||||
testOperator = true;
|
||||
}
|
||||
|
||||
auto idEmi = emi1.getID();
|
||||
track.addEmission(emi1);
|
||||
// serializedMSG = track.buildMessage(parentID).serialize();
|
||||
// msg = std::make_shared<WHISPER::Message>(serializedMSG);
|
||||
|
||||
@@ -58,7 +63,8 @@ SCENARIO("Testing the SimCore Track")
|
||||
// std::string trackstring = track.buildMessage(parentID).serialize();
|
||||
|
||||
// SimCore::GroundTruthTrack trackDeserialized = SimCore::GroundTruthTrack::unpack(*msg);
|
||||
|
||||
std::shared_ptr<SimCore::Emission> esm= track.getEmission(emi1.getID());
|
||||
esm->packEmission();
|
||||
|
||||
THEN("check if Track attributes are correct")
|
||||
{
|
||||
@@ -66,6 +72,8 @@ SCENARIO("Testing the SimCore Track")
|
||||
REQUIRE(track.Course.getValue() == course);
|
||||
REQUIRE(track.Speed.getValue() == speed);
|
||||
REQUIRE(track.getPosition().getGeocentricPos() == pos.getGeocentricPos());
|
||||
REQUIRE(track.coutEmissions() > 0);
|
||||
REQUIRE(track.getEmission(emi1.getID()).get()->getID() == idEmi);
|
||||
|
||||
// REQUIRE(msg.get()->msgType_ == WHISPER::GROUND_TRUTH_TRACK);
|
||||
// REQUIRE(trackPtr->Speed.getValue() == speed);
|
||||
|
||||
Reference in New Issue
Block a user