Skip to content
Snippets Groups Projects

Resolve "Vectorial velocity in DynamicsSignal"

Merged Reinhard Biegel requested to merge 161-vectorial-velocity-in-dynamicssignal into develop
12 files
+ 109
73
Compare changes
  • Side-by-side
  • Inline
Files
12
/********************************************************************************
* Copyright (c) 2018 AMFD GmbH
* 2017-2019 in-tech GmbH
* 2022 Bayerische Motoren Werke Aktiengesellschaft (BMW AG)
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
@@ -34,7 +35,8 @@ public:
DynamicsSignal(ComponentState componentState,
double acceleration,
double velocity,
double velocityX,
double velocityY,
double positionX,
double positionY,
double yaw,
@@ -46,7 +48,8 @@ public:
double travelDistance) :
ComponentStateSignalInterface{componentState},
acceleration(acceleration),
velocity(velocity),
velocityX(velocityX),
velocityY(velocityY),
positionX(positionX),
positionY(positionY),
yaw(yaw),
@@ -75,7 +78,8 @@ public:
std::ostringstream stream;
stream << COMPONENTNAME << std::endl;
stream << "acceleration: " << acceleration << std::endl;
stream << "velocity: " << velocity << std::endl;
stream << "velocityX: " << velocityX << std::endl;
stream << "velocityY: " << velocityY << std::endl;
stream << "positionX: " << positionX << std::endl;
stream << "positionY: " << positionY << std::endl;
stream << "yaw: " << yaw << std::endl;
@@ -89,7 +93,8 @@ public:
}
double acceleration = 0.0;
double velocity = 0.0;
double velocityX = 0.0;
double velocityY = 0.0;
double positionX = 0.0;
double positionY = 0.0;
double yaw = 0.0;
Loading