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

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

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

origin: us.ihmc/joctomap

public void setYawFromQuaternion(Quaternion quaternion)
{
 setYaw(quaternion.getYaw());
}
origin: us.ihmc/ihmc-footstep-planning-visualizers

@Override
public void handle(long now)
{
 if (startRotationEditModeEnabled.get())
   startArrow.setMaterial(startTransparentMaterial);
 else
   startArrow.setMaterial(startOpaqueMaterial);
 Point3D startPosition = startPositionReference.get();
 if (startPosition != null)
 {
   setArrowPose(startArrow, startPosition, startQuaternionReference.get().getYaw());
 }
 if (goalRotationEditModeEnabled.get())
   goalArrow.setMaterial(goalTransparentMaterial);
 else
   goalArrow.setMaterial(goalOpaqueMaterial);
 Point3D goalPosition = goalPositionReference.get();
 if (goalPosition != null)
 {
   setArrowPose(goalArrow, goalPosition, goalQuaternionReference.get().getYaw());
 }
 Point3D lowLevelGoalPosition = lowLevelGoalPositionReference.get();
 if (goalPosition != null)
 {
   setArrowPose(lowLevelGoalArrow, lowLevelGoalPosition, lowLevelGoalQuaternionReference.get().getYaw());
 }
}
origin: us.ihmc/ihmc-footstep-planning-visualizers

@Override
public void handle(long now)
{
 if(nodeCheckerEnabled == null)
   return;
 if(!nodeCheckerEnabled.get())
   return;
 Point3D footPosition = footPositionReference.get();
 double footOrientation = footOrientationReference.get().getYaw();
 PlanarRegionsList planarRegionsList = planarRegionsReference.get();
 if(footPosition == null || planarRegionsList == null)
   return;
 FootstepNode node = new FootstepNode(footPosition.getX(), footPosition.getY(), footOrientation, initialSupportSideReference.get());
 snapper.setPlanarRegions(planarRegionsList);
 FootstepNodeSnapData snapData = snapper.snapFootstepNode(node);
 checker.setPlanarRegions(planarRegionsList);
 boolean isValid = checker.isNodeValid(node, null);
 processFootMesh(node, snapData, isValid);
}
origin: us.ihmc/ihmc-quadruped-robotics-test

public double getBodyEstimateYaw()
{
 bodyOrientation.set(bodyCurrentOrientationQx.getDoubleValue(), bodyCurrentOrientationQy.getDoubleValue(), bodyCurrentOrientationQz.getDoubleValue(),
           bodyCurrentOrientationQs.getDoubleValue());
 return bodyOrientation.getYaw();
}
origin: us.ihmc/ihmc-humanoid-robotics

@Override
public void adjustFootstepWithoutHeightmap(FootstepDataMessage footstep, double height, Vector3D planeNormal)
{
 Point3D position = footstep.getLocation();
 Quaternion orientation = footstep.getOrientation();
 RigidBodyTransform solePose = new RigidBodyTransform();
 double yaw = orientation.getYaw();
 RotationTools.computeQuaternionFromYawAndZNormal(yaw, planeNormal, orientation);
 position.setZ(height);
}
origin: us.ihmc/ihmc-robotics-toolkit-test

@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout = 30000)
public void testRandomGetQuaternionFromYawAndZNormal()
{
 int numTests = 100;
 Random random = new Random(7362L);
 Vector3D normal = new Vector3D();
 Quaternion quatSolution = new Quaternion();
 for (int i = 0; i < numTests; i++)
 {
   Quaternion quatToPack = RandomGeometry.nextQuaternion(random);
   RotationMatrix rotationMatrixToPack = new RotationMatrix();
   double yaw = quatToPack.getYaw();
   rotationMatrixToPack.set(quatToPack);
   rotationMatrixToPack.getColumn(2, normal);
   RotationTools.computeQuaternionFromYawAndZNormal(yaw, normal, quatSolution);
   boolean quaternionsAreEqual = RotationTools.quaternionEpsilonEquals(quatToPack, quatSolution, EPSILON);
   assertTrue(quaternionsAreEqual);
 }
}
origin: us.ihmc/ihmc-robotics-toolkit-test

Assert.assertEquals(polygonPose.getOrientation().getYaw(), -Math.PI / 4, tolerance);
origin: us.ihmc/euclid-test

assertEquals(ypr.getYaw(), q.getYaw(), getEpsilon());
assertEquals(ypr.getPitch(), q.getPitch(), getEpsilon());
assertEquals(ypr.getRoll(), q.getRoll(), getEpsilon());
origin: us.ihmc/ihmc-humanoid-robotics

orientation.set(originalFootstepFound.getOrientation());
orientation.getColumn(2, zOrientation);
double originalYaw = originalFootstepFound.getOrientation().getYaw();
origin: us.ihmc/ihmc-humanoid-robotics

protected Footstep createFootstepPlacedAtBipedfootLocation(RobotSide side)
{
 ReferenceFrame soleFrame = soleFrames.get(side);
 Vector3D translation = new Vector3D();
 Quaternion rotation = new Quaternion();
 soleFrame.getTransformToWorldFrame().getTranslation(translation);
 soleFrame.getTransformToWorldFrame().getRotation(rotation);
 FramePose2D solePose2d = new FramePose2D(soleFrame, new Point2D(translation.getX(), translation.getY()), rotation.getYaw());
 Footstep foot = createFootstep(side, solePose2d);
 return foot;
}
origin: us.ihmc/ihmc-simulation-toolkit-test

public void testFootstepAndPointsFromDataFile() throws NumberFormatException, InsufficientDataException, IOException
{
 QuadTreeFootstepSnappingParameters snappingParameters = new AtlasFootstepSnappingParameters();
 ConvexHullFootstepSnapper footstepSnapper = new ConvexHullFootstepSnapper(new SimpleFootstepValueFunction(snappingParameters), snappingParameters);
 double maskSafetyBuffer = 0.01;
 double boundingBoxDimension = 0.3;
 footstepSnapper.setUseMask(true, maskSafetyBuffer, boundingBoxDimension);
 String baseName = "footstepListsForTesting/";
 String resourceName = baseName + "DataFromConvexHullSnapper1422988400956.txt";
 InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream(resourceName);
 FootstepPointsDataReader dataReader = new FootstepPointsDataReader(resourceAsStream);
 FootstepDataMessage footstepData = new FootstepDataMessage();
 footstepData.setRobotSide(RobotSide.LEFT.toByte());
 FootSpoof spoof = new FootSpoof("basicSpoof");
 FramePose2D desiredPose = new FramePose2D(ReferenceFrame.getWorldFrame());
 List<Point3D> listOfPoints = new ArrayList<>();
 while (dataReader.hasAnotherFootstepAndPoints())
 {
   listOfPoints = dataReader.getNextSetPointsAndFootstep(footstepData);
   desiredPose.setIncludingFrame(ReferenceFrame.getWorldFrame(), footstepData.getLocation().getX(), footstepData.getLocation().getY(),
                    footstepData.getOrientation().getYaw());
   Footstep footstep = footstepSnapper.generateFootstepUsingHeightMap(desiredPose, spoof.getRigidBody(), spoof.getSoleFrame(),
              RobotSide.fromByte(footstepData.getRobotSide()), listOfPoints, 0.0);
   assertTrue(footstep.getFootstepType() != Footstep.FootstepType.BAD_FOOTSTEP);
 }
}
origin: us.ihmc/ihmc-humanoid-robotics

double yaw = orientation.getYaw();
addLowerBoundaryPointsToHullPointList(convexHullPointsList, position.getX(), position.getY(), yaw);
origin: us.ihmc/euclid-test

quaternion = EuclidCoreRandomTools.nextQuaternion(random);
allDoubles = new Pose3D(x, y, z, quaternion.getYaw(), quaternion.getPitch(), quaternion.getRoll());
assertEquals(quaternion.getYaw(), allDoubles.getYaw(), EPSILON);
assertEquals(quaternion.getPitch(), allDoubles.getPitch(), EPSILON);
assertEquals(quaternion.getRoll(), allDoubles.getRoll(), EPSILON);
assertEquals(y, fromComponents.getY(), EPSILON);
assertEquals(z, fromComponents.getZ(), EPSILON);
assertEquals(quaternion.getYaw(), fromComponents.getYaw(), EPSILON);
assertEquals(quaternion.getPitch(), fromComponents.getPitch(), EPSILON);
assertEquals(quaternion.getRoll(), fromComponents.getRoll(), EPSILON);
assertEquals(y, fromRBT.getY(), EPSILON);
assertEquals(z, fromRBT.getZ(), EPSILON);
assertEquals(quaternion.getYaw(), fromRBT.getYaw(), EPSILON);
assertEquals(quaternion.getPitch(), fromRBT.getPitch(), EPSILON);
assertEquals(quaternion.getRoll(), fromRBT.getRoll(), EPSILON);
origin: us.ihmc/ihmc-humanoid-robotics

double yaw = orientation.getYaw();
origin: us.ihmc/ihmc-humanoid-robotics

@Override
public Footstep.FootstepType snapFootstep(FootstepDataMessage footstep, HeightMapWithPoints heightMap)
{
 FootstepDataMessage originalFootstepFound = new FootstepDataMessage(footstep);
 Point3D position = originalFootstepFound.getLocation();
 double yaw = originalFootstepFound.getOrientation().getYaw();
 if (!useMask)
 {
   pointList = heightMap.getAllPointsWithinArea(position.getX(), position.getY(), parameters.getBoundingSquareSizeLength(),
      parameters.getBoundingSquareSizeLength());
 }
 else
 {
   footstepMask.setPositionAndYaw(position.getX(), position.getY(), yaw);
   pointList = heightMap.getAllPointsWithinArea(position.getX(), position.getY(), parameters.getBoundingSquareSizeLength(),
      parameters.getBoundingSquareSizeLength(), footstepMask);
 }
 double height = heightMap.getHeightAtPoint(position.getX(), position.getY());
 return snapFootstep(footstep, pointList, height);
}
origin: us.ihmc/euclid-test

assertEquals(y, toSet.getY(), EPSILON);
assertEquals(z, toSet.getZ(), EPSILON);
assertEquals(quaternion.getYaw(), toSet.getYaw(), EPSILON);
assertEquals(quaternion.getPitch(), toSet.getPitch(), EPSILON);
assertEquals(quaternion.getRoll(), toSet.getRoll(), EPSILON);
quaternion = EuclidCoreRandomTools.nextQuaternion(random);
toSet.set(x, y, z, quaternion.getYaw(), quaternion.getPitch(), quaternion.getRoll());
assertEquals(quaternion.getYaw(), toSet.getYaw(), EPSILON);
assertEquals(quaternion.getPitch(), toSet.getPitch(), EPSILON);
assertEquals(quaternion.getRoll(), toSet.getRoll(), EPSILON);
assertEquals(y, toSet.getY(), EPSILON);
assertEquals(z, toSet.getZ(), EPSILON);
assertEquals(quaternion.getYaw(), toSet.getYaw(), EPSILON);
assertEquals(quaternion.getPitch(), toSet.getPitch(), EPSILON);
assertEquals(quaternion.getRoll(), toSet.getRoll(), EPSILON);
origin: us.ihmc/euclid-test

assertEquals(quaternion.getYaw(), orientation.getYaw(), yprEpsilon);
assertEquals(quaternion.getPitch(), orientation.getPitch(), yprEpsilon);
assertEquals(quaternion.getRoll(), orientation.getRoll(), yprEpsilon);
us.ihmc.euclid.tuple4DQuaterniongetYaw

Popular methods of Quaternion

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Runner (org.openjdk.jmh.runner)
  • Top plugins for WebStorm
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