public YoGraphicLineSegment(String namePrefix, String nameSuffix, ReferenceFrame referenceFrame, AppearanceDefinition appearance, YoVariableRegistry registry) { this(namePrefix, new YoFramePoint(namePrefix, nameSuffix + "Start", referenceFrame, registry), new YoFramePoint(namePrefix, nameSuffix + "End", referenceFrame, registry), appearance); }
public YoGraphicTriangle(String name, AppearanceDefinition appearance, YoVariableRegistry registry) { this(name, new YoFramePoint(name + "0", ReferenceFrame.getWorldFrame(), registry), new YoFramePoint(name + "1", ReferenceFrame.getWorldFrame(), registry), new YoFramePoint(name + "2", ReferenceFrame.getWorldFrame(), registry), appearance); }
public YoGraphicTriangle(String name, DoubleYoVariable pointOneX, DoubleYoVariable pointOneY, DoubleYoVariable pointOneZ, DoubleYoVariable pointTwoX, DoubleYoVariable pointTwoY, DoubleYoVariable pointTwoZ, DoubleYoVariable pointThreeX, DoubleYoVariable pointThreeY, DoubleYoVariable pointThreeZ, AppearanceDefinition appearance) { this(name, new YoFramePoint(pointOneX, pointOneY, pointOneZ, ReferenceFrame.getWorldFrame()), new YoFramePoint(pointTwoX, pointTwoY, pointTwoZ, ReferenceFrame.getWorldFrame()), new YoFramePoint(pointThreeX, pointThreeY, pointThreeZ, ReferenceFrame.getWorldFrame()), appearance); }
public YoFramePointArray(int arraySize, String namePrefix, YoVariableRegistry yoVariableRegistry) { yoFramePointArray = new YoFramePoint[arraySize]; for (int index = 0; index < arraySize; index++) { yoFramePointArray[index] = new YoFramePoint(namePrefix + index, ReferenceFrame.getWorldFrame(), yoVariableRegistry); } }
public YoGraphicPosition(String namePrefix, String nameSuffix, YoVariableRegistry registry, double scale, AppearanceDefinition appearance, GraphicType type) { this(namePrefix + nameSuffix, new YoFramePoint(namePrefix, nameSuffix, ReferenceFrame.getWorldFrame(), registry), scale, appearance, type); }
public YoSE3ConfigurationProvider(String name, ReferenceFrame frame, YoVariableRegistry registry) { position = new YoFramePoint(name, frame, registry); orientation = new YoFrameQuaternion(name, frame, registry); }
public YoContactPoint(String namePrefix, int index, ReferenceFrame pointFrame, PlaneContactState parentContactState, YoVariableRegistry parentRegistry) { this.parentContactState = parentContactState; this.namePrefix = namePrefix; //TODO: Check if it is better to create an actual child registry registry = parentRegistry; yoPosition = new YoFramePoint(namePrefix + "Contact" + index, pointFrame, registry); isInContact = new BooleanYoVariable(namePrefix + "InContact" + index, registry); }
public YoPointPositionDataObject(String namePrefix, ReferenceFrame frame, YoVariableRegistry registry) { bodyFixedReferenceFrameName = frame.getName(); yoMeasurementPointInBodyFrame = new YoFramePoint(namePrefix + "PointBody", frame, registry); yoMeasurementPointInWorldFrame = new YoFramePoint(namePrefix + "PointWorld", ReferenceFrame.getWorldFrame(), registry); }
public YoFramePoseUsingQuaternions(String prefix, String suffix, ReferenceFrame frame, YoVariableRegistry registry) { position = new YoFramePoint(prefix, suffix, frame, registry); orientation = new YoFrameQuaternion(prefix, suffix, frame, registry); }
public YoFramePose(String prefix, String suffix, ReferenceFrame frame, YoVariableRegistry registry) { position = new YoFramePoint(prefix, suffix, frame, registry); orientation = new YoFrameOrientation(prefix, suffix, frame, registry); }
public YoGraphicPosition(String namePrefix, String nameSuffix, YoVariableRegistry registry, double scale, AppearanceDefinition appearance) { this(namePrefix + nameSuffix, new YoFramePoint(namePrefix, nameSuffix, ReferenceFrame.getWorldFrame(), registry), scale, appearance); }
private void createABall(String name, int i, double sizeInMeters, AppearanceDefinition appearance, YoVariableRegistry registry) { YoFramePoint yoFramePoint = new YoFramePoint(name + i, "", ReferenceFrame.getWorldFrame(), registry); Double scale = new Double(sizeInMeters); YoGraphicPosition newPosition = new YoGraphicPosition(name + i, yoFramePoint, scale, appearance); dynamicGraphicPositions.add(newPosition); }
public YoFramePointControlFlowOutputPort(ControlFlowElement controlFlowElement, String namePrefix, ReferenceFrame frame, YoVariableRegistry registry) { super(namePrefix, controlFlowElement); yoFramePoint = new YoFramePoint(namePrefix, frame, registry); super.setData(new FramePoint(frame)); }
public YoPointVelocityDataObject(String namePrefix, ReferenceFrame frame, YoVariableRegistry registry) { bodyFixedReferenceFrameName = frame.getName(); yoMeasurementPointInBodyFrame = new YoFramePoint(namePrefix + "PointBody", frame, registry); yoVelocityOfMeasurementPointInWorldFrame = new YoFrameVector(namePrefix + "PointVelocityWorld", ReferenceFrame.getWorldFrame(), registry); }
public YoGraphicShape(String name, Graphics3DObject linkGraphics, String namePrefix, String nameSuffix, YoVariableRegistry registry, double scale, AppearanceDefinition appearance) { this(name, linkGraphics, new YoFramePoint(namePrefix, nameSuffix, ReferenceFrame.getWorldFrame(), registry), new YoFrameOrientation(namePrefix, nameSuffix, ReferenceFrame.getWorldFrame(), registry), scale); }
public YoGraphicCoordinateSystem(String namePrefix, String nameSuffix, YoVariableRegistry registry, double scale, AppearanceDefinition arrowColor) { this(namePrefix + nameSuffix, new YoFramePoint(namePrefix, nameSuffix, ReferenceFrame.getWorldFrame(), registry), new YoFrameOrientation(namePrefix, nameSuffix, ReferenceFrame.getWorldFrame(), registry), scale); this.arrowColor = arrowColor; }
public YoGraphicText3D(String name, String text, String namePrefix, String nameSuffix, YoVariableRegistry registry, double scale, AppearanceDefinition appearance) { this(name, text, new YoFramePoint(namePrefix, nameSuffix, ReferenceFrame.getWorldFrame(), registry), new YoFrameOrientation(namePrefix, nameSuffix, ReferenceFrame.getWorldFrame(), registry), scale, appearance); }
public ConstantPositionTrajectoryGenerator(String namePrefix, ReferenceFrame referenceFrame, PositionProvider positionProvider, double finalTime, YoVariableRegistry parentRegistry) { MathTools.checkIfInRange(finalTime, 0.0, Double.POSITIVE_INFINITY); this.positionProvider = positionProvider; this.registry = new YoVariableRegistry(namePrefix + getClass().getSimpleName()); this.position = new YoFramePoint("position", referenceFrame, registry); this.finalTime = new DoubleYoVariable("finalTime", registry); this.time = new DoubleYoVariable("time", registry); this.finalTime.set(finalTime); parentRegistry.addChild(registry); }
public YoGraphicPolygon(String name, int maxNumberOfVertices, YoVariableRegistry registry, double scale, AppearanceDefinition appearance) { this(name, new YoFrameConvexPolygon2d(name + "ConvexPolygon2d", ReferenceFrame.getWorldFrame(), maxNumberOfVertices, registry), new YoFramePoint(name + "Position", ReferenceFrame.getWorldFrame(), registry), new YoFrameOrientation(name + "Orientation", ReferenceFrame.getWorldFrame(), registry), scale, appearance); }
public YoFramePoint findYoFramePoint(String pointPrefix, String pointSuffix, ReferenceFrame pointFrame) { DoubleYoVariable x = (DoubleYoVariable) scs.getVariable(createXName(pointPrefix, pointSuffix)); DoubleYoVariable y = (DoubleYoVariable) scs.getVariable(createYName(pointPrefix, pointSuffix)); DoubleYoVariable z = (DoubleYoVariable) scs.getVariable(createZName(pointPrefix, pointSuffix)); if (x == null || y == null || z == null) return null; else return new YoFramePoint(x, y, z, pointFrame); }