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

How to use
us.ihmc.humanoidRobotics.footstep.footstepSnapper.ConvexHullFootstepSnapper
constructor

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

origin: us.ihmc/IHMCHumanoidRobotics

public AdjustingFootstepSnapper(FootstepValueFunction valueFunction, FootstepSnappingParameters parameters)
{
 convexHullFootstepSnapper = new ConvexHullFootstepSnapper(valueFunction, parameters);
 this.footstepSnappingParameters = parameters;
 this.distanceAdjustment = parameters.getDistanceAdjustment();
 this.angleAdjustment = parameters.getAngleAdjustment();
}
origin: us.ihmc/ihmc-humanoid-robotics

public AdjustingFootstepSnapper(FootstepValueFunction valueFunction, QuadTreeFootstepSnappingParameters parameters)
{
 convexHullFootstepSnapper = new ConvexHullFootstepSnapper(valueFunction, parameters);
 this.footstepSnappingParameters = parameters;
 this.distanceAdjustment = parameters.getDistanceAdjustment();
 this.angleAdjustment = parameters.getAngleAdjustment();
}
origin: us.ihmc/ihmc-simulation-toolkit-test

private ConvexHullFootstepSnapper createConvexHullFootstepSnapper()
{
 QuadTreeFootstepSnappingParameters snappingParameters = new GenericFootstepSnappingParameters();
 ConvexHullFootstepSnapper footstepSnapper = new ConvexHullFootstepSnapper(new SimpleFootstepValueFunction(snappingParameters), snappingParameters);
 return footstepSnapper;
}
origin: us.ihmc/ihmc-humanoid-robotics-test

@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout = 30000)
public void testBasicCropping()
{
 QuadTreeFootstepSnappingParameters snappingParameters = new GenericFootstepSnappingParameters();
 ConvexHullFootstepSnapper footstepSnapper = new ConvexHullFootstepSnapper(new SimpleFootstepValueFunction(snappingParameters), snappingParameters);
 List<Point2D> pointsToCrop = new ArrayList<Point2D>();
 pointsToCrop.add(new Point2D(1,1));
 pointsToCrop.add(new Point2D(-1,1));
 pointsToCrop.add(new Point2D(-1,-1));
 pointsToCrop.add(new Point2D(1,-1));
 pointsToCrop.add(new Point2D(1.1,0));
 List<Point2D> finalPoints = footstepSnapper.reduceListOfPointsByArea(pointsToCrop, 4);
 assertTrue(finalPoints.size() == 4.0);
 ConvexPolygon2D endPolygon = new ConvexPolygon2D(Vertex2DSupplier.asVertex2DSupplier(finalPoints));
 assertEquals(4.0, endPolygon.getArea(), 1e-15);
}
origin: us.ihmc/ihmc-simulation-toolkit-test

ConvexHullFootstepSnapper footstepSnapper = new ConvexHullFootstepSnapper(new SimpleFootstepValueFunction(snappingParameters), snappingParameters);
double maskSafetyBuffer = 0.01;
double boundingBoxDimension = 0.3;
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-humanoid-robotics-test

ConvexHullFootstepSnapper footstepSnapper = new ConvexHullFootstepSnapper(new SimpleFootstepValueFunction(snappingParameters), snappingParameters);
List<Point2D> pointsToCrop = new ArrayList<Point2D>();
Random random = new Random(82368L);
origin: us.ihmc/IHMCSimulationToolkit

FootstepSnapper footstepSnapper = new ConvexHullFootstepSnapper(new SimpleFootstepValueFunction(snappingParameters), snappingParameters);
origin: us.ihmc/ihmc-simulation-toolkit

QuadTreeFootstepSnapper footstepSnapper = new ConvexHullFootstepSnapper(new SimpleFootstepValueFunction(snappingParameters), snappingParameters);
us.ihmc.humanoidRobotics.footstep.footstepSnapperConvexHullFootstepSnapper<init>

Popular methods of ConvexHullFootstepSnapper

  • generateFootstepUsingHeightMap
  • reduceListOfPointsByArea
  • setUseMask
  • addLowerBoundaryPointsToHullPointList
  • adjustFootstepWithoutHeightmap
  • computePartialFootstepFromPoints
  • generateFootstepWithoutHeightMap
  • getPointInPolygonNearestPoint
  • getPointList
  • getPredictedContactPointsForFootstep
  • reduceListOfPointsToFourFootstepBased
  • setMask
  • reduceListOfPointsToFourFootstepBased,
  • setMask,
  • snapFootstep,
  • updateParameters

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • PhpStorm for WordPress
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