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

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

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

origin: us.ihmc/IHMCRoboticsToolkit

private static LinkedHashMap<InverseDynamicsJoint, List<Twist>> extractTwistsFromJoints(InverseDynamicsJoint[] joints)
{
 checkJointOrder(joints);
 LinkedHashMap<InverseDynamicsJoint, List<Twist>> ret = new LinkedHashMap<InverseDynamicsJoint, List<Twist>>();
 for (int i = 0; i < joints.length; i++)
 {
   InverseDynamicsJoint joint = joints[i];
   ret.put(joint, joint.getMotionSubspace().unitTwistMap.get(joint));
 }
 return ret;
}
origin: us.ihmc/IHMCRoboticsToolkit

/**
* Creates a new Jacobian representing one joint.
* 
* @param joint the joint that this Jacobian considers.
* @param jacobianFrame the frame in which the resulting twist of the end effector with respect to the base frame will be expressed.
* @throws RuntimeException if the joint ordering is incorrect.
*/
public GeometricJacobian(InverseDynamicsJoint joint, ReferenceFrame jacobianFrame)
{
 this(joint, joint.getMotionSubspace().getAllUnitTwists(), jacobianFrame);
}
origin: us.ihmc/IHMCRoboticsToolkit

public void compute()
{
 int column = 0;
 for (int i = 0; i < rigidBodyList.size(); i++)
 {
   comScaledByMassMapIsUpdated.get(rigidBodyList.get(i)).setValue(false);
 }
 
 for (InverseDynamicsJoint joint : joints)
 {
   RigidBody childBody = joint.getSuccessor();
      FramePoint comPositionScaledByMass = getCoMScaledByMass(childBody);
   double subTreeMass = getSubTreeMass(childBody);
   GeometricJacobian motionSubspace = joint.getMotionSubspace();
   final List<Twist> allTwists = motionSubspace.getAllUnitTwists();
   for(int i = 0; i <  allTwists.size(); i++)
   {
    tempUnitTwist.set(allTwists.get(i));
    tempUnitTwist.changeFrame(rootFrame);
    setColumn(tempUnitTwist, comPositionScaledByMass, subTreeMass, column);
    column++;
   }
 }
 
 CommonOps.scale(inverseTotalMass, jacobianMatrix);
}
origin: us.ihmc/IHMCRoboticsToolkit

private void setOffDiagonalTerms(int i)
{
 int parentIndex;
 int j = i;
 while (isValidParentIndex(parentIndex = parentMap[j]))
 {
   ReferenceFrame parentFrame = allRigidBodiesInOrder[parentIndex].getInertia().getExpressedInFrame();
   changeFrameOfMomenta(parentFrame);
   j = parentIndex;
   GeometricJacobian motionSubspace = allRigidBodiesInOrder[j].getParentJoint().getMotionSubspace();
   setMassMatrixPart(i, j, motionSubspace);
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

GeometricJacobian motionSubspace = inverseDynamicsJoint.getMotionSubspace();
for (Twist twist : motionSubspace.getAllUnitTwists())
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());
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public void compute()
{
 MatrixTools.setToZero(massMatrix);
 for (int i = 0; i < allRigidBodiesInOrder.length; i++)
 {
   crbInertiasInOrder[i].set(allRigidBodiesInOrder[i].getInertia());
 }
 for (int i = allRigidBodiesInOrder.length - 1; i >= 0; i--)
 {
   RigidBody currentBody = allRigidBodiesInOrder[i];
   InverseDynamicsJoint parentJoint = currentBody.getParentJoint();
   CompositeRigidBodyInertia currentBodyInertia = crbInertiasInOrder[i];
   GeometricJacobian motionSubspace = parentJoint.getMotionSubspace();
      setUnitMomenta(currentBodyInertia, motionSubspace);
   setDiagonalTerm(i, motionSubspace);
   setOffDiagonalTerms(i);
   buildCrbInertia(i);
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

tempTwist.set(columnJoint.getMotionSubspace().getAllUnitTwists().get(k));
tempTwist.changeFrame(inertia.getExpressedInFrame());
tempMomentum.compute(inertia, tempTwist);
origin: us.ihmc/IHMCRoboticsToolkit

tempTwist.set(jointList[j].getMotionSubspace().getAllUnitTwists().get(k));
tempTwist.changeFrame(rigidBodies[i].getInertia().getExpressedInFrame());
us.ihmc.robotics.screwTheoryInverseDynamicsJointgetMotionSubspace

Javadoc

Returns the motion subspace of this joint in the form of GeometricJacobian. Its number of columns is equal to the number of degrees of freedom of this joint. It is expressed in:
  • afterJointFrame for: SixDoFJoint, SphericalJoint, PlanarJoint.
  • successorFrame for: RevoluteJoint and PrismaticJoint.

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,
  • getPredecessorTwist,
  • getSuccessorAcceleration,
  • getSuccessorTwist,
  • getTauMatrix,
  • 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 plugins for Android Studio
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