Tabnine Logo
InverseDynamicsJoint.getTauMatrix
Code IndexAdd Tabnine to your IDE (free)

How to use
getTauMatrix
method
in
us.ihmc.robotics.screwTheory.InverseDynamicsJoint

Best Java code snippets using us.ihmc.robotics.screwTheory.InverseDynamicsJoint.getTauMatrix (Showing top 2 results out of 315)

origin: us.ihmc/IHMCRoboticsToolkit

public static DenseMatrix64F getTauMatrix(InverseDynamicsJoint[] jointsInOrder)
{
 int size = 0;
 for (InverseDynamicsJoint joint : jointsInOrder)
 {
   size += joint.getDegreesOfFreedom();
 }
 DenseMatrix64F tempMatrix = new DenseMatrix64F(InverseDynamicsJoint.maxDoF, 1);
 DenseMatrix64F ret = new DenseMatrix64F(size, 1);
 int startIndex = 0;
 for (InverseDynamicsJoint joint : jointsInOrder)
 {
   int endIndex = startIndex + joint.getDegreesOfFreedom() - 1;
   joint.getTauMatrix(tempMatrix);
   MatrixTools.setMatrixBlock(ret, startIndex, 0, tempMatrix, 0, 0, joint.getDegreesOfFreedom(), 1, 1.0);
   startIndex = endIndex + 1;
 }
 return ret;
}
origin: us.ihmc/IHMCRoboticsToolkit

private void storeJointState()
{
 ScrewTools.getDesiredJointAccelerationsMatrix(jointsInOrder, storedJointDesiredAccelerations);
 ScrewTools.getJointVelocitiesMatrix(jointsInOrder, storedJointVelocities);
 for (InverseDynamicsJoint joint : jointsInOrder)
 {
   DenseMatrix64F tauMatrix = new DenseMatrix64F(joint.getDegreesOfFreedom(), 1);
   joint.getTauMatrix(tauMatrix);
   DenseMatrix64F spatialForce = new DenseMatrix64F(SpatialForceVector.SIZE, 1);
   CommonOps.mult(joint.getMotionSubspace().getJacobianMatrix(), tauMatrix, spatialForce);
   Wrench jointWrench = storedJointWrenches.get(joint);
   jointWrench.set(joint.getFrameAfterJoint(), spatialForce);
   jointWrench.changeFrame(joint.getSuccessor().getBodyFixedFrame());
 }
}
us.ihmc.robotics.screwTheoryInverseDynamicsJointgetTauMatrix

Javadoc

Packs this joint desired force/torque into a column vector DenseMatrix64F. Here are a few examples:
  • For a RevoluteJoint, the desired joint torque is stored at the 1st row.
  • For a PrismaticJoint, the desired joint force is stored at the 1st row.
  • For a SixDoFJoint, the desired wrench (the 3D torque and 3D force) of this joint is stored from the rowStartth row to the ( rowStart + 6)th row, starting with the three components of the torque. Note: the joint wrench is the wrench of successorFrame expressed in successorFrame.

Popular methods of InverseDynamicsJoint

  • getFrameAfterJoint
  • getName
    Returns the reference to the name of this joint.
  • getSuccessor
    Returns the RigidBody that succeeds this joint. In other words, the RigidBody directly connected to
  • getPredecessor
    Returns the RigidBody that precedes this joint. In other words, the RigidBody directly connected to
  • getConfigurationMatrix
    Packs this joint's configuration into a column vector DenseMatrix64F. Here are a few examples: * Fo
  • getDegreesOfFreedom
    Returns the number of degrees of freedom that this joint has.
  • getFrameBeforeJoint
    Returns the the ReferenceFrame that is attached to the predecessor of this joint, namely the RigidBo
  • setConfiguration
    Sets the joint current configuration from the given column vector DenseMatrix64F. Here are a few exa
  • calculateJointDesiredChecksum
  • calculateJointStateChecksum
  • getConfigurationMatrixSize
    In most cases, this is the same as #getDegreesOfFreedom(). However, for SixDoFJoint and SphericalJoi
  • getDesiredAccelerationMatrix
    Packs this joint desired acceleration into a column vector DenseMatrix64F. Here are a few examples:
  • getConfigurationMatrixSize,
  • getDesiredAccelerationMatrix,
  • getDesiredSuccessorAcceleration,
  • getMotionSubspace,
  • getPredecessorTwist,
  • getSuccessorAcceleration,
  • getSuccessorTwist,
  • getVelocityMatrix,
  • setDesiredAcceleration

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Top PhpStorm plugins
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