public void setBall(double x, double y, double z, AppearanceDefinition appearance) { setBall(x, y, z, appearance, index); index++; }
/** * Sets the next ball to the given location. If all the balls have been set, then does nothing. * * @param location FramePoint to set the next ball to. */ public void setBall(FramePoint3DReadOnly location) { setBall(location, null); }
/** * Sets the next ball to the given location. If all the balls have been set, then does nothing. * @param location FramePoint to set the next ball to. */ public void setBall(FramePoint location) { setBall(location, null); }
public void setBall(FramePoint3DReadOnly location, AppearanceDefinition appearance) { setBall(location, appearance, index); index++; }
public void setBall(double x, double y, double z, AppearanceDefinition appearance) { setBall(x, y, z, appearance, index); index++; }
public void setBall(double x, double y, double z) { setBall(x, y, z, null); }
public void setBall(FramePoint location, int ballIndex) { setBall(location, null, ballIndex); }
public void setBall(FramePoint location, AppearanceDefinition appearance) { setBall(location, appearance, index); index++; }
public void setBall(double x, double y, double z) { setBall(x, y, z, null); }
private void visualize() { if (waypointViz == null) return; for (int i = 0; i < numberWaypoints; i++) waypointViz.setBall(waypointPositions.get(i), i); }
public void setBall(Point3DReadOnly location, AppearanceDefinition appearance, int ballIndex) { setBall(new FramePoint3D(worldFrame, location), appearance, ballIndex); }
public void setBall(Point3DReadOnly location, int ballIndex) { setBall(new FramePoint3D(worldFrame, location), null, ballIndex); }
public void setBall(Point3DReadOnly location, AppearanceDefinition appearance) { setBall(new FramePoint3D(worldFrame, location), appearance); }
private void visualize() { if (trajectoryViz == null) return; for (int i = 0; i < markers; i++) { double time = (double) i / (double) markers; compute(time); getPosition(ballPosition); trajectoryViz.setBall(ballPosition, i); } }
private void visualize() { if (trajectoryViz == null) return; for (int i = 0; i < markers; i++) { double time = (double) i / (double) markers; compute(time); getPosition(ballPosition); trajectoryViz.setBall(ballPosition, i); } }
public void setBall(Point3d pointToTestAboveRamp) { setBall(new FramePoint(ReferenceFrame.getWorldFrame(), pointToTestAboveRamp)); }
public void setBall(Point3d pointToTestAboveRamp, AppearanceDefinition appearance) { setBall(new FramePoint(ReferenceFrame.getWorldFrame(), pointToTestAboveRamp), appearance); }
private void updateCoPCornerPoints() { List<CoPPointsInFoot> copCornerPointPositions = planner.getReferenceCoPGenerator().getWaypoints(); copCornerPoints.reset(); for (int i = 0; i < copCornerPointPositions.size(); i++) { CoPPointsInFoot copPoints = copCornerPointPositions.get(i); for (int j = 0; j < copPoints.getNumberOfCoPPoints(); j++) { copCornerPoints.setBall(copPoints.getWaypointInWorld(j)); } } }
/** * Sets the next ball to the given location, and gives it the given appearance. If all the balls have been set, then does nothing. * @param location FramePoint to set the next ball to. * @param appearance Appearance to give the next ball. */ public void setBall(FramePoint location, AppearanceDefinition appearance, int ballIndex) { //TODO: PDN, note that with current implementation of JME, you can only "set" the appearance once. After that, it will ignore all appearance sets if (!location.getReferenceFrame().isWorldFrame()) throw new RuntimeException(location + " must be in a World Frame!"); setBall(location.getX(), location.getY(), location.getZ(), appearance, ballIndex); }
private void visualizeTrajectory() { t0ForViz = timeIntoStep.getDoubleValue(); tfForViz = swingTime.getDoubleValue(); for (int i = 0; i < numberOfBallsInBag; i++) { tForViz = t0ForViz + (double) i / (double) (numberOfBallsInBag) * (tfForViz - t0ForViz); computePositionsForVis(tForViz); bagOfBalls.setBall(desiredPosition.getFramePointCopy(), i); } }