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

How to use
generateFootstepUsingHeightMap
method
in
us.ihmc.humanoidRobotics.footstep.footstepSnapper.ConvexHullFootstepSnapper

Best Java code snippets using us.ihmc.humanoidRobotics.footstep.footstepSnapper.ConvexHullFootstepSnapper.generateFootstepUsingHeightMap (Showing top 5 results out of 315)

origin: us.ihmc/IHMCHumanoidRobotics

@Override
public Footstep generateFootstepUsingHeightMap(FramePose2d desiredSolePosition, RigidBody foot, ReferenceFrame soleFrame, RobotSide robotSide,
    HeightMapWithPoints heightMap)
    throws InsufficientDataException
{
 Footstep toReturn = convexHullFootstepSnapper.generateFootstepUsingHeightMap(desiredSolePosition, foot, soleFrame, robotSide, heightMap);
 snapFootstep(toReturn, heightMap);
 return toReturn;
}
origin: us.ihmc/ihmc-humanoid-robotics

@Override
public Footstep generateFootstepUsingHeightMap(FramePose2D desiredSolePosition, RigidBodyBasics foot, ReferenceFrame soleFrame, RobotSide robotSide,
    HeightMapWithPoints heightMap)
    throws InsufficientDataException
{
 Footstep toReturn = convexHullFootstepSnapper.generateFootstepUsingHeightMap(desiredSolePosition, foot, soleFrame, robotSide, heightMap);
 snapFootstep(toReturn, heightMap);
 return toReturn;
}
origin: us.ihmc/IHMCHumanoidRobotics

@Override
public Footstep generateSnappedFootstep(double soleX, double soleY, double yaw, RigidBody foot, ReferenceFrame soleFrame, RobotSide robotSide,
   HeightMapWithPoints heightMap) throws InsufficientDataException
{
 FramePose2d footPose2d = new FramePose2d(ReferenceFrame.getWorldFrame(), new Point2d(soleX, soleY), yaw);
 return generateFootstepUsingHeightMap(footPose2d, foot, soleFrame, robotSide, heightMap);
}
origin: us.ihmc/ihmc-humanoid-robotics

@Override
public Footstep generateSnappedFootstep(double soleX, double soleY, double yaw, RigidBodyBasics foot, ReferenceFrame soleFrame, RobotSide robotSide,
   HeightMapWithPoints heightMap) throws InsufficientDataException
{
 FramePose2D footPose2d = new FramePose2D(ReferenceFrame.getWorldFrame(), new Point2D(soleX, soleY), yaw);
 return generateFootstepUsingHeightMap(footPose2d, foot, soleFrame, robotSide, heightMap);
}
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);
 }
}
us.ihmc.humanoidRobotics.footstep.footstepSnapperConvexHullFootstepSnappergenerateFootstepUsingHeightMap

Popular methods of ConvexHullFootstepSnapper

  • <init>
  • 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
  • Top 15 Vim Plugins
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