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

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

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

origin: us.ihmc/ihmc-simulation-toolkit

forceTorqueSensor.calculate();
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

forceTorqueSensor.calculate();
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/simulation-construction-set-test

point1.getYoPosition().set(new Point3D(-1.0, 0.0, 0.0));
calculator.calculate();
point1.getYoPosition().set(new Point3D(-2.0, -2.0, 1.0));
calculator.calculate();
calculator.calculate();
wholeWrench = calculator.getWrench();
assertTrue(wholeWrench.getNumRows() == 6);
robot.update();
calculator.calculate();
wholeWrench = calculator.getWrench();
assertTrue(wholeWrench.getNumRows() == 6);
origin: us.ihmc/ihmc-avatar-interfaces-test

ReferenceFrame bodyFixedFrame = rigidBodyToApplyWrenchTo.getBodyFixedFrame();
groundContactPointBasedWrenchCalculator.calculate();
DenseMatrix64F wrenchFromSimulation = groundContactPointBasedWrenchCalculator.getWrench();
ReferenceFrame frameAtJoint = rigidBodyToApplyWrenchTo.getParentJoint().getFrameAfterJoint();
us.ihmc.simulationconstructionset.simulatedSensorsWrenchCalculatorInterfacecalculate

Popular methods of WrenchCalculatorInterface

  • getWrench
  • getJoint
  • getName
  • getTransformToParentJoint
  • corruptWrenchElement
  • setDoWrenchCorruption

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text 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