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

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

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

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-avatar-interfaces

@Override
protected InverseKinematicsCommandList getAdditionalInverseKinematicsCommands()
{
 InverseKinematicsCommandList commands = new InverseKinematicsCommandList();
 commands.addCommand(createJointLimitReductionCommand());
 return commands;
}
origin: us.ihmc/CommonWalkingControlModules

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

/**
* Adds command to be considered by the inverse kinematics controller core.
* @param inverseKinematicsCommand command to add to the list
*/
public void addInverseKinematicsCommand(InverseKinematicsCommand<?> inverseKinematicsCommand)
{
 if (inverseKinematicsCommand != null)
   inverseKinematicsCommandList.addCommand(inverseKinematicsCommand);
}
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/CommonWalkingControlModules

/**
* Clears all the command lists.
*/
public void clear()
{
 inverseDynamicsCommandList.clear();
 feedbackControlCommandList.clear();
 inverseKinematicsCommandList.clear();
 lowLevelOneDoFJointDesiredDataHolder.clear();
}
origin: us.ihmc/CommonWalkingControlModules

/**
* Class that contains the different lists that are submitted the whole body controller core.
* All desired behaviors to be considered must be submitted to the whole body controller core
* through this command.
* @param controllerCoreMode desired controller core mode. Choose between Inverse Dynamics, Inverse Kinematics, or Virtual Model Control.
*/
public ControllerCoreCommand(WholeBodyControllerCoreMode controllerCoreMode)
{
 this.controllerCoreMode = controllerCoreMode;
 inverseDynamicsCommandList = new InverseDynamicsCommandList();
 virtualModelControlCommandList = new InverseDynamicsCommandList();
 feedbackControlCommandList = new FeedbackControlCommandList();
 inverseKinematicsCommandList = new InverseKinematicsCommandList();
 lowLevelOneDoFJointDesiredDataHolder = new LowLevelOneDoFJointDesiredDataHolder();
}
origin: us.ihmc/CommonWalkingControlModules

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

private void copyJointspaceVelocityCommand(JointspaceVelocityCommand commandToCopy)
{
 JointspaceVelocityCommand localCommand = jointspaceVelocityCommands.add();
 localCommand.set(commandToCopy);
 inverseKinematicsCommandList.addCommand(localCommand);
}
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.");
   }
 }
}
origin: us.ihmc/IHMCWholeBodyController

  private void clear()
  {
   inverseKinematicsCommandList.clear();
   jointspaceVelocityCommands.clear();
   spatialVelocityCommands.clear();
   momentumCommands.clear();
  }
}
origin: us.ihmc/DarpaRoboticsChallenge

private InverseKinematicsCommandList computeInverseKinematicsCommands()
 InverseKinematicsCommandList ret = new InverseKinematicsCommandList();
    spatialVelocityCommand.set(desiredHandTwist, selectionMatrix);
    spatialVelocityCommand.setWeight(handWeight.getDoubleValue());
    ret.addCommand(spatialVelocityCommand);
    spatialVelocityCommand.set(desiredFootTwist, selectionMatrix);
    spatialVelocityCommand.setWeight(footWeight.getDoubleValue());
    ret.addCommand(spatialVelocityCommand);
   momentumCommand.setLinearMomentumXY(desiredMomentumXY);
   momentumCommand.setWeight(momentumWeight.getDoubleValue());
   ret.addCommand(momentumCommand);
   spatialVelocityCommand.setAngularVelocity(chestFrame, elevatorFrame, desiredChestAngularVelocity);
   spatialVelocityCommand.setWeight(chestWeight.getDoubleValue());
   ret.addCommand(spatialVelocityCommand);
   spatialVelocityCommand.setAngularVelocity(pelvisFrame, elevatorFrame, desiredPelvisAngularVelocity);
   spatialVelocityCommand.setWeight(pelvisOrientationWeight.getDoubleValue());
   ret.addCommand(spatialVelocityCommand);
 ret.addCommand(privilegedConfigurationCommandReference.getAndSet(null));
 ret.addCommand(jointLimitReductionCommand);
origin: us.ihmc/IHMCWholeBodyController

private void copySpatialVelocityCommand(SpatialVelocityCommand commandToCopy)
{
 SpatialVelocityCommand localCommand = spatialVelocityCommands.add();
 localCommand.set(commandToCopy);
 inverseKinematicsCommandList.addCommand(localCommand);
}
origin: us.ihmc/ihmc-whole-body-controller

  private void clear()
  {
   inverseKinematicsCommandList.clear();
   jointspaceVelocityCommands.clear();
   spatialVelocityCommands.clear();
   momentumCommands.clear();
  }
}
origin: us.ihmc/IHMCAvatarInterfaces

private InverseKinematicsCommandList computeInverseKinematicsCommands()
 InverseKinematicsCommandList ret = new InverseKinematicsCommandList();
    spatialVelocityCommand.set(desiredHandTwist, selectionMatrix);
    spatialVelocityCommand.setWeight(handWeight.getDoubleValue());
    ret.addCommand(spatialVelocityCommand);
    spatialVelocityCommand.set(desiredFootTwist, selectionMatrix);
    spatialVelocityCommand.setWeight(footWeight.getDoubleValue());
    ret.addCommand(spatialVelocityCommand);
   momentumCommand.setLinearMomentumXY(desiredMomentumXY);
   momentumCommand.setWeight(momentumWeight.getDoubleValue());
   ret.addCommand(momentumCommand);
   spatialVelocityCommand.set(desiredChestTwist, chestSelectionMatrix);
   spatialVelocityCommand.setWeight(chestWeight.getDoubleValue());
   ret.addCommand(spatialVelocityCommand);
   spatialVelocityCommand.set(desiredPelvisTwist, pelvisSelectionMatrix);
   spatialVelocityCommand.setWeight(pelvisOrientationWeight.getDoubleValue());
   ret.addCommand(spatialVelocityCommand);
 ret.addCommand(privilegedConfigurationCommandReference.getAndSet(null));
 ret.addCommand(jointLimitReductionCommand);
origin: us.ihmc/ihmc-whole-body-controller

private void copyMomentumCommand(MomentumCommand commandToCopy)
{
 MomentumCommand localCommand = momentumCommands.add();
 localCommand.set(commandToCopy);
 inverseKinematicsCommandList.addCommand(localCommand);
}
origin: us.ihmc/ihmc-whole-body-controller

private void copySpatialVelocityCommand(SpatialVelocityCommand commandToCopy)
{
 SpatialVelocityCommand localCommand = spatialVelocityCommands.add();
 localCommand.set(commandToCopy);
 inverseKinematicsCommandList.addCommand(localCommand);
}
origin: us.ihmc/IHMCWholeBodyController

private void copyJointspaceVelocityCommand(JointspaceVelocityCommand commandToCopy)
{
 JointspaceVelocityCommand localCommand = jointspaceVelocityCommands.add();
 localCommand.set(commandToCopy);
 inverseKinematicsCommandList.addCommand(localCommand);
}
origin: us.ihmc/IHMCWholeBodyController

private void copyMomentumCommand(MomentumCommand commandToCopy)
{
 MomentumCommand localCommand = momentumCommands.add();
 localCommand.set(commandToCopy);
 inverseKinematicsCommandList.addCommand(localCommand);
}
us.ihmc.commonWalkingControlModules.controllerCore.command.inverseKinematicsInverseKinematicsCommandList

Most used methods

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

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • findViewById (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • 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