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

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

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

origin: us.ihmc/ihmc-simulation-toolkit

sensorProcessing.setForceSensorValue(forceTorqueSensors.get(i).getLeft(), forceTorqueSensor.getWrench());
origin: us.ihmc/IHMCSimulationToolkit

private void updateMeasurement()
{
 wrenchCalculatorInterface.calculate();
 MatrixTools.extractFrameTupleFromEJMLVector(measuredForce, wrenchCalculatorInterface.getWrench(), measurementFrame, 3);
 measuredForceWorld.setIncludingFrame(measuredForce);
 measuredForceWorld.changeFrame(worldFrame);
 yoMeasuredForceWorld.setAndMatchFrame(measuredForce);
}
origin: us.ihmc/IHMCSimulationToolkit

sensorProcessing.setForceSensorValue(forceTorqueSensors.get(i).getLeft(), forceTorqueSensor.getWrench());
origin: us.ihmc/ihmc-simulation-toolkit

@Override
public void read()
{
 // Think about adding root body acceleration to the fullrobotmodel
 readAndUpdateOneDoFJointPositionsVelocitiesAndAccelerations();
 readAndUpdateRootJointPositionAndOrientation();
 readAndUpdateRootJointAngularAndLinearVelocity();
 // Update frames after setting angular and linear velocities to correctly update zup frames
 updateReferenceFrames();
 long timestamp = Conversions.secondsToNanoseconds(robot.getTime());
 this.timestamp.set(timestamp);
 this.visionSensorTimestamp.set(timestamp);
 this.sensorHeadPPSTimetamp.set(timestamp);
 if (forceSensorDataHolderToUpdate != null)
 {
   for (Entry<ForceSensorDefinition, WrenchCalculatorInterface> forceTorqueSensorEntry : forceTorqueSensors.entrySet())
   {
    final WrenchCalculatorInterface forceTorqueSensor = forceTorqueSensorEntry.getValue();
    forceTorqueSensor.calculate();
    forceSensorDataHolderToUpdate.setForceSensorValue(forceTorqueSensorEntry.getKey(), forceTorqueSensor.getWrench());
   }
 }
}
origin: us.ihmc/ihmc-simulation-toolkit

@Override
public void read()
{
 readAndUpdateOneDoFJointPositionsVelocitiesAndAccelerations();
 readAndUpdateRootJointPositionAndOrientation();
 readAndUpdateRootJointAngularAndLinearVelocity();
 readAndUpdateIMUSensors();
 long timestamp = Conversions.secondsToNanoseconds(robot.getTime());
 sensorOutputMap.setTimestamp(timestamp);
 sensorOutputMap.setVisionSensorTimestamp(timestamp);
 sensorOutputMap.setSensorHeadPPSTimetamp(timestamp);
 
 if (forceSensorDataHolderToUpdate != null)
 {
   for (Entry<ForceSensorDefinition, WrenchCalculatorInterface> forceTorqueSensorEntry : forceTorqueSensors.entrySet())
   {
    final WrenchCalculatorInterface forceTorqueSensor = forceTorqueSensorEntry.getValue();
    forceTorqueSensor.calculate();
    forceSensorDataHolderToUpdate.setForceSensorValue(forceTorqueSensorEntry.getKey(), forceTorqueSensor.getWrench());
   }
 }
}
origin: us.ihmc/IHMCSimulationToolkit

@Override
public void read()
{
 // Think about adding root body acceleration to the fullrobotmodel
 readAndUpdateOneDoFJointPositionsVelocitiesAndAccelerations();
 readAndUpdateRootJointPositionAndOrientation();
 updateReferenceFrames();
 readAndUpdateRootJointAngularAndLinearVelocity();
 long timestamp = TimeTools.secondsToNanoSeconds(robot.getTime());
 this.timestamp.set(timestamp);
 this.visionSensorTimestamp.set(timestamp);
 this.sensorHeadPPSTimetamp.set(timestamp);
 if (forceSensorDataHolderToUpdate != null)
 {
   for (Entry<ForceSensorDefinition, WrenchCalculatorInterface> forceTorqueSensorEntry : forceTorqueSensors.entrySet())
   {
    final WrenchCalculatorInterface forceTorqueSensor = forceTorqueSensorEntry.getValue();
    forceTorqueSensor.calculate();
    forceSensorDataHolderToUpdate.setForceSensorValue(forceTorqueSensorEntry.getKey(), forceTorqueSensor.getWrench());
   }
 }
}
origin: us.ihmc/ihmc-avatar-interfaces-test

@Override
public void doControl()
{
 super.doControl();
 
 wrench = wrenchCalculatorInterface.getWrench();
 
 isNormalForcePastHysteresisThreshold();
 
 if(isForcePastThresholdFiltered.getBooleanValue() && unfilteredIsForcePastThresh) //take lots of true readings to turn on, only 1 to turn off
 {  
   hysteresisSampleCounter++;
   tmpHysteresis += wrench.get(Wrench.SIZE-1);
   hasNormalForceGonePastLimit = true;
 }
 else
 {
   if(hasNormalForceGonePastLimit)
   {
    hysteresisInZDirection.set(hysteresisInZDirection.getDoubleValue() + (tmpHysteresis/hysteresisSampleCounter)*HYSTERESIS_PERCENT_OF_LOAD/100);
    wrenchCalculatorInterface.corruptWrenchElement(Wrench.SIZE-1,hysteresisInZDirection.getDoubleValue());
    
    tmpHysteresis = 0;
    hysteresisSampleCounter = 0;
    hasNormalForceGonePastLimit = false;
   }
 } 
}
origin: us.ihmc/simulation-construction-set-test

DenseMatrix64F tauXFXAndFZ = calculator.getWrench();
assertEquals(1.0, tauXFXAndFZ.get(0, 0), epsilon);
assertEquals(0.0, tauXFXAndFZ.get(3, 0), epsilon);
DenseMatrix64F wholeWrench = calculator.getWrench();
assertTrue(wholeWrench.getNumRows() == 6);
assertEquals(wholeWrench.get(0,0), - 2.0, epsilon);
wholeWrench = calculator.getWrench();
assertTrue(wholeWrench.getNumRows() == 6);
assertEquals(wholeWrench.get(0,0), - 2.0, epsilon);
wholeWrench = calculator.getWrench();
assertTrue(wholeWrench.getNumRows() == 6);
assertEquals(wholeWrench.get(0,0), - 2.0, epsilon);
origin: us.ihmc/ihmc-avatar-interfaces-test

DenseMatrix64F wrenchFromSimulation = groundContactPointBasedWrenchCalculator.getWrench();
ReferenceFrame frameAtJoint = rigidBodyToApplyWrenchTo.getParentJoint().getFrameAfterJoint();
us.ihmc.simulationconstructionset.simulatedSensorsWrenchCalculatorInterfacegetWrench

Popular methods of WrenchCalculatorInterface

  • calculate
  • getJoint
  • getName
  • getTransformToParentJoint
  • corruptWrenchElement
  • setDoWrenchCorruption

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Vim plugins
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