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

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

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

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/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/ihmc-robotics-toolkit-test

sixDoFJoint.getJointPose().setOrientationYawPitchRoll(random.nextDouble(), random.nextDouble(), random.nextDouble());
origin: us.ihmc/ihmc-avatar-interfaces-test

public void setFullRobotModelStateRandomly(Random random, double maxJointVelocity, double maxRootJointLinearAndAngularVelocity)
{
 FloatingJointBasics rootJoint = fullRobotModel.getRootJoint();
 ReferenceFrame elevatorFrame = rootJoint.getFrameBeforeJoint();
 ReferenceFrame bodyFrame = rootJoint.getFrameAfterJoint();
 Twist bodyTwist = new Twist(bodyFrame, elevatorFrame, bodyFrame, RandomGeometry.nextVector3D(random, maxRootJointLinearAndAngularVelocity),
    RandomGeometry.nextVector3D(random, maxRootJointLinearAndAngularVelocity));
 rootJoint.setJointTwist(bodyTwist);
 rootJoint.setJointPosition(RandomGeometry.nextVector3D(random));
 double yaw = RandomNumbers.nextDouble(random, Math.PI / 20.0);
 double pitch = RandomNumbers.nextDouble(random, Math.PI / 20.0);
 double roll = RandomNumbers.nextDouble(random, Math.PI / 20.0);
 rootJoint.getJointPose().setOrientationYawPitchRoll(yaw, pitch, roll);
 ArrayList<OneDoFJointBasics> oneDoFJoints = new ArrayList<OneDoFJointBasics>();
 fullRobotModel.getOneDoFJoints(oneDoFJoints);
 for (OneDoFJointBasics oneDoFJoint : oneDoFJoints)
 {
   double lowerLimit = oneDoFJoint.getJointLimitLower();
   double upperLimit = oneDoFJoint.getJointLimitUpper();
   double delta = upperLimit - lowerLimit;
   lowerLimit = lowerLimit + 0.05 * delta;
   upperLimit = upperLimit - 0.05 * delta;
   oneDoFJoint.setQ(RandomNumbers.nextDouble(random, lowerLimit, upperLimit));
   oneDoFJoint.setQd(RandomNumbers.nextDouble(random, maxJointVelocity));
 }
}
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();
us.ihmc.euclid.geometry.interfacesPose3DBasicssetOrientationYawPitchRoll

Javadoc

Sets the orientation part of this pose 3D with the given yaw, pitch, and roll angles.

WARNING: the Euler angles or yaw-pitch-roll representation is sensitive to gimbal lock and is sometimes undefined.

Popular methods of Pose3DBasics

  • getOrientation
  • getPosition
  • setPosition
    Sets the position to the given tuple.
  • set
    Sets both position and orientation.
  • 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
  • geometricallyEquals
  • epsilonEquals,
  • geometricallyEquals,
  • getX,
  • getY,
  • interpolate,
  • prependRotation,
  • setToZero

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Runner (org.openjdk.jmh.runner)
  • Top 12 Jupyter Notebook extensions
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