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

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

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

origin: us.ihmc/IHMCRoboticsToolkit

public static int computeDegreesOfFreedom(Iterable<? extends InverseDynamicsJoint> jointList)
{
 int ret = 0;
 for (InverseDynamicsJoint joint : jointList)
 {
   ret += joint.getDegreesOfFreedom();
 }
 return ret;
}
origin: us.ihmc/IHMCRoboticsToolkit

public static int computeDegreesOfFreedom(InverseDynamicsJoint[] jointList)
{
 int ret = 0;
 for (InverseDynamicsJoint joint : jointList)
 {
   ret += joint.getDegreesOfFreedom();
 }
 return ret;
}
origin: us.ihmc/IHMCRoboticsToolkit

public static int computeDegreesOfFreedom(List<? extends InverseDynamicsJoint> jointList)
{
 int ret = 0;
 for (int i = 0; i < jointList.size(); i++)
 {
   ret += jointList.get(i).getDegreesOfFreedom();
 }
 return ret;
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void getJointVelocitiesMatrix(Iterable<? extends InverseDynamicsJoint> joints, DenseMatrix64F jointVelocitiesMatrixToPack)
{
 int rowStart = 0;
 for (InverseDynamicsJoint joint : joints)
 {
   int dof = joint.getDegreesOfFreedom();
   joint.getVelocityMatrix(jointVelocitiesMatrixToPack, rowStart);
   rowStart += dof;
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

private static int[] createMassMatrixIndices(RigidBody[] rigidBodiesInOrder)
{
 int[] ret = new int[rigidBodiesInOrder.length];
 int currentIndex = 0;
 for (int i = 0; i < rigidBodiesInOrder.length; i++)
 {
   RigidBody rigidBody = rigidBodiesInOrder[i];
   ret[i] = currentIndex;
   currentIndex += rigidBody.getParentJoint().getDegreesOfFreedom();
 }
 return ret;
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void getJointVelocitiesMatrix(InverseDynamicsJoint[] joints, DenseMatrix64F jointVelocitiesMatrixToPack)
{
 int rowStart = 0;
 for (InverseDynamicsJoint joint : joints)
 {
   int dof = joint.getDegreesOfFreedom();
   joint.getVelocityMatrix(jointVelocitiesMatrixToPack, rowStart);
   rowStart += dof;
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void getJointPositions(InverseDynamicsJoint[] joints, DenseMatrix64F jointPositionsToPack)
{
 int rowStart = 0;
 for (InverseDynamicsJoint joint : joints)
 {
   joint.getConfigurationMatrix(jointPositionsToPack, rowStart);
   rowStart += joint.getDegreesOfFreedom();
   if (joint instanceof SixDoFJoint || joint instanceof SphericalJoint)
    rowStart++; // Because of stupid quaternions
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void setJointPositions(InverseDynamicsJoint[] joints, DenseMatrix64F jointPositions)
{
 int rowStart = 0;
 for (InverseDynamicsJoint joint : joints)
 {
   joint.setConfiguration(jointPositions, rowStart);
   rowStart += joint.getDegreesOfFreedom();
   if (joint instanceof SixDoFJoint || joint instanceof SphericalJoint)
    rowStart++; // Because of stupid quaternions
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void getDesiredJointAccelerationsMatrix(InverseDynamicsJoint[] joints, DenseMatrix64F desiredJointAccelerationsMatrixToPack)
{
 int rowStart = 0;
 for (InverseDynamicsJoint joint : joints)
 {
   int dof = joint.getDegreesOfFreedom();
   joint.getDesiredAccelerationMatrix(desiredJointAccelerationsMatrixToPack, rowStart);
   rowStart += dof;
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void setVelocities(InverseDynamicsJoint[] jointList, DenseMatrix64F jointVelocities)
{
 int rowStart = 0;
 for (InverseDynamicsJoint joint : jointList)
 {
   joint.setVelocity(jointVelocities, rowStart);
   rowStart += joint.getDegreesOfFreedom();
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void setDesiredAccelerations(InverseDynamicsJoint[] jointList, DenseMatrix64F jointAccelerations)
{
 int rowStart = 0;
 for (InverseDynamicsJoint joint : jointList)
 {
   joint.setDesiredAcceleration(jointAccelerations, rowStart);
   rowStart += joint.getDegreesOfFreedom();
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

private static int determineSize(RigidBody[] rigidBodiesInOrder)
{
 int ret = 0;
 for (RigidBody rigidBody : rigidBodiesInOrder)
 {
   ret += rigidBody.getParentJoint().getDegreesOfFreedom();
 }
 return ret;
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void computeIndexForJoint(InverseDynamicsJoint[] jointsInOrder, TIntArrayList listToPackIndices, InverseDynamicsJoint jointToComputeIndicesFor)
{
 int startIndex = 0;
 for (int i = 0; i < jointsInOrder.length; i++)
 {
   int nDegreesOfFreedom = jointsInOrder[i].getDegreesOfFreedom();
   if (jointsInOrder[i] == jointToComputeIndicesFor)
   {
    for (int k = startIndex; k < startIndex + nDegreesOfFreedom; k++)
    {
      listToPackIndices.add(k);
    }
   }
   startIndex += nDegreesOfFreedom;
 }
}
origin: us.ihmc/CommonWalkingControlModules

private void checkConsistency(InverseDynamicsJoint joint, DenseMatrix64F desiredVelocity)
{
 MathTools.checkIfEqual(joint.getDegreesOfFreedom(), desiredVelocity.getNumRows());
}
origin: us.ihmc/CommonWalkingControlModules

private void checkConsistency(InverseDynamicsJoint joint, DenseMatrix64F desiredAcceleration)
{
 MathTools.checkIfEqual(joint.getDegreesOfFreedom(), desiredAcceleration.getNumRows());
}
origin: us.ihmc/IHMCRoboticsToolkit

public static void setRandomVelocities(InverseDynamicsJoint[] joints, Random random)
{
 for (InverseDynamicsJoint joint : joints)
 {
   DenseMatrix64F jointVelocity = new DenseMatrix64F(joint.getDegreesOfFreedom(), 1);
   RandomMatrices.setRandom(jointVelocity, random);
   joint.setVelocity(jointVelocity, 0);
 }
}
origin: us.ihmc/IHMCRoboticsToolkit

private void setDesiredAccelerationsToZero()
{
 for (InverseDynamicsJoint joint : jointsInOrder)
 {
   joint.setDesiredAccelerationToZero();
   joint.setVelocity(new DenseMatrix64F(joint.getDegreesOfFreedom(), 1), 0);
 }
}
origin: us.ihmc/CommonWalkingControlModules

public void setOneDoFJointDesiredAcceleration(int jointIndex, double desiredVelocity)
{
 MathTools.checkIfEqual(joints.get(jointIndex).getDegreesOfFreedom(), 1);
 desiredVelocities.get(jointIndex).reshape(1, 1);
 desiredVelocities.get(jointIndex).set(0, 0, desiredVelocity);
}
origin: us.ihmc/CommonWalkingControlModules

public void setOneDoFJointDesiredAcceleration(int jointIndex, double desiredAcceleration)
{
 MathTools.checkIfEqual(joints.get(jointIndex).getDegreesOfFreedom(), 1);
 desiredAccelerations.get(jointIndex).reshape(1, 1);
 desiredAccelerations.get(jointIndex).set(0, 0, desiredAcceleration);
}
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.screwTheoryInverseDynamicsJointgetDegreesOfFreedom

Javadoc

Returns the number of degrees of freedom that this joint has.

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
  • 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:
  • getDesiredSuccessorAcceleration
    Packs the SpatialAccelerationVector (the 3D angular and linear accelerations) of this joint's succes
  • getDesiredAccelerationMatrix,
  • getDesiredSuccessorAcceleration,
  • getMotionSubspace,
  • getPredecessorTwist,
  • getSuccessorAcceleration,
  • getSuccessorTwist,
  • getTauMatrix,
  • getVelocityMatrix,
  • setDesiredAcceleration

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • startActivity (Activity)
  • findViewById (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 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