Tabnine Logo
Pose3DBasics
Code IndexAdd Tabnine to your IDE (free)

How to use
Pose3DBasics
in
us.ihmc.euclid.geometry.interfaces

Best Java code snippets using us.ihmc.euclid.geometry.interfaces.Pose3DBasics (Showing top 20 results out of 315)

origin: us.ihmc/euclid-geometry

/**
* Prepends a rotation about the z-axis to this pose 3D: Rotates the position part and prepends the
* rotation to the orientation part.
*
* @param yaw the angle to rotate about the z-axis.
*/
default void prependYawRotation(double yaw)
{
 RotationMatrixTools.applyYawRotation(yaw, getPosition(), getPosition());
 getOrientation().prependYawRotation(yaw);
}
origin: us.ihmc/euclid-geometry

/**
* Rotates, then adds the translation (x, y, z) to this pose 3D.
* <p>
* Use this method if the translation (x, y, z) is expressed in the local coordinates described by
* this pose 3D. Otherwise, use {@link #prependTranslation(double, double, double)}.
* </p>
*
* @param x the translation distance along the x-axis.
* @param y the translation distance along the y-axis.
* @param z the translation distance along the z-axis.
*/
default void appendTranslation(double x, double y, double z)
{
 double thisX = getX();
 double thisY = getY();
 double thisZ = getZ();
 setPosition(x, y, z);
 getOrientation().transform(getPosition());
 getPosition().add(thisX, thisY, thisZ);
}
origin: us.ihmc/euclid-geometry

/**
* Sets this pose 3D to the {@code other} pose 3D.
*
* @param other the other pose 3D. Not modified.
*/
@Override
public void set(Pose3D other)
{
 Pose3DBasics.super.set(other);
}
origin: us.ihmc/euclid-geometry

/**
* Sets both position and orientation.
*
* @param position the tuple with the new position coordinates. Not modified.
* @param orientation the new orientation. Not modified.
*/
default void set(Tuple3DReadOnly position, Orientation3DReadOnly orientation)
{
 setOrientation(orientation);
 setPosition(position);
}
origin: us.ihmc/euclid-geometry

/**
* Sets all the components of this pose 3D.
* <p>
* WARNING: the Euler angles or yaw-pitch-roll representation is sensitive to gimbal lock and is
* sometimes undefined.
* </p>
*
* @param x the x-coordinate of the position.
* @param y the y-coordinate of the position.
* @param z the z-coordinate of the position.
* @param yaw the angle to rotate about the z-axis.
* @param pitch the angle to rotate about the y-axis.
* @param roll the angle to rotate about the x-axis.
*/
default void set(double x, double y, double z, double yaw, double pitch, double roll)
{
 setPosition(x, y, z);
 setOrientationYawPitchRoll(yaw, pitch, roll);
}
origin: us.ihmc/euclid-geometry

/**
* Sets the orientation part of this pose 3D with the given orientation.
*
* @param orientation the orientation used to set this pose's orientation. Not modified.
*/
default void setOrientation(Orientation3DReadOnly orientation)
{
 getOrientation().set(orientation);
}
origin: us.ihmc/ihmc-humanoid-robotics

public void updateFullRobotModel(KinematicsToolboxOutputStatus solution)
{
 if (jointsHashCode != solution.getJointNameHash())
   throw new RuntimeException("Hashes are different.");
 for (int i = 0; i < oneDoFJoints.length; i++)
 {
   float q = solution.getDesiredJointAngles().get(i);
   OneDoFJointBasics joint = oneDoFJoints[i];
   joint.setQ(q);
 }
 Vector3D translation = solution.getDesiredRootTranslation();
 rootJoint.getJointPose().setPosition(translation.getX(), translation.getY(), translation.getZ());
 Quaternion orientation = solution.getDesiredRootOrientation();
 rootJoint.getJointPose().getOrientation().setQuaternion(orientation.getX(), orientation.getY(), orientation.getZ(), orientation.getS());
 fullRobotModelToUseForConversion.updateFrames();
}
origin: us.ihmc/euclid-geometry

/**
* Sets the x-coordinate of the position.
*
* @param x the x-coordinate of the position.
*/
default void setX(double x)
{
 getPosition().setX(x);
}
origin: us.ihmc/ihmc-robotics-toolkit-test

                         getRandomVector(random));
sixDoFJoint.setJointPosition(getRandomVector(random));
sixDoFJoint.getJointPose().setOrientationYawPitchRoll(random.nextDouble(), random.nextDouble(), random.nextDouble());
sixDoFJoint.setJointAcceleration(jointAcceleration);
elevator.updateFramesRecursively();
rotationMatrix.set(sixDoFJoint.getJointPose().getOrientation());
origin: us.ihmc/mecano

/** {@inheritDoc} */
@Override
default void setJointPosition(Tuple3DReadOnly jointTranslation)
{
 getJointPose().setPosition(jointTranslation);
}
origin: us.ihmc/simulation-construction-set-tools-test

private void setRandomPosition(FloatingJoint floatingJoint, SixDoFJoint sixDoFJoint)
{
 Point3D rootPosition = new Point3D(random.nextDouble(), random.nextDouble(), random.nextDouble());
 double yaw = random.nextDouble();
 double pitch = random.nextDouble();
 double roll = random.nextDouble();
 floatingJoint.setPosition(rootPosition);
 floatingJoint.setYawPitchRoll(yaw, pitch, roll);
 sixDoFJoint.setJointPosition(rootPosition);
 sixDoFJoint.getJointPose().setOrientationYawPitchRoll(yaw, pitch, roll);
}
origin: us.ihmc/euclid-frame

/**
* Sets the orientation from the given frame orientation 2D.
*
* @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 setOrientation(FrameOrientation2DReadOnly orientation)
{
 checkReferenceFrameMatch(orientation);
 Pose3DBasics.super.setOrientation(orientation);
}
origin: us.ihmc/euclid-geometry

/**
* Sets the orientation part of this pose 3D with the given yaw, pitch, and roll angles.
* <p>
* WARNING: the Euler angles or yaw-pitch-roll representation is sensitive to gimbal lock and is
* sometimes undefined.
* </p>
*
* @param yawPitchRoll array containing the yaw-pitch-roll angles. Not modified.
* @deprecated Use {@link #setOrientation(Orientation3DReadOnly)} with {@link YawPitchRoll} instead.
*/
default void setOrientationYawPitchRoll(double[] yawPitchRoll)
{
 getOrientation().setYawPitchRoll(yawPitchRoll);
}
origin: us.ihmc/ihmc-avatar-interfaces

rootJoint.getJointPose().setPosition(translation.getX(), translation.getY(), translation.getZ());
Quaternion orientation = robotConfigurationData.getRootOrientation();
rootJoint.getJointPose().getOrientation().setQuaternion(orientation.getX(), orientation.getY(), orientation.getZ(), orientation.getS());
rootJoint.getPredecessor().updateFramesRecursively();
origin: us.ihmc/euclid-geometry

/**
* Sets the y-coordinate of the position.
*
* @param y the y-coordinate of the position.
*/
default void setY(double y)
{
 getPosition().setY(y);
}
origin: us.ihmc/euclid-geometry

/**
* Sets this pose 3D to the {@code other} pose 3D.
*
* @param other the other pose 3D. Not modified.
*/
default void set(Pose3DReadOnly other)
{
 setPosition(other.getPosition());
 setOrientation(other.getOrientation());
}
origin: us.ihmc/euclid-frame

/**
* Sets the position from the given frame tuple 3D.
*
* @param position the tuple with the new position coordinates. Not modified.
* @throws ReferenceFrameMismatchException if {@code this} and {@code position} are not expressed in
*            the same reference frame.
*/
default void setPosition(FrameTuple3DReadOnly position)
{
 checkReferenceFrameMatch(position);
 Pose3DBasics.super.setPosition(position);
}
origin: us.ihmc/ihmc-robotics-toolkit-test

sixDoFJoint.getJointPose().setOrientationYawPitchRoll(random.nextDouble(), random.nextDouble(), random.nextDouble());
origin: us.ihmc/euclid-frame

/**
* Sets the orientation from the given frame orientation.
*
* @param orientation the orientation to set the orientation part of this frame pose. Not modified.
* @throws ReferenceFrameMismatchException if {@code this} and {@code orientation} are not expressed
*            in the same reference frame.
*/
default void setOrientation(FrameOrientation3DReadOnly orientation)
{
 checkReferenceFrameMatch(orientation);
 Pose3DBasics.super.setOrientation(orientation);
}
origin: us.ihmc/euclid-geometry

/**
* Prepends a rotation about the y-axis to this pose 3D: Rotates the position part and prepends the
* rotation to the orientation part.
*
* @param pitch the angle to rotate about the y-axis.
*/
default void prependPitchRotation(double pitch)
{
 RotationMatrixTools.applyPitchRotation(pitch, getPosition(), getPosition());
 getOrientation().prependPitchRotation(pitch);
}
us.ihmc.euclid.geometry.interfacesPose3DBasics

Javadoc

Write and read interface for pose 3D.

A pose 3D represents a position and orientation in 3 dimensions.

Most used methods

  • getOrientation
  • getPosition
  • setPosition
    Sets the position to the given tuple.
  • set
    Sets both position and orientation.
  • setOrientationYawPitchRoll
    Sets the orientation part of this pose 3D with the given yaw, pitch, and roll angles. WARNING: the E
  • setOrientation
    Sets the orientation part of this pose 3D with the given orientation.
  • appendTranslation
    Rotates, then adds the given translation to this pose 3D. Use this method if the translation is expr
  • getZ
  • prependTranslation
    Adds the given translation to this pose 3D assuming it is expressed in the coordinates in which this
  • appendRotation
    Appends the given orientation to this pose 3D. Only the orientation part of this pose is affected by
  • applyTransform
    Transforms the position and orientation parts of this pose 3D by the given transform.
  • epsilonEquals
  • applyTransform,
  • epsilonEquals,
  • geometricallyEquals,
  • getX,
  • getY,
  • interpolate,
  • prependRotation,
  • setToZero

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Notification (javax.management)
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JList (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now