Tabnine Logo
Quaternion.appendPitchRotation
Code IndexAdd Tabnine to your IDE (free)

How to use
appendPitchRotation
method
in
us.ihmc.euclid.tuple4D.Quaternion

Best Java code snippets using us.ihmc.euclid.tuple4D.Quaternion.appendPitchRotation (Showing top 13 results out of 315)

origin: us.ihmc/simulation-construction-set-tools

  quaternion.appendPitchRotation(-cinderBlockTiltRadians);
  break;
case EAST:
  break;
case SOUTH:
  quaternion.appendPitchRotation(cinderBlockTiltRadians);
  break;
  quaternion.appendPitchRotation(cinderBlockTiltRadians);
  break;
case EAST:
  break;
case SOUTH:
  quaternion.appendPitchRotation(-cinderBlockTiltRadians);
  break;
origin: us.ihmc/euclid-test

@Test
public void testAppendPitchRotation()
{
 Random random = new Random(4353);
 for (int i = 0; i < ITERATIONS; i++)
 {
   T original = createRandomYawPitchRoll(random);
   double pitch = EuclidCoreRandomTools.nextDouble(random, 4.0 * Math.PI);
   T actual = createYawPitchRoll(original);
   actual.appendPitchRotation(pitch);
   Quaternion q = new Quaternion(original);
   q.appendPitchRotation(pitch);
   T expected = createYawPitchRoll(q);
   EuclidCoreTestTools.assertYawPitchRollGeometricallyEquals(expected, actual, getEpsilon());
 }
}
origin: us.ihmc/euclid-test

@Test
public void testAppendPitchRotation() throws Exception
{
 Random random = new Random(97);
 for (int i = 0; i < ITERATIONS; i++)
 {
   YawPitchRoll original = EuclidCoreRandomTools.nextYawPitchRoll(random);
   YawPitchRoll actual = new YawPitchRoll();
   YawPitchRoll expected = new YawPitchRoll();
   double pitch = EuclidCoreRandomTools.nextDouble(random, 4.0 * Math.PI);
   Quaternion q = new Quaternion();
   q.set(original);
   q.appendPitchRotation(pitch);
   expected.set(q);
   YawPitchRollTools.appendPitchRotation(original, pitch, actual);
   EuclidCoreTestTools.assertYawPitchRollEquals(expected, actual, EPSILON);
 }
}
origin: us.ihmc/ihmc-avatar-interfaces-test

@ContinuousIntegrationAnnotations.ContinuousIntegrationTest(estimatedDuration = 25.5)
@Test(timeout = 130000)
public void testSingleTrajectoryPoint() throws SimulationExceededMaximumTimeException
{
 double epsilon = 1.0e-10;
 double yaw = Math.toRadians(5.0);
 double pitch = Math.toRadians(-6.0);
 double roll = Math.toRadians(-5.0);
 double trajectoryTime = 0.5;
 Quaternion orientation = new Quaternion();
 orientation.appendYawRotation(yaw);
 orientation.appendPitchRotation(pitch);
 orientation.appendRollRotation(roll);
 ReferenceFrame midFootZUpGroundFrame = humanoidReferenceFrames.getMidFootZUpGroundFrame();
 FrameQuaternion pelvisOrientation = new FrameQuaternion(midFootZUpGroundFrame, orientation);
 pelvisOrientation.changeFrame(worldFrame);
 PelvisOrientationTrajectoryMessage message = HumanoidMessageTools.createPelvisOrientationTrajectoryMessage(trajectoryTime, pelvisOrientation);
 SO3TrajectoryPointMessage waypoint = message.getSo3Trajectory().getTaskspaceTrajectoryPoints().get(0);
 drcSimulationTestHelper.publishToController(message);
 drcSimulationTestHelper.simulateAndBlockAndCatchExceptions(4.0 * getRobotModel().getControllerDT());
 String pelvisName = fullRobotModel.getPelvis().getName();
 String postFix = "Orientation";
 EndToEndTestTools.assertNumberOfPoints(pelvisName, postFix, 2, scs);
 EndToEndTestTools.assertWaypointInGeneratorMatches(pelvisName, 1, waypoint, scs, epsilon);
 drcSimulationTestHelper.simulateAndBlockAndCatchExceptions(trajectoryTime);
 EndToEndTestTools.assertCurrentDesiredsMatchWaypoint(pelvisName, waypoint, scs, epsilon);
 drcSimulationTestHelper.createVideo(getSimpleRobotName(), 2);
}
origin: us.ihmc/ihmc-avatar-interfaces-test

orientation.appendPitchRotation(pitch);
orientation.appendRollRotation(roll);
FrameQuaternion frameOrientation = new FrameQuaternion(pelvisFrame, orientation);
origin: us.ihmc/ihmc-avatar-interfaces-test

desiredChestOrientation.appendPitchRotation(pitch);
FrameQuaternion frameChestOrientation = new FrameQuaternion(chestFrame, desiredChestOrientation);
frameChestOrientation.changeFrame(worldFrame);
origin: us.ihmc/ihmc-avatar-interfaces-test

lookLeftQuat.appendPitchRotation(Math.PI / 16.0);
lookLeftQuat.appendRollRotation(-Math.PI / 16.0);
FrameQuaternion lookLeft = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookLeftQuat);
lookRightQuat.appendPitchRotation(-Math.PI / 16.0);
lookRightQuat.appendRollRotation(Math.PI / 16.0);
FrameQuaternion lookRight = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookRightQuat);
origin: us.ihmc/ihmc-avatar-interfaces-test

lookLeftQuat.appendPitchRotation(Math.PI / 16.0);
lookLeftQuat.appendRollRotation(-Math.PI / 16.0);
FrameQuaternion lookLeft = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookLeftQuat);
lookRightQuat.appendPitchRotation(-Math.PI / 16.0);
lookRightQuat.appendRollRotation(Math.PI / 16.0);
FrameQuaternion lookRight = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookRightQuat);
origin: us.ihmc/ihmc-avatar-interfaces-test

lookLeftQuat.appendPitchRotation(Math.PI / 16.0);
lookLeftQuat.appendRollRotation(-Math.PI / 16.0);
FrameQuaternion lookLeft = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookLeftQuat);
lookRightQuat.appendPitchRotation(-Math.PI / 16.0);
lookRightQuat.appendRollRotation(Math.PI / 16.0);
FrameQuaternion lookRight = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookRightQuat);
origin: us.ihmc/ihmc-avatar-interfaces-test

orientation.appendPitchRotation(-cinderBlockTiltRadians);
message.getFootstepDataList().add().set(HumanoidMessageTools.createFootstepDataMessage(RobotSide.LEFT, location, orientation));
orientation.appendPitchRotation(cinderBlockTiltRadians);
message.getFootstepDataList().add().set(HumanoidMessageTools.createFootstepDataMessage(RobotSide.LEFT, location, orientation));
orientation.appendPitchRotation(cinderBlockTiltRadians);
footstep = HumanoidMessageTools.createFootstepDataMessage(RobotSide.LEFT, location, orientation);
footstep.setSwingHeight(0.18);
orientation.appendPitchRotation(cinderBlockTiltRadians);
message.getFootstepDataList().add().set(HumanoidMessageTools.createFootstepDataMessage(RobotSide.RIGHT, location, orientation));
orientation.appendPitchRotation(-cinderBlockTiltRadians);
message.getFootstepDataList().add().set(HumanoidMessageTools.createFootstepDataMessage(RobotSide.LEFT, location, orientation));
origin: us.ihmc/ihmc-avatar-interfaces-test

chestOrientation.appendPitchRotation(Math.PI / 4.0);
ChestTrajectoryMessage chestTrajectoryMessage = HumanoidMessageTools.createChestTrajectoryMessage(1.0, chestOrientation, worldFrame, pelvisZUpFrame);
drcSimulationTestHelper.publishToController(chestTrajectoryMessage);
handOrientation.appendPitchRotation(Math.PI / 2.0);
origin: us.ihmc/ihmc-avatar-interfaces-test

lookLeftQuat.appendPitchRotation(Math.PI / 16.0);
lookLeftQuat.appendRollRotation(-Math.PI / 16.0);
FrameQuaternion lookLeft = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookLeftQuat);
lookRightQuat.appendPitchRotation(-Math.PI / 16.0);
lookRightQuat.appendRollRotation(Math.PI / 16.0);
FrameQuaternion lookRight = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookRightQuat);
origin: us.ihmc/ihmc-avatar-interfaces-test

lookLeftQuat.appendPitchRotation(Math.PI / 16.0);
lookLeftQuat.appendRollRotation(-Math.PI / 16.0);
FrameQuaternion lookLeft = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookLeftQuat);
lookRightQuat.appendPitchRotation(-Math.PI / 16.0);
lookRightQuat.appendRollRotation(Math.PI / 16.0);
FrameQuaternion lookRight = new FrameQuaternion(humanoidReferenceFrames.getPelvisZUpFrame(), lookRightQuat);
us.ihmc.euclid.tuple4DQuaternionappendPitchRotation

Popular methods of Quaternion

  • <init>
  • set
  • getS
  • getX
  • getY
  • getZ
  • multiply
  • setYawPitchRoll
  • getYaw
  • applyTransform
  • epsilonEquals
  • transform
  • epsilonEquals,
  • transform,
  • appendRollRotation,
  • equals,
  • get,
  • interpolate,
  • multiplyConjugateOther,
  • normalize,
  • setRotationVector

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Notification (javax.management)
  • JLabel (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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