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

How to use us.ihmc.robotics

Best Java code snippets using us.ihmc.robotics (Showing top 20 results out of 324)

origin: us.ihmc/IHMCRoboticsToolkit

@Override
public boolean epsilonEquals(Sphere3d other, double epsilon)
{
 return MathTools.epsilonEquals(radius, other.radius, epsilon);
}
origin: us.ihmc/IHMCRoboticsToolkit

public void setEpsilonToShrink(double epsilon)
{
 MathTools.checkIfNegative(epsilon);
 this.epsilon = epsilon;
}
origin: us.ihmc/IHMCRoboticsToolkit

private void computeOther(double value)
{
 k++;
 sum = sum + value;
 
 double mKLast = mK;
 double kDouble = (double)k;
 mK = mKLast + (value - mKLast) / kDouble;
 qK = qK + (kDouble - 1.0) * MathTools.square(value - mKLast) / kDouble;
}
origin: us.ihmc/IHMCRoboticsToolkit

private static double getCosineAngleWithCosineLaw(double l_neighbour1, double l_neighbour2, double l_opposite)
{
 checkIfInRange(l_neighbour1, 0.0, Double.POSITIVE_INFINITY);
 checkIfInRange(l_neighbour2, 0.0, Double.POSITIVE_INFINITY);
 checkIfInRange(l_opposite, 0.0, Double.POSITIVE_INFINITY);
 double cosAngle = MathTools.clipToMinMax((square(l_neighbour1) + square(l_neighbour2) - square(l_opposite)) / (2.0 * l_neighbour1 * l_neighbour2), -1.0,
                      1.0);
 return cosAngle;
}
origin: us.ihmc/IHMCHumanoidRobotics

public HandCollisionDetectedPacket(RobotSide robotSide, int collisionSeverityLevelZeroToThree)
{
 this.robotSide = robotSide;
 this.collisionSeverityLevelOneToThree = MathTools.clipToMinMax(collisionSeverityLevelZeroToThree, 1, 3);
}
origin: us.ihmc/IHMCRoboticsToolkit

public static double getCosineAngleDotWithCosineLaw(double l_neighbour1, double l_neighbour2, double lDot_neighbour2, double l_opposite,
   double lDot_opposite)
{
 checkIfInRange(l_neighbour1, 0.0, Double.POSITIVE_INFINITY);
 checkIfInRange(l_neighbour2, 0.0, Double.POSITIVE_INFINITY);
 checkIfInRange(l_opposite, 0.0, Double.POSITIVE_INFINITY);
 double cosAngleDot = (square(l_neighbour2) * lDot_neighbour2 - 2.0 * l_neighbour2 * l_opposite * lDot_opposite - lDot_neighbour2 * square(l_neighbour1)
    + lDot_neighbour2 * square(l_opposite)) / (2.0 * square(l_neighbour2) * l_neighbour1);
 return cosAngleDot;
}
origin: us.ihmc/IHMCRoboticsToolkit

public void enableWeightMethod(double maxWeight, double minWeight)
{
 MathTools.checkIfInRange(minWeight, 1.0-3, 100.0);
 MathTools.checkIfInRange(maxWeight, 1.0-3, 100.0);
 this.useWeightMethod = true;
 double weightRatio = maxWeight / minWeight;
 this.minWeight = 1.0;
 this.maxWeight = weightRatio;
}
origin: us.ihmc/robot-environment-awareness

  public static PlanarRegionsList importPlanarRegionData(File dataFolder)
  {
   return PlanarRegionFileTools.importPlanarRegionData(dataFolder);
  }
}
origin: us.ihmc/ihmc-robotics-toolkit

/**
* Generates a default timestamped name that can be used to generate automated and unique
* folders.
*
* @return a {@code String} of the form: "20171201_163422_PlanarRegion".
*/
public static String createDefaultTimeStampedFolderName()
{
 return getDate() + "_PlanarRegion";
}
origin: us.ihmc/IHMCRoboticsToolkit

public void setEpsilonToGrow(double epsilon)
{
 MathTools.checkIfPositive(epsilon);
 this.epsilon = epsilon;
}
origin: us.ihmc/IHMCRoboticsToolkit

public static double getCosineAngleWithCosineLaw(double l_neighbour1, double l_neighbour2, double l_opposite)
{
 checkIfInRange(l_neighbour1, 0.0, Double.POSITIVE_INFINITY);
 checkIfInRange(l_neighbour2, 0.0, Double.POSITIVE_INFINITY);
 checkIfInRange(l_opposite, 0.0, Double.POSITIVE_INFINITY);
 double cosAngle = MathTools
    .clipToMinMax((square(l_neighbour1) + square(l_neighbour2) - square(l_opposite)) / (2.0 * l_neighbour1 * l_neighbour2), -1.0, 1.0);
 return cosAngle;
}
origin: us.ihmc/IHMCHumanoidRobotics

@Override
public boolean epsilonEquals(LegCompliancePacket other, double epsilon)
{
 if (maxVelocityDeltas.length != other.maxVelocityDeltas.length)
   return false;
 for (int i = 0; i < maxVelocityDeltas.length; i++)
   if (!MathTools.epsilonEquals(maxVelocityDeltas[i], other.maxVelocityDeltas[i], epsilon))
    return false;
 return true;
}
origin: us.ihmc/IHMCHumanoidRobotics

public void setTrajectoryTime(double trajectoryTime)
{
 //      this.trajectoryTime = trajectoryTime;
 // limiting motor speed for safe joint speed. if the arms exceed (700 rad / sec) / (100 gear ratio) = 7 rad/sec we are in trouble
 this.trajectoryTime = MathTools.clipToMinMax(trajectoryTime, 2.0, Double.MAX_VALUE);
}
origin: us.ihmc/ihmc-path-planning

/**
* Generates a default timestamped name that can be used to generate automated and unique
* folders.
*
* @return a {@code String} of the form: "20171201_163422_VizGraphs".
*/
public static String createDefaultTimeStampedDatasetFolderName()
{
 return PlanarRegionFileTools.getDate() + "_" + VIZ_GRAPHS_DATA_FOLDER_SUFFIX;
}
origin: us.ihmc/IHMCCommunication

@Override
public boolean epsilonEquals(PilotAlarmPacket other, double epsilon)
{
 return MathTools.epsilonEquals(beepRate, other.beepRate, epsilon);
}
origin: us.ihmc/IHMCRoboticsToolkit

public static double computeAlphaGivenBreakFrequency(double breakFrequencyInHetrz, double dt)
{
 double alpha = 1.0 - 4.0 * dt * breakFrequencyInHetrz;
 alpha = MathTools.clipToMinMax(alpha, 0.0, 1.0);
 return alpha;
}
origin: us.ihmc/IHMCHumanoidRobotics

@Override
public boolean epsilonEquals(WristSensorNoisePacket other, double epsilon)
{
  return
     MathTools.epsilonEquals(leftWristNoise,  other.leftWristNoise, epsilon ) &&
     MathTools.epsilonEquals(rightWristNoise, other.rightWristNoise, epsilon) ;
}
origin: us.ihmc/IHMCHumanoidRobotics

@Override
public boolean epsilonEquals(PelvisPoseErrorPacket other, double epsilon)
{
 return (MathTools.epsilonEquals(residualError, other.residualError, epsilon)
   && MathTools.epsilonEquals(totalError, other.totalError, epsilon)
   && other.hasMapBeenReset == hasMapBeenReset);
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public boolean epsilonEquals(Cylinder3d other, double epsilon)
{
 return MathTools.epsilonEquals(height, other.height, epsilon) && MathTools.epsilonEquals(radius, other.radius, epsilon);
}
origin: us.ihmc/IHMCRoboticsToolkit

@Override
public boolean epsilonEquals(Torus3d other, double epsilon)
{
 return MathTools.epsilonEquals(radius, other.radius, epsilon) && MathTools.epsilonEquals(tubeRadius, other.tubeRadius, epsilon);
}
us.ihmc.robotics

Most used classes

  • RobotSide
    Title: Description: Copyright: Copyright (c) 2007 Company:
  • SideDependentList
  • DoubleYoVariable
    Title: Yobotics! Simulation Construction Set Description: Package for Simulating Dynamic Robots and
  • AngleTools
  • YoVariableRegistry
  • PlanarRegion,
  • RotationTools,
  • MatrixTools,
  • AlphaFilteredYoVariable,
  • BooleanYoVariable,
  • PoseReferenceFrame,
  • IntegerYoVariable,
  • ScrewTools,
  • MathTools,
  • PlanarRegionsList,
  • ReferenceFrame,
  • LongYoVariable,
  • FramePoint,
  • FramePose
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