congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
WrenchCalculatorInterface.getName
Code IndexAdd Tabnine to your IDE (free)

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

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

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

public ForceSensorHysteresisCreator(double totalRobotMass, String parentJointName, WrenchCalculatorInterface wrenchCalculatorInterface)
{
 super(wrenchCalculatorInterface.getName() + "HysteresisCreator");
 
 this.wrenchCalculatorInterface = wrenchCalculatorInterface;
 this.wrenchCalculatorInterface.setDoWrenchCorruption(true);
 this.totalRobotWeightInNewtons = totalRobotMass * 9.81;
 this.normalForceThreshold = totalRobotWeightInNewtons * PERCENT_OF_FULL_WEIGHT_TO_TRIGGER_HYSTERESIS/100;
 
 hysteresisInZDirection = new YoDouble(parentJointName + "ForceSensorZHysteresis", registry);
 hysteresisInZDirection.set(0);
 
 this.isForcePastThresholdFiltered = new GlitchFilteredYoBoolean(parentJointName + "ForceSensorZHysteresisIsForcePastThreshold", registry, ITERS_BEFORE_HYSTERESIS_TRIGGERS);
}
origin: us.ihmc/ihmc-avatar-interfaces-test

public ArrayList<RobotController> getFootForceSensorHysteresisCreators()
{
 SideDependentList<ArrayList<WrenchCalculatorInterface>> footForceSensors = new SideDependentList<ArrayList<WrenchCalculatorInterface>>();
 packFootForceSensors(footForceSensors);
 ArrayList<RobotController> footForceSensorSignalCorruptors = new ArrayList<RobotController>();
 for (RobotSide robotSide : RobotSide.values)
 {
   for (int i = 0; i < footForceSensors.get(robotSide).size(); i++)
   {
    ForceSensorHysteresisCreator forceSensorSignalCorruptor = new ForceSensorHysteresisCreator(sdfRobot.computeCenterOfMass(new Point3D()),
                                                  footForceSensors.get(robotSide).get(i).getName(),
                                                  footForceSensors.get(robotSide).get(i));
    footForceSensorSignalCorruptors.add(forceSensorSignalCorruptor);
   }
 }
 return footForceSensorSignalCorruptors;
}
us.ihmc.simulationconstructionset.simulatedSensorsWrenchCalculatorInterfacegetName

Popular methods of WrenchCalculatorInterface

  • calculate
  • getWrench
  • getJoint
  • getTransformToParentJoint
  • corruptWrenchElement
  • setDoWrenchCorruption

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • putExtra (Intent)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JFileChooser (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now