/** * Sets this pose 2D to the {@code other} pose 2D. * * @param other the other pose 2D. Not modified. */ @Override public void set(Pose2D other) { Pose2DBasics.super.set(other); }
/** * Sets this pose 2D to match the given rigid-body transform. * <p> * The given transform has to represent a 2D transformation. * </p> * * @param rigidBodyTransform the transform use to set this pose 2D. Not modified. * @throws NotAMatrix2DException if the rotation part of the transform does not represent a 2D * transformation. */ default void set(RigidBodyTransform rigidBodyTransform) { set(rigidBodyTransform, true); }
/** * Sets this frame pose 2D to the {@code other} frame pose 2D. * * @param other the other frame pose 2D. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code other} are not expressed in * the same reference frame. */ default void set(FramePose2DReadOnly other) { checkReferenceFrameMatch(other); Pose2DBasics.super.set(other); }
/** * Sets this frame pose 2D to the x, y, and yaw components of the given {@code framePose3DReadOnly}. * * @param framePose3DReadOnly the other frame pose 3D. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code framePose3DReadOnly} are not * expressed in the same reference frame. */ default void set(FramePose3DReadOnly framePose3DReadOnly) { checkReferenceFrameMatch(framePose3DReadOnly); Pose2DBasics.super.set(framePose3DReadOnly); }
/** * Sets both position and orientation. * * @param position the tuple with the new position coordinates. Not modified. * @param orientation the orientation with the new angle value for this. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code position} are not expressed in * the same reference frame. */ default void set(FrameTuple2DReadOnly position, Orientation2DReadOnly orientation) { checkReferenceFrameMatch(position); Pose2DBasics.super.set(position, orientation); }
/** * Sets both position and orientation. * * @param position the tuple with the new position coordinates. Not modified. * @param orientation the orientation with the new angle value for this. Not modified. * @throws ReferenceFrameMismatchException if {@code this} and {@code orientation} are not expressed * in the same reference frame. */ default void set(Tuple2DReadOnly position, FrameOrientation2DReadOnly orientation) { checkReferenceFrameMatch(orientation); Pose2DBasics.super.set(position, orientation); }
/** * Sets this frame pose 2D to the given {@code position} and {@code yaw} angle. * * @param position the tuple with the new position coordinates. Not modified. * @param yaw the new angle for the orientation. * @throws ReferenceFrameMismatchException if {@code this} and {@code position} are not expressed in * the same reference frame. */ default void set(FrameTuple2DReadOnly position, double yaw) { checkReferenceFrameMatch(position); Pose2DBasics.super.set(position, yaw); }
/** * Sets both position and orientation. * * @param position the tuple with the new position coordinates. Not modified. * @param orientation the orientation with the new angle value for this. Not modified. * @throws ReferenceFrameMismatchException if {@code this}, {@code position}, and * {@code orientation} are not expressed in the same reference frame. */ default void set(FrameTuple2DReadOnly position, FrameOrientation2DReadOnly orientation) { checkReferenceFrameMatch(position); checkReferenceFrameMatch(orientation); Pose2DBasics.super.set(position, orientation); }
/** * Sets this pose 2D to be the same as the given one expressed in the reference frame of this. * <p> * If {@code other} is expressed in the frame as {@code this}, then this method is equivalent to * {@link #set(FramePose2DReadOnly)}. * </p> * <p> * If {@code other} is expressed in a different frame than {@code this}, then {@code this} is set to * {@code other} and then transformed to be expressed in {@code this.getReferenceFrame()}. * </p> * * @param other the other frame pose 2D to set this to. Not modified. */ default void setMatchingFrame(FramePose2DReadOnly other) { Pose2DBasics.super.set(other); other.getReferenceFrame().transformFromThisToDesiredFrame(getReferenceFrame(), this); }