Tabnine Logo
WrenchCalculatorInterface.getJoint
Code IndexAdd Tabnine to your IDE (free)

How to use
getJoint
method
in
us.ihmc.simulationconstructionset.simulatedSensors.WrenchCalculatorInterface

Best Java code snippets using us.ihmc.simulationconstructionset.simulatedSensors.WrenchCalculatorInterface.getJoint (Showing top 4 results out of 315)

origin: us.ihmc/ihmc-avatar-interfaces-test

public void packFootForceSensors(SideDependentList<ArrayList<WrenchCalculatorInterface>> footForceSensors)
{
 ArrayList<WrenchCalculatorInterface> forceSensors = new ArrayList<WrenchCalculatorInterface>();
 sdfRobot.getForceSensors(forceSensors);
 SideDependentList<String> jointNamesBeforeFeet = sdfRobot.getJointNamesBeforeFeet();
 for (RobotSide robotSide : RobotSide.values)
 {
   footForceSensors.put(robotSide, new ArrayList<WrenchCalculatorInterface>());
   for (int i = 0; i < forceSensors.size(); i++)
   {
    if (forceSensors.get(i).getJoint().getName().equals(jointNamesBeforeFeet.get(robotSide)))
    {
      footForceSensors.get(robotSide).add(forceSensors.get(i));
    }
   }
 }
}
origin: us.ihmc/ihmc-simulation-toolkit

private LinkedHashMap<WrenchCalculatorInterface, ForceSensorDefinition> generateForceSensorDefinitions(
   ArrayList<WrenchCalculatorInterface> groundContactPointBasedWrenchCalculators)
{
 LinkedHashMap<WrenchCalculatorInterface, ForceSensorDefinition> forceSensorDefinitions = new LinkedHashMap<WrenchCalculatorInterface, ForceSensorDefinition>();
 for (WrenchCalculatorInterface groundContactPointBasedWrenchCalculator : groundContactPointBasedWrenchCalculators)
 {
   Joint forceTorqueSensorJoint = groundContactPointBasedWrenchCalculator.getJoint();
   OneDoFJointBasics sensorParentJoint;
   if (forceTorqueSensorJoint instanceof OneDegreeOfFreedomJoint)
    sensorParentJoint = scsToInverseDynamicsJointMap.getInverseDynamicsOneDoFJoint((OneDegreeOfFreedomJoint) forceTorqueSensorJoint);
   else
    throw new RuntimeException("Force sensor is only supported for OneDegreeOfFreedomJoint.");
   RigidBodyTransform transformFromSensorToParentJoint = new RigidBodyTransform();
   groundContactPointBasedWrenchCalculator.getTransformToParentJoint(transformFromSensorToParentJoint);
   ForceSensorDefinition sensorDefinition = new ForceSensorDefinition(groundContactPointBasedWrenchCalculator.getName(), sensorParentJoint.getSuccessor(), transformFromSensorToParentJoint);
   forceSensorDefinitions.put(groundContactPointBasedWrenchCalculator, sensorDefinition);
 }
 return forceSensorDefinitions;
}
origin: us.ihmc/IHMCSimulationToolkit

private LinkedHashMap<WrenchCalculatorInterface, ForceSensorDefinition> generateForceSensorDefinitions(
   ArrayList<WrenchCalculatorInterface> groundContactPointBasedWrenchCalculators)
{
 LinkedHashMap<WrenchCalculatorInterface, ForceSensorDefinition> forceSensorDefinitions = new LinkedHashMap<WrenchCalculatorInterface, ForceSensorDefinition>();
 for (WrenchCalculatorInterface groundContactPointBasedWrenchCalculator : groundContactPointBasedWrenchCalculators)
 {
   OneDegreeOfFreedomJoint forceTorqueSensorJoint = groundContactPointBasedWrenchCalculator.getJoint();
   OneDoFJoint sensorParentJoint = scsToInverseDynamicsJointMap.getInverseDynamicsOneDoFJoint(forceTorqueSensorJoint);
   RigidBodyTransform transformFromSensorToParentJoint = new RigidBodyTransform();
   groundContactPointBasedWrenchCalculator.getTransformToParentJoint(transformFromSensorToParentJoint);
   ForceSensorDefinition sensorDefinition = new ForceSensorDefinition(groundContactPointBasedWrenchCalculator.getName(), sensorParentJoint.getSuccessor(), transformFromSensorToParentJoint);
   forceSensorDefinitions.put(groundContactPointBasedWrenchCalculator, sensorDefinition);
 }
 return forceSensorDefinitions;
}
origin: us.ihmc/ihmc-avatar-interfaces-test

Joint joint = groundContactPointBasedWrenchCalculator.getJoint();
OneDoFJointBasics oneDoFJoint;
if (joint instanceof OneDegreeOfFreedomJoint)
us.ihmc.simulationconstructionset.simulatedSensorsWrenchCalculatorInterfacegetJoint

Popular methods of WrenchCalculatorInterface

  • calculate
  • getWrench
  • getName
  • getTransformToParentJoint
  • corruptWrenchElement
  • setDoWrenchCorruption

Popular in Java

  • Updating database using SQL prepared statement
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Table (org.hibernate.mapping)
    A relational table
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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