Codota Logo
FootSpoof.<init>
Code IndexAdd Codota to your IDE (free)

How to use
us.ihmc.humanoidRobotics.footstep.FootSpoof
constructor

Best Java code snippets using us.ihmc.humanoidRobotics.footstep.FootSpoof.<init> (Showing top 11 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: us.ihmc/ihmc-simulation-toolkit-test

private void testAPoint(boolean assertPositionConditions, boolean assertPointConditions) throws InsufficientDataException
{
  FootSpoof footSpoof = new FootSpoof("footSpoof");
  testAPoint(assertPositionConditions, assertPointConditions, footSpoof);
}
origin: us.ihmc/ihmc-common-walking-control-modules-test

private SideDependentList<FootSpoof> setupContactableFeet(double footLength, double footWidth, double totalWidth)
{
 SideDependentList<FootSpoof> contactableFeet = new SideDependentList<>();
 for (RobotSide robotSide : RobotSide.values)
 {
   String sidePrefix = robotSide.getCamelCaseNameForStartOfExpression();
   double xToAnkle = 0.0;
   double yToAnkle = 0.0;
   double zToAnkle = 0.084;
   List<Point2D> contactPointsInSoleFrame = new ArrayList<>();
   contactPointsInSoleFrame.add(new Point2D(footLength / 2.0, footWidth / 2.0));
   contactPointsInSoleFrame.add(new Point2D(footLength / 2.0, -footWidth / 2.0));
   contactPointsInSoleFrame.add(new Point2D(-footLength / 2.0, -footWidth / 2.0));
   contactPointsInSoleFrame.add(new Point2D(-footLength / 2.0, footWidth / 2.0));
   FootSpoof contactableFoot = new FootSpoof(sidePrefix + "Foot", xToAnkle, yToAnkle, zToAnkle, contactPointsInSoleFrame, 0.0);
   FramePose3D startingPose = footPosesAtTouchdown.get(robotSide);
   startingPose.setToZero(worldFrame);
   startingPose.setY(robotSide.negateIfRightSide(0.5 * (totalWidth - footWidth)));
   contactableFoot.setSoleFrame(startingPose);
   contactableFeet.put(robotSide, contactableFoot);
 }
 return contactableFeet;
}
origin: us.ihmc/ihmc-common-walking-control-modules-test

private SideDependentList<FootSpoof> setupContactableFeet(double footLength, double footWidth, double totalWidth)
{
 SideDependentList<FootSpoof> contactableFeet = new SideDependentList<>();
 for (RobotSide robotSide : RobotSide.values)
 {
   String sidePrefix = robotSide.getCamelCaseNameForStartOfExpression();
   double xToAnkle = 0.0;
   double yToAnkle = 0.0;
   double zToAnkle = 0.084;
   List<Point2D> contactPointsInSoleFrame = new ArrayList<>();
   contactPointsInSoleFrame.add(new Point2D(footLength / 2.0, footWidth / 2.0));
   contactPointsInSoleFrame.add(new Point2D(footLength / 2.0, -footWidth / 2.0));
   contactPointsInSoleFrame.add(new Point2D(-footLength / 2.0, -footWidth / 2.0));
   contactPointsInSoleFrame.add(new Point2D(-footLength / 2.0, footWidth / 2.0));
   FootSpoof contactableFoot = new FootSpoof(sidePrefix + "Foot", xToAnkle, yToAnkle, zToAnkle, contactPointsInSoleFrame, 0.0);
   FramePose3D startingPose = footPosesAtTouchdown.get(robotSide);
   startingPose.setToZero(worldFrame);
   startingPose.setY(robotSide.negateIfRightSide(0.5 * (totalWidth - footWidth)));
   contactableFoot.setSoleFrame(startingPose);
   contactableFeet.put(robotSide, contactableFoot);
 }
 return contactableFeet;
}
origin: us.ihmc/ihmc-common-walking-control-modules-test

@Before
public void setUp()
{
 parentRegistry = new YoVariableRegistry("parentRegistryTEST");
 for (RobotSide robotSide : RobotSide.values)
 {
   String sidePrefix = robotSide.getCamelCaseNameForStartOfExpression();
   double xToAnkle = 0.0;
   double yToAnkle = 0.0;
   double zToAnkle = 0.0;
   List<Point2D> contactPointsInSoleFrame = new ArrayList<>();
   contactPointsInSoleFrame.add(new Point2D(footLengthForControl / 2.0, toeWidthForControl / 2.0));
   contactPointsInSoleFrame.add(new Point2D(footLengthForControl / 2.0, -toeWidthForControl / 2.0));
   contactPointsInSoleFrame.add(new Point2D(-footLengthForControl / 2.0, -footWidthForControl / 2.0));
   contactPointsInSoleFrame.add(new Point2D(-footLengthForControl / 2.0, footWidthForControl / 2.0));
   FootSpoof contactableFoot = new FootSpoof(sidePrefix + "Foot", xToAnkle, yToAnkle, zToAnkle, contactPointsInSoleFrame, 0.0);
   FramePose3D startingPose = new FramePose3D();
   startingPose.setToZero(worldFrame);
   startingPose.setY(robotSide.negateIfRightSide(0.20));
   contactableFoot.setSoleFrame(startingPose);
   contactableFeet.put(robotSide, contactableFoot);
   RigidBodyBasics foot = contactableFoot.getRigidBody();
   ReferenceFrame soleFrame = contactableFoot.getSoleFrame();
   List<FramePoint2D> contactFramePoints = contactableFoot.getContactPoints2d();
   double coefficientOfFriction = contactableFoot.getCoefficientOfFriction();
   YoPlaneContactState yoPlaneContactState = new YoPlaneContactState(sidePrefix + "Foot", foot, soleFrame, contactFramePoints, coefficientOfFriction, parentRegistry);
   yoPlaneContactState.setFullyConstrained();
   contactStates.put(robotSide, yoPlaneContactState);
 }
}
origin: us.ihmc/ihmc-common-walking-control-modules-test

contactPointsInSoleFrame.add(new Point2D(-footLengthForControl / 2.0, -footWidthForControl / 2.0));
contactPointsInSoleFrame.add(new Point2D(-footLengthForControl / 2.0, footWidthForControl / 2.0));
FootSpoof contactableFoot = new FootSpoof(sidePrefix + "Foot", xToAnkle, yToAnkle, zToAnkle, contactPointsInSoleFrame, 0.0);
FramePose3D startingPose = new FramePose3D();
startingPose.setToZero(worldFrame);
origin: us.ihmc/ihmc-simulation-toolkit-test

public void testFootstepAndPointsFromDataFile() throws NumberFormatException, InsufficientDataException, IOException
{
 QuadTreeFootstepSnappingParameters snappingParameters = new AtlasFootstepSnappingParameters();
 ConvexHullFootstepSnapper footstepSnapper = new ConvexHullFootstepSnapper(new SimpleFootstepValueFunction(snappingParameters), snappingParameters);
 double maskSafetyBuffer = 0.01;
 double boundingBoxDimension = 0.3;
 footstepSnapper.setUseMask(true, maskSafetyBuffer, boundingBoxDimension);
 String baseName = "footstepListsForTesting/";
 String resourceName = baseName + "DataFromConvexHullSnapper1422988400956.txt";
 InputStream resourceAsStream = getClass().getClassLoader().getResourceAsStream(resourceName);
 FootstepPointsDataReader dataReader = new FootstepPointsDataReader(resourceAsStream);
 FootstepDataMessage footstepData = new FootstepDataMessage();
 footstepData.setRobotSide(RobotSide.LEFT.toByte());
 FootSpoof spoof = new FootSpoof("basicSpoof");
 FramePose2D desiredPose = new FramePose2D(ReferenceFrame.getWorldFrame());
 List<Point3D> listOfPoints = new ArrayList<>();
 while (dataReader.hasAnotherFootstepAndPoints())
 {
   listOfPoints = dataReader.getNextSetPointsAndFootstep(footstepData);
   desiredPose.setIncludingFrame(ReferenceFrame.getWorldFrame(), footstepData.getLocation().getX(), footstepData.getLocation().getY(),
                    footstepData.getOrientation().getYaw());
   Footstep footstep = footstepSnapper.generateFootstepUsingHeightMap(desiredPose, spoof.getRigidBody(), spoof.getSoleFrame(),
              RobotSide.fromByte(footstepData.getRobotSide()), listOfPoints, 0.0);
   assertTrue(footstep.getFootstepType() != Footstep.FootstepType.BAD_FOOTSTEP);
 }
}
origin: us.ihmc/ihmc-common-walking-control-modules-test

contactPointsInSoleFrame.add(new Point2D(-footLengthForControl / 2.0, -footWidthForControl / 2.0));
contactPointsInSoleFrame.add(new Point2D(-footLengthForControl / 2.0, footWidthForControl / 2.0));
FootSpoof contactableFoot = new FootSpoof(sidePrefix + "Foot", xToAnkle, yToAnkle, zToAnkle, contactPointsInSoleFrame, 0.0);
origin: us.ihmc/ihmc-common-walking-control-modules-test

FootSpoof foot = new FootSpoof(testName + side.getCamelCaseName() + "Foot", 0.0, 0.0, 0.084, contactPoints, 0.1);
getFootLocationFromCoMLocation(tempFramePoint1, side, currentLocation, walkingDirectionUnitVector, stepLength, stepWidth);
foot.setPose(tempFramePoint1, robotOrientation);
origin: us.ihmc/ihmc-common-walking-control-modules-test

FootSpoof foot = new FootSpoof(footName + "Foot", xToAnkle, yToAnkle, zToAnkle, contactPointsInFootFrame, coefficientOfFriction);
FramePose3D footPose = new FramePose3D(initialPose);
footPose.appendTranslation(0.0, side.negateIfRightSide(stepWidth / 2.0), 0.0);
origin: us.ihmc/ihmc-simulation-toolkit

double footHalfWidth = 0.05;
double coefficientOfFriction = 0.0;
ContactablePlaneBody leftContactableFoot = new FootSpoof("leftFoot", xToAnkle, yToAnkle, zToAnkle, footForward, footBack, footHalfWidth,
                       coefficientOfFriction);
ContactablePlaneBody rightContactableFoot = new FootSpoof("rightFoot", xToAnkle, yToAnkle, zToAnkle, footForward, footBack, footHalfWidth,
                        coefficientOfFriction);
origin: us.ihmc/IHMCSimulationToolkit

double footHalfWidth = 0.05;
double coefficientOfFriction = 0.0;
ContactablePlaneBody leftContactableFoot = new FootSpoof("leftFoot", xToAnkle, yToAnkle, zToAnkle, footForward, footBack, footHalfWidth,
                       coefficientOfFriction);
ContactablePlaneBody rightContactableFoot = new FootSpoof("rightFoot", xToAnkle, yToAnkle, zToAnkle, footForward, footBack, footHalfWidth,
                        coefficientOfFriction);
us.ihmc.humanoidRobotics.footstepFootSpoof<init>

Popular methods of FootSpoof

  • setSoleFrame
  • getRigidBody
  • getSoleFrame
  • getCoefficientOfFriction
  • getContactPoints2d
  • getFrameAfterParentJoint
  • setPose

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now