Codota Logo
Quaternion.getRotationVector
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: us.ihmc/euclid-test

quaternion.getRotationVector(normal);
orthogonal = EuclidCoreRandomTools.nextOrthogonalVector3D(random, normal, true);
normal.applyTransform(new RigidBodyTransform(new AxisAngle(orthogonal, EPSILON), new Vector3D()));
origin: us.ihmc/ihmc-robotics-toolkit

  @Override
  protected void updateTwistRelativeToParent(Twist twistRelativeToParentToPack)
  {
   RigidBodyTransform transformToRoot = originalFrame.getTransformToRoot();

   if (previousRotation.containsNaN() || previousTranslation.containsNaN())
   {
     transformToRoot.get(previousRotation, previousTranslation);

     angularVelocity.setToZero();
     linearVelocity.setToZero();
   }
   else
   {
     transformToRoot.get(rotation, translation);
     rotation.multiplyConjugateOther(previousRotation);
     rotation.getRotationVector(angularVelocity);
     angularVelocity.scale(1.0 / updateDT);
     linearVelocity.sub(translation, previousTranslation);
     linearVelocity.scale(1.0 / updateDT);

     transformToRoot.get(previousRotation, previousTranslation);

     transformToRoot.inverseTransform(angularVelocity);
     transformToRoot.inverseTransform(linearVelocity);
   }

   twistRelativeToParentToPack.setIncludingFrame(this, getParent(), this, angularVelocity, linearVelocity);
  }
}
origin: us.ihmc/ihmc-robotics-toolkit

difference.getRotationVector(limitedRotationVector);
boolean clipped = limitedRotationVector.clipToMaxLength(dt * maxRateVariable.getValue());
limited.set(clipped);
origin: us.ihmc/ihmc-robotics-toolkit

difference.difference(pose.getOrientation(), quaternionFuture);
angularVelocity.setToZero(this);
difference.getRotationVector(angularVelocity);
angularVelocity.scale(1.0 / integrationDT);
origin: us.ihmc/ihmc-robotics-toolkit

public void update(Vector3DReadOnly inputAngularVelocity, Vector3DReadOnly inputLinearAcceleration, Vector3DReadOnly inputMagneticVector)
{
 if (!hasBeenInitialized.getValue())
 {
   initialize(inputLinearAcceleration, inputMagneticVector);
   return;
 }
 boolean success = computeOrientationError((QuaternionReadOnly) estimatedOrientation, inputLinearAcceleration, inputMagneticVector, quaternionUpdate);
 if (success)
 {
   quaternionUpdate.getRotationVector(totalError);
   yoErrorTerm.set(totalError);
   integralTerm.scaleAdd(integralGain.getValue() * updateDT, yoErrorTerm, yoIntegralTerm);
   yoIntegralTerm.set(integralTerm);
   angularVelocityTerm.scaleAdd(proportionalGain.getValue(), totalError, inputAngularVelocity);
   angularVelocityTerm.add(integralTerm);
 }
 else
 {
   yoErrorTerm.setToZero();
   angularVelocityTerm.set(inputAngularVelocity);
 }
 rotationUpdate.setAndScale(updateDT, angularVelocityTerm);
 quaternionUpdate.setRotationVector(rotationUpdate);
 estimatedOrientation.multiply(quaternionUpdate);
 if (estimatedAngularVelocity != null)
   estimatedAngularVelocity.add(inputAngularVelocity, integralTerm);
}
origin: us.ihmc/ihmc-robotics-toolkit

difference.getRotationVector(limitedRotationVector);
boolean clipped = limitedRotationVector.clipToMaxLength(dt * maxRateVariable.getValue());
limited.set(clipped);
origin: us.ihmc/ihmc-robotics-toolkit-test

@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout = 30000)
public void testComputeAngularVelocityInBodyFrameFromYawPitchRollAnglesRate() throws Exception
{
 double dt = 1.0e-8;
 for (int i = 0; i < 1000; i++)
 {
   double yaw = RandomNumbers.nextDouble(random, Math.PI);
   double pitch = RandomNumbers.nextDouble(random, Math.PI / 2.0);
   double roll = RandomNumbers.nextDouble(random, Math.PI);
   double yawRate = RandomNumbers.nextDouble(random, 1.0);
   double pitchRate = RandomNumbers.nextDouble(random, 1.0);
   double rollRate = RandomNumbers.nextDouble(random, 1.0);
   double previousYaw = yaw - yawRate * dt;
   double previousPitch = pitch - pitchRate * dt;
   double previousRoll = roll - rollRate * dt;
   Quaternion rotation = new Quaternion();
   rotation.setYawPitchRoll(yaw, pitch, roll);
   Quaternion previousRotation = new Quaternion();
   previousRotation.setYawPitchRoll(previousYaw, previousPitch, previousRoll);
   Vector3D expectedAngularVelocity = new Vector3D();
   Quaternion difference = new Quaternion();
   difference.difference(previousRotation, rotation);
   difference.getRotationVector(expectedAngularVelocity);
   expectedAngularVelocity.scale(1.0 / dt);
   Vector3D actualAngularVelocity = new Vector3D();
   RotationTools.computeAngularVelocityInBodyFrameFromYawPitchRollAnglesRate(yaw, pitch, roll, yawRate, pitchRate, rollRate, actualAngularVelocity);
   EuclidCoreTestTools.assertTuple3DEquals(expectedAngularVelocity, actualAngularVelocity, 1.0e-7);
 }
}
origin: us.ihmc/euclid-test

quaternion.getRotationVector(rotationVector);
actualTransform.setRotation(rotationVector);
EuclidCoreTestTools.assertQuaternionEquals(quaternion, actualTransform.getQuaternion(), EPS);
us.ihmc.euclid.tuple4DQuaterniongetRotationVector

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,
  • appendPitchRotation

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • putExtra (Intent)
  • getApplicationContext (Context)
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now