public void set(double time, FramePoint3D position, FrameQuaternion orientation, FrameVector3D linearVelocity, FrameVector3D angularVelocity) { this.time.set(time); this.position.set(position); this.orientation.set(orientation); this.linearVelocity.set(linearVelocity); this.angularVelocity.set(angularVelocity); }
public void setTrajectoryParameters(double duration, Point3DReadOnly initialPosition, double intermediatePosition, Point3DReadOnly finalPosition, Vector3DReadOnly finalVelocity) { trajectoryTime.set(duration); this.initialPosition.set(initialPosition); this.intermediateZPosition.set(intermediatePosition); this.finalPosition.set(finalPosition); this.finalVelocity.set(finalVelocity); }
public void setTrajectoryParameters(double duration, FramePoint3DReadOnly initialPosition, YoDouble intermediateZPosition, FramePoint3DReadOnly finalPosition, FrameVector3DReadOnly finalVelocity) { trajectoryTime.set(duration); this.initialPosition.set(initialPosition); this.intermediateZPosition.set(intermediateZPosition.getDoubleValue()); this.finalPosition.set(finalPosition); this.finalVelocity.set(finalVelocity); }
public YoStopwatch(String name, YoDouble timeYoVariable, YoVariableRegistry registry) { this(timeYoVariable); yoLapStart = new YoDouble(name + "LapStart", registry); yoLapCount = new YoLong(name + "LapCount", registry); yoRecordedLapTotal = new YoDouble(name + "RecordedLapTotal", registry); yoSuspended = new YoBoolean(name + "Suspended", registry); yoSuspendStart = new YoDouble(name + "SuspendStart", registry); yoResumedSuspensionTotal = new YoDouble(name + "ResumedSuspensionTotal", registry); yoLapStart.setToNaN(); }
@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; } }
public YoGraphicPolygon(String name, YoFrameConvexPolygon2D convexPolygon2d, String namePrefix, String nameSuffix, YoVariableRegistry registry, boolean useYawPitchRoll, double scale, AppearanceDefinition appearance) { this(name, convexPolygon2d, new YoFramePoint3D(namePrefix, nameSuffix, worldFrame, registry), useYawPitchRoll ? new YoFrameYawPitchRoll(namePrefix, nameSuffix, worldFrame, registry) : null, useYawPitchRoll ? null : new YoFrameQuaternion(namePrefix, nameSuffix, worldFrame, registry), scale, DEFAULT_HEIGHT, appearance); }
/** * Sets this pose to represent the same geometry as the given {@code yoFramePose}. * * @param yoFramePose the pose used to set this. Not modified. */ public void set(YoFramePoseUsingYawPitchRoll yoFramePose) { set(yoFramePose.getPosition(), yoFramePose.getOrientation().getFrameOrientation()); }
public void set(double time, YoFramePoint3D position, YoFrameQuaternion orientation, YoFrameVector3D linearVelocity, YoFrameVector3D angularVelocity) { this.time.set(time); this.position.set(position); this.orientation.set(orientation); this.linearVelocity.set(linearVelocity); this.angularVelocity.set(angularVelocity); }
@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; } }
public YoGraphicPolygon(String name, YoFrameConvexPolygon2D convexPolygon2d, YoVariableRegistry registry, boolean useYawPitchRoll, double scale, AppearanceDefinition appearance) { this(name, convexPolygon2d, new YoFramePoint3D(name + "Position", worldFrame, registry), useYawPitchRoll ? new YoFrameYawPitchRoll(name + "Orientation", worldFrame, registry) : null, useYawPitchRoll ? null : new YoFrameQuaternion(name + "Orientation", worldFrame, registry), scale, DEFAULT_HEIGHT, appearance); }
public void set(double time, Point3DReadOnly position, QuaternionReadOnly orientation, Vector3DReadOnly linearVelocity, Vector3DReadOnly angularVelocity) { this.time.set(time); this.position.set(position); this.orientation.set(orientation); this.linearVelocity.set(linearVelocity); this.angularVelocity.set(angularVelocity); }
@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; } }
public void setTrajectoryParameters(double duration, Point3D initialPosition, Vector3D initialVelocity, Point3D finalPosition, Vector3D finalVelocity) { trajectoryTime.set(duration); this.initialPosition.set(initialPosition); this.initialVelocity.set(initialVelocity); this.finalPosition.set(finalPosition); this.finalVelocity.set(finalVelocity); }
public void setTrajectoryParameters(double duration, FramePoint3DReadOnly initialPosition, double intermediateZPosition, FramePoint3DReadOnly finalPosition, FrameVector3DReadOnly finalVelocity) { trajectoryTime.set(duration); this.initialPosition.set(initialPosition); this.intermediateZPosition.set(intermediateZPosition); this.finalPosition.set(finalPosition); this.finalVelocity.set(finalVelocity); }
public void setTrajectoryParameters(double duration, FramePoint3D initialPosition, FrameVector3D initialVelocity, FramePoint3D finalPosition, FrameVector3D finalVelocity) { trajectoryTime.set(duration); this.initialPosition.set(initialPosition); this.initialVelocity.set(initialVelocity); this.finalPosition.set(finalPosition); this.finalVelocity.set(finalVelocity); }