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

How to use
LinearStickSlipGroundContactModel
in
us.ihmc.simulationconstructionset.util

Best Java code snippets using us.ihmc.simulationconstructionset.util.LinearStickSlipGroundContactModel (Showing top 8 results out of 315)

origin: us.ihmc/DarpaRoboticsChallenge

private GroundContactModel createGroundContactModel(Robot robot, GroundProfile3D groundProfile)
{
 double kXY = 5000.0;
 double bXY = 100.0;
 double kZ = 1000.0;
 double bZ = 100.0;
 double alphaStick = 0.7;
 double alphaSlip = 0.5;
 GroundContactModel groundContactModel = new LinearStickSlipGroundContactModel(robot, kXY, bXY, kZ, bZ, alphaSlip, alphaStick,
    robot.getRobotsYoVariableRegistry());
 groundContactModel.setGroundProfile3D(groundProfile);
 return groundContactModel;
}
origin: us.ihmc/simulation-construction-set-test

GroundContactPointsHolder pointsHolder = createGroundContactPointsHolder(groundContactPoint);
LinearStickSlipGroundContactModel groundContactModel = new LinearStickSlipGroundContactModel(pointsHolder, registry);
groundContactModel.disableSlipping();
groundContactPoint.setVelocity(velocity);
groundContactModel.enableSurfaceNormal();
groundContactModel.doGroundContact();
groundContactModel.disableSurfaceNormal();
groundContactModel.doGroundContact();
  groundContactModel.enableSurfaceNormal();
  groundContactModel.doGroundContact();
  assertTrue(groundContactPoint.isInContact());
  groundContactPoint.getForce(force);
  groundContactModel.disableSurfaceNormal();
  groundContactModel.doGroundContact();
  assertTrue(groundContactPoint.isInContact());
  groundContactPoint.getForce(forceWithNormalsDisabled);
groundContactModel.enableSurfaceNormal();
groundContactModel.doGroundContact();
assertFalse(groundContactPoint.isInContact());
groundContactPoint.getForce(force);
origin: us.ihmc/simulation-construction-set-test

GroundContactPointsHolder pointsHolderOnSlope = createGroundContactPointsHolder(groundContactPointOnSlope);
LinearStickSlipGroundContactModel groundContactModelOnFlat = new LinearStickSlipGroundContactModel(pointsHolderOnFlat, registryOnFlat);
groundContactModelOnFlat.enableSlipping();
LinearStickSlipGroundContactModel groundContactModelOnSlope = new LinearStickSlipGroundContactModel(pointsHolderOnSlope, registryOnSlope);
groundContactModelOnSlope.enableSlipping();
groundContactModelOnFlat.setGroundProfile3D(flatGroundProfile);
groundContactModelOnSlope.setGroundProfile3D(slopedGroundProfile);
  groundContactModelOnFlat.doGroundContact();
  Vector3D forceOnFlat = new Vector3D();
  groundContactPointOnFlat.getForce(forceOnFlat);
  groundContactModelOnSlope.doGroundContact();
origin: us.ihmc/simulation-construction-set-test

LinearStickSlipGroundContactModel groundModel = new LinearStickSlipGroundContactModel(robot, robot.getRobotsYoVariableRegistry());
groundModel.setGroundProfile3D(groundProfile);
origin: us.ihmc/simulation-construction-set-test

GroundContactPointsHolder pointsHolder = createGroundContactPointsHolder(groundContactPoint);
LinearStickSlipGroundContactModel groundContactModel = new LinearStickSlipGroundContactModel(pointsHolder, registry);
groundContactModel.disableSlipping();
  groundContactPoint.setVelocity(velocity);
  groundContactModel.enableSurfaceNormal();
  groundContactModel.doGroundContact();
origin: us.ihmc/simulation-construction-set-tools

private GroundContactModel createGroundContactModel(Robot robot, GroundProfile3D groundProfile)
{
 double kXY = 5000.0;
 double bXY = 100.0;
 double kZ = 1000.0;
 double bZ = 100.0;
 double alphaStick = 0.7;
 double alphaSlip = 0.5;
 GroundContactModel groundContactModel = new LinearStickSlipGroundContactModel(robot, kXY, bXY, kZ, bZ, alphaSlip, alphaStick,
    robot.getRobotsYoVariableRegistry());
 groundContactModel.setGroundProfile3D(groundProfile);
 return groundContactModel;
}
origin: us.ihmc/DarpaRoboticsChallenge

  private GroundContactModel createGroundContactModel(Robot robot, GroundProfile3D groundProfile)
  {
   double kXY = 40000.0;
   double bXY = 10.0;
   double kZ = 80.0;
   double bZ = 500.0;
   double alphaStick = 0.7;
   double alphaSlip = 0.5;

   GroundContactModel groundContactModel = new LinearStickSlipGroundContactModel(robot, kXY, bXY, kZ, bZ, alphaSlip, alphaStick,
                         robot.getRobotsYoVariableRegistry());
   groundContactModel.setGroundProfile3D(groundProfile);

   return groundContactModel;
  }
}
origin: us.ihmc/simulation-construction-set-tools-test

newBox.setController(controller);
GroundContactModel linearGroundModel = new LinearStickSlipGroundContactModel(newBox, 40000.0, 10.0, 80.0, 500.0, 1.2, 1.2,
GroundContactModel linearGroundModel = new LinearStickSlipGroundContactModel(newBox, 40000.0, 10.0, 80.0, 500.0, 1.2, 1.2,
newBox.setController(controller);
GroundContactModel linearGroundModel = new LinearStickSlipGroundContactModel(newBox, 40000.0, 10.0, 80.0, 500.0, 1.2, 1.2,
us.ihmc.simulationconstructionset.utilLinearStickSlipGroundContactModel

Most used methods

  • <init>
  • disableSlipping
  • disableSurfaceNormal
  • doGroundContact
  • enableSlipping
  • enableSurfaceNormal
  • setGroundProfile3D

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • putExtra (Intent)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 12 Jupyter Notebook Extensions
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