Tabnine Logo
ReferenceFrameTools.constructFrameWithUnchangingTransformToParent
Code IndexAdd Tabnine to your IDE (free)

How to use
constructFrameWithUnchangingTransformToParent
method
in
us.ihmc.euclid.referenceFrame.tools.ReferenceFrameTools

Best Java code snippets using us.ihmc.euclid.referenceFrame.tools.ReferenceFrameTools.constructFrameWithUnchangingTransformToParent (Showing top 10 results out of 315)

origin: us.ihmc/euclid-frame

  /**
  * Use
  * {@link ReferenceFrameTools#constructFrameWithUnchangingTransformToParent(String, ReferenceFrame, RigidBodyTransform)}
  * instead.
  */
  @Deprecated
  public static ReferenceFrame constructFrameWithUnchangingTransformToParent(String frameName, ReferenceFrame parentFrame,
                                       RigidBodyTransform transformToParent)
  {
   return ReferenceFrameTools.constructFrameWithUnchangingTransformToParent(frameName, parentFrame, transformToParent);
  }
}
origin: us.ihmc/euclid-frame

/**
* Creates a reference frame with an immutable transform from its parent.
* <p>
* The {@code transformFromParent} should describe the pose of the parent frame expressed in this
* new frame.
* </p>
*
* @param frameName the name of the new frame.
* @param parentFrame the parent frame of the new reference frame.
* @param transformFromParent the transform that can be used to transform a geometry object from the
*           parent frame to this frame. Not modified.
* @return the new reference frame.
*/
public static ReferenceFrame constructFrameWithUnchangingTransformFromParent(String frameName, ReferenceFrame parentFrame,
                                      RigidBodyTransform transformFromParent)
{
 RigidBodyTransform transformToParent = new RigidBodyTransform(transformFromParent);
 transformToParent.invert();
 return constructFrameWithUnchangingTransformToParent(frameName, parentFrame, transformToParent);
}
origin: us.ihmc/euclid-frame

/**
* Creates a reference frame with an immutable translation offset from its parent.
* <p>
* The new reference frame has the same orientation as its parent frame.
* </p>
*
* @param frameName the name of the new frame.
* @param parentFrame the parent frame of the new reference frame.
* @param translationOffsetFromParent describes the position of the new reference frame's origin
*           expressed in the parent frame. Not modified.
* @return the new reference frame.
*/
public static ReferenceFrame constructFrameWithUnchangingTranslationFromParent(String frameName, ReferenceFrame parentFrame,
                                       Tuple3DReadOnly translationOffsetFromParent)
{
 RigidBodyTransform transformToParent = new RigidBodyTransform();
 transformToParent.setTranslation(translationOffsetFromParent);
 return constructFrameWithUnchangingTransformToParent(frameName, parentFrame, transformToParent);
}
origin: us.ihmc/mecano

intermediateFrames[dofIndex] = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent(frameName, parentFrame, identity);
origin: us.ihmc/mecano

intermediateFrames[dofIndex] = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent(frameName, parentFrame, identity);
origin: us.ihmc/mecano

intermediateFrames[dofIndex] = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent(frameName, parentFrame, identity);
origin: us.ihmc/euclid-test

@Ignore
@Test
public void testUniqueNaming()
{
 Random random = new Random(13L);
 ReferenceFrame someFrame = EuclidFrameRandomTools.nextReferenceFrame(random);
 String frameName = someFrame.getName();
 ReferenceFrame parent = someFrame.getParent();
 try
 {
   ReferenceFrameTools.constructFrameWithUnchangingTransformToParent(frameName, parent, new RigidBodyTransform());
   fail("Should have thrown a RuntimeException");
 }
 catch (RuntimeException e)
 {
   // good
 }
 ReferenceFrameTools.removeFrame(someFrame);
 someFrame = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent(frameName, parent, new RigidBodyTransform());
 someFrame.remove();
 someFrame = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent(frameName, parent, new RigidBodyTransform());
 ReferenceFrameTools.clearFrameTree(someFrame);
 someFrame = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent(frameName, parent, new RigidBodyTransform());
 ReferenceFrameTools.clearWorldFrameTree();
 ReferenceFrameTools.constructFrameWithUnchangingTransformToParent(frameName, parent, new RigidBodyTransform());
}
origin: us.ihmc/ihmc-common-walking-control-modules-test

referenceFrames.add(ReferenceFrameTools.constructFrameWithUnchangingTransformToParent("blop1Bis", ReferenceFrame.getWorldFrame(), randomTransform));
referenceFrames.add(ReferenceFrame.getWorldFrame());
referenceFrames.add(ReferenceFrameTools.constructFrameWithUnchangingTransformToParent("blop1", ReferenceFrame.getWorldFrame(), randomTransform));
referenceFrames.add(EuclidFrameRandomTools.nextReferenceFrame("blop2", random, ReferenceFrame.getWorldFrame()));
origin: us.ihmc/ihmc-common-walking-control-modules-test

FrameQuaternion c1_orientation = EuclidFrameRandomTools.nextFrameQuaternion(random, bodyFrame);
RigidBodyTransform c1ToBody = new RigidBodyTransform(c1_orientation, c1_origin);
ReferenceFrame c1 = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent("c1", bodyFrame, c1ToBody);
FramePoint3D c2_origin = EuclidFrameRandomTools.nextFramePoint3D(random, bodyFrame);
FrameQuaternion c2_orientation = EuclidFrameRandomTools.nextFrameQuaternion(random, bodyFrame);
RigidBodyTransform c2ToBody = new RigidBodyTransform(c2_orientation, c2_origin);
ReferenceFrame c2 = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent("c2", bodyFrame, c2ToBody);
ReferenceFrame c2_d = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent("c2_d", c1_d, c2c1);
origin: us.ihmc/euclid-test

ReferenceFrame constantFrame = ReferenceFrameTools.constructFrameWithUnchangingTransformToParent("constant" + i, world, expected);
us.ihmc.euclid.referenceFrame.toolsReferenceFrameToolsconstructFrameWithUnchangingTransformToParent

Javadoc

Creates a reference frame with an immutable transform to its parent.

The transformToParent should describe the pose of the new frame expressed in its parent frame.

Popular methods of ReferenceFrameTools

  • clearWorldFrameTree
    Will clear the entire frame tree of the ReferenceFrameTools#worldFrame tree.
  • constructARootFrame
    Construct a new z-up root reference frame. Most of the time, #worldFrame is the only root frame from
  • constructFrameWithUnchangingTransformFromParent
    Creates a reference frame with an immutable transform from its parent. The transformFromParent shoul
  • getWorldFrame
    Return the world reference frame that is a root reference frame. The world reference frame can be us
  • removeFrame
    Will remove the provided frame from the frame tree. This recursively disables all children of this f
  • clearFrameTree
    Will clear the entire frame tree that this frame is part of leaving only the root frame enabled. All
  • constructFrameWithUnchangingTranslationFromParent
    Creates a reference frame with an immutable translation offset from its parent. The new reference f
  • createPathFromRoot
    Creates an array containing all the reference frames starting from the root and ending at the given
  • getAllChildren

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • Path (java.nio.file)
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Github Copilot alternatives
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