public String toString() { String ret = ""; ret += "Current position: " + position.toString(); ret += "\nCurrent orientation: " + orientation.toString(); return ret; }
@Override public String toString() { String ret = ""; ret += "Current time: " + currentTime.getDoubleValue() + ", trajectory time: " + trajectoryTime.getDoubleValue(); ret += "\nCurrent orientation: " + currentOrientation.toString(); ret += "\nCurrent angular velocity: " + currentAngularVelocity.toString(); ret += "\nCurrent angular acceleration: " + currentAngularAcceleration.toString(); return ret; } }
@Override public String toString() { String ret = ""; ret += "Current time: " + currentTime.getDoubleValue() + ", trajectory time: " + trajectoryTime.getDoubleValue(); ret += "\nCurrent orientation: " + currentOrientation.toString(); ret += "\nCurrent angular velocity: " + currentAngularVelocity.toString(); ret += "\nCurrent angular acceleration: " + currentAngularAcceleration.toString(); return ret; } }
@Override public String toString() { String ret = ""; ret += "Current time: " + currentTime.getDoubleValue() + ", trajectory time: " + trajectoryTime.getDoubleValue(); ret += "\nCurrent orientation: " + currentOrientation.toString(); ret += "\nCurrent angular velocity: " + currentAngularVelocity.toString(); ret += "\nCurrent angular acceleration: " + currentAngularAcceleration.toString(); return ret; } }
@ContinuousIntegrationTest(estimatedDuration = 0.0) @Test(timeout=300000) public void testToString() { String expectedString = "Current position: " + positionYoFramePoint.toString() + "\nCurrent orientation: " + orientationQuaternion.toString(); assertEquals(expectedString, generator.toString()); } }