Tabnine Logo
InverseKinematicsCommandList.getNumberOfCommands
Code IndexAdd Tabnine to your IDE (free)

How to use
getNumberOfCommands
method
in
us.ihmc.commonWalkingControlModules.controllerCore.command.inverseKinematics.InverseKinematicsCommandList

Best Java code snippets using us.ihmc.commonWalkingControlModules.controllerCore.command.inverseKinematics.InverseKinematicsCommandList.getNumberOfCommands (Showing top 5 results out of 315)

origin: us.ihmc/CommonWalkingControlModules

public InverseKinematicsCommand<?> pollCommand()
{
 if (commandList.isEmpty())
   return null;
 else
   return commandList.remove(getNumberOfCommands() - 1);
}
origin: us.ihmc/CommonWalkingControlModules

private void submitInverseKinematicsCommandList(InverseKinematicsCommandList command)
{
 while (command.getNumberOfCommands() > 0)
   submitInverseKinematicsCommand(command.pollCommand());
}
origin: us.ihmc/CommonWalkingControlModules

@Override
public void set(InverseKinematicsCommandList other)
{
 clear();
 for (int i = 0; i < other.getNumberOfCommands(); i++)
   addCommand(other.getCommand(i));
}
origin: us.ihmc/ihmc-whole-body-controller

public void copyFromOther(InverseKinematicsCommandList other)
{
 clear();
 for (int i = 0; i < other.getNumberOfCommands(); i++)
 {
   InverseKinematicsCommand<?> commandToCopy = other.getCommand(i);
   switch (commandToCopy.getCommandType())
   {
   case JOINTSPACE:
    copyJointspaceVelocityCommand((JointspaceVelocityCommand) commandToCopy);
    break;
   case MOMENTUM:
    copyMomentumCommand((MomentumCommand) commandToCopy);
    break;
   case TASKSPACE:
    copySpatialVelocityCommand((SpatialVelocityCommand) commandToCopy);
   default:
    throw new RuntimeException("The command type: " + commandToCopy.getCommandType() + " is not handled.");
   }
 }
}
origin: us.ihmc/IHMCWholeBodyController

public void copyFromOther(InverseKinematicsCommandList other)
{
 clear();
 for (int i = 0; i < other.getNumberOfCommands(); i++)
 {
   InverseKinematicsCommand<?> commandToCopy = other.getCommand(i);
   switch (commandToCopy.getCommandType())
   {
   case JOINTSPACE:
    copyJointspaceVelocityCommand((JointspaceVelocityCommand) commandToCopy);
    break;
   case MOMENTUM:
    copyMomentumCommand((MomentumCommand) commandToCopy);
    break;
   case TASKSPACE:
    copySpatialVelocityCommand((SpatialVelocityCommand) commandToCopy);
   default:
    throw new RuntimeException("The command type: " + commandToCopy.getCommandType() + " is not handled.");
   }
 }
}
us.ihmc.commonWalkingControlModules.controllerCore.command.inverseKinematicsInverseKinematicsCommandListgetNumberOfCommands

Popular methods of InverseKinematicsCommandList

  • addCommand
  • <init>
  • clear
  • getCommand
  • pollCommand
  • set

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • getApplicationContext (Context)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top 12 Jupyter Notebook extensions
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