congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
GroundContactModel.setGroundProfile3D
Code IndexAdd Tabnine to your IDE (free)

How to use
setGroundProfile3D
method
in
us.ihmc.simulationconstructionset.GroundContactModel

Best Java code snippets using us.ihmc.simulationconstructionset.GroundContactModel.setGroundProfile3D (Showing top 12 results out of 315)

origin: us.ihmc/simulation-construction-set-tools

  @Override
  public void setGroundProfile3D(GroundProfile3D groundProfile3D)
  {
   baseModel.setGroundProfile3D(groundProfile3D);
  }
}
origin: us.ihmc/simulation-construction-set-tools

  @Override
  public void setGroundProfile3D(GroundProfile3D groundProfile3D)
  {
   baseModel.setGroundProfile3D(groundProfile3D);
  }
}
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-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/DarpaRoboticsChallenge

public DRCDrillEnvironment()
{
 double forceVectorScale = 1.0 / 500.0;
 combinedTerrainObject = new CombinedTerrainObject3D(getClass().getSimpleName());
 combinedTerrainObject.addTerrainObject(setUpGround("Ground", tableCenter, 0.1));
 
 RigidBodyTransform initialDrillTransform = new RigidBodyTransform(new AxisAngle4d(), tableCenter);
 drillRobot = new ContactableCylinderRobot("drill", initialDrillTransform , drillRadius, drillHeight, drillMass, "models/drill.obj");
 final int groundContactGroupIdentifier = 0;
 drillRobot.createAvailableContactPoints(groundContactGroupIdentifier, 30, forceVectorScale, true);
 for (int i = 0; i < 4; i++)
 {
   double angle = i * 2.0 * Math.PI / 4.0;
   double x = 1.5 * drillRadius * Math.cos(angle);
   double y = 1.5 * drillRadius * Math.sin(angle);
   GroundContactPoint groundContactPoint = new GroundContactPoint("gc_drill_" + i, new Vector3d(x, y, 0.0), drillRobot);
   drillRobot.getRootJoints().get(0).addGroundContactPoint(groundContactPoint);
 }
 GroundContactModel groundContactModel = new LinearGroundContactModel(drillRobot, groundContactGroupIdentifier,1422.0, 150.6, 50.0, 600.0, drillRobot.getRobotsYoVariableRegistry());
 groundContactModel.setGroundProfile3D(combinedTerrainObject);
 drillRobot.setGroundContactModel(groundContactModel);
 
 robots.add(drillRobot);
}
origin: us.ihmc/simulation-construction-set-tools

public HandDrillManipulationEnvironment()
{
 double forceVectorScale = 1.0 / 500.0;
 combinedTerrainObject = new CombinedTerrainObject3D(getClass().getSimpleName());
 combinedTerrainObject.addTerrainObject(setUpGround("Ground", tableCenter, 0.1));
 
 RigidBodyTransform initialDrillTransform = new RigidBodyTransform(new AxisAngle(), tableCenter);
 drillRobot = new ContactableCylinderRobot("drill", initialDrillTransform , drillRadius, drillHeight, drillMass, "models/drill.obj");
 final int groundContactGroupIdentifier = 0;
 drillRobot.createAvailableContactPoints(groundContactGroupIdentifier, 30, forceVectorScale, true);
 for (int i = 0; i < 4; i++)
 {
   double angle = i * 2.0 * Math.PI / 4.0;
   double x = 1.5 * drillRadius * Math.cos(angle);
   double y = 1.5 * drillRadius * Math.sin(angle);
   GroundContactPoint groundContactPoint = new GroundContactPoint("gc_drill_" + i, new Vector3D(x, y, 0.0), drillRobot);
   drillRobot.getRootJoints().get(0).addGroundContactPoint(groundContactPoint);
 }
 GroundContactModel groundContactModel = new LinearGroundContactModel(drillRobot, groundContactGroupIdentifier,1422.0, 150.6, 50.0, 600.0, drillRobot.getRobotsYoVariableRegistry());
 groundContactModel.setGroundProfile3D(combinedTerrainObject);
 drillRobot.setGroundContactModel(groundContactModel);
 
 robots.add(drillRobot);
}
origin: us.ihmc/simulation-construction-set-tools-test

linearGroundModel.setGroundProfile3D(combinedEnvironment);
newBox.setGroundContactModel(linearGroundModel);
newBox.setGravity(-9.81);
linearGroundModel.setGroundProfile3D(combinedEnvironment);
newBox.setGroundContactModel(linearGroundModel);
linearGroundModel.setGroundProfile3D(combinedEnvironment);
newBox.setGroundContactModel(linearGroundModel);
newBox.setGravity(-9.81);
origin: us.ihmc/ihmc-avatar-interfaces

private void createDrill()
{
 Vector3D tableCenter = new Vector3D(-0.851, -6.833, 1.118);
 double drillHeight = 0.3;
 double drillRadius = 0.03;
 double drillMass = 1.5;
 double forceVectorScale = 1.0 / 500.0;
 RigidBodyTransform initialDrillTransform = new RigidBodyTransform(new AxisAngle(), tableCenter);
 ContactableCylinderRobot drillRobot = new ContactableCylinderRobot("drill", initialDrillTransform, drillRadius, drillHeight, drillMass,
                                   "models/drill.obj");
 final int groundContactGroupIdentifier = 0;
 drillRobot.createAvailableContactPoints(groundContactGroupIdentifier, 30, forceVectorScale, true);
 for (int i = 0; i < 4; i++)
 {
   double angle = i * 2.0 * Math.PI / 4.0;
   double x = 1.5 * drillRadius * Math.cos(angle);
   double y = 1.5 * drillRadius * Math.sin(angle);
   GroundContactPoint groundContactPoint = new GroundContactPoint("gc_drill_" + i, new Vector3D(x, y, 0.0), drillRobot);
   drillRobot.getRootJoints().get(0).addGroundContactPoint(groundContactPoint);
 }
 GroundContactModel groundContactModel = new LinearGroundContactModel(drillRobot, groundContactGroupIdentifier, 1422.0, 150.6, 50.0, 600.0,
    drillRobot.getRobotsYoVariableRegistry());
 groundContactModel.setGroundProfile3D(combinedTerrainObject);
 drillRobot.setGroundContactModel(groundContactModel);
 contactableRobots.add(drillRobot);
 combinedTerrainObject.addBox(-0.777, -6.916, -0.947, -6.746, 1.061, 1.08);
}
origin: us.ihmc/DarpaRoboticsChallenge

private void createDrill()
{
 Vector3d tableCenter = new Vector3d(-0.851, -6.833, 1.118);
 double drillHeight = 0.3;
 double drillRadius = 0.03;
 double drillMass = 1.5;
 double forceVectorScale = 1.0 / 500.0;
 RigidBodyTransform initialDrillTransform = new RigidBodyTransform(new AxisAngle4d(), tableCenter);
 ContactableCylinderRobot drillRobot = new ContactableCylinderRobot("drill", initialDrillTransform, drillRadius, drillHeight, drillMass,
    "models/drill.obj");
 final int groundContactGroupIdentifier = 0;
 drillRobot.createAvailableContactPoints(groundContactGroupIdentifier, 30, forceVectorScale, true);
 for (int i = 0; i < 4; i++)
 {
   double angle = i * 2.0 * Math.PI / 4.0;
   double x = 1.5 * drillRadius * Math.cos(angle);
   double y = 1.5 * drillRadius * Math.sin(angle);
   GroundContactPoint groundContactPoint = new GroundContactPoint("gc_drill_" + i, new Vector3d(x, y, 0.0), drillRobot);
   drillRobot.getRootJoints().get(0).addGroundContactPoint(groundContactPoint);
 }
 GroundContactModel groundContactModel = new LinearGroundContactModel(drillRobot, groundContactGroupIdentifier, 1422.0, 150.6, 50.0, 600.0,
    drillRobot.getRobotsYoVariableRegistry());
 groundContactModel.setGroundProfile3D(combinedTerrainObject);
 drillRobot.setGroundContactModel(groundContactModel);
 contactableRobots.add(drillRobot);
 combinedTerrainObject.addBox(-0.777, -6.916, -0.947, -6.746, 1.061, 1.08);
}
origin: us.ihmc/ihmc-simulation-toolkit

public FootstepVisualizer(GroundProfile3D groundProfile, Graphics3DObject linkGraphics, int maxNumberOfFootstepsPerSide, int maxContactPointsPerFoot, String description)
{
 nullRobot = new Robot("FootstepVisualizerRobot");
 
 if (groundProfile != null)
 {
   GroundContactModel gcModel = new LinearGroundContactModel(nullRobot, nullRobot.getRobotsYoVariableRegistry());
   gcModel.setGroundProfile3D(groundProfile);
   nullRobot.setGroundContactModel(gcModel);
 }
 
 scs = new SimulationConstructionSet(nullRobot);
 
 if (linkGraphics != null)
 {
   scs.setGroundVisible(false);
   scs.addStaticLinkGraphics(linkGraphics);
 }
 
 printifdebug("Attaching exit listener");
 scs.setDT(1, 1);
 yoGraphicsListRegistry = new YoGraphicsListRegistry();
 bagOfSingleFootstepVisualizers = new BagOfSingleFootstepVisualizers(maxNumberOfFootstepsPerSide, maxContactPointsPerFoot, registry, yoGraphicsListRegistry);
 addText(scs, yoGraphicsListRegistry, description);
}
origin: us.ihmc/IHMCSimulationToolkit

public FootstepVisualizer(GroundProfile3D groundProfile, Graphics3DObject linkGraphics, int maxNumberOfFootstepsPerSide, int maxContactPointsPerFoot, String description)
{
 nullRobot = new Robot("FootstepVisualizerRobot");
 
 if (groundProfile != null)
 {
   GroundContactModel gcModel = new LinearGroundContactModel(nullRobot, nullRobot.getRobotsYoVariableRegistry());
   gcModel.setGroundProfile3D(groundProfile);
   nullRobot.setGroundContactModel(gcModel);
 }
 
 scs = new SimulationConstructionSet(nullRobot);
 
 if (linkGraphics != null)
 {
   scs.setGroundVisible(false);
   scs.addStaticLinkGraphics(linkGraphics);
 }
 
 printifdebug("Attaching exit listener");
 scs.setDT(1, 1);
 yoGraphicsListRegistry = new YoGraphicsListRegistry();
 bagOfSingleFootstepVisualizers = new BagOfSingleFootstepVisualizers(maxNumberOfFootstepsPerSide, maxContactPointsPerFoot, registry, yoGraphicsListRegistry);
 addText(scs, yoGraphicsListRegistry, description);
}
us.ihmc.simulationconstructionsetGroundContactModelsetGroundProfile3D

Popular methods of GroundContactModel

  • doGroundContact
  • getGroundProfile3D

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • 21 Best Atom Packages for 2021
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