gpt4 book ai didi

us.ihmc.robotics.math.frames.YoFrameVector.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 02:36:40 27 4
gpt4 key购买 nike

本文整理了Java中us.ihmc.robotics.math.frames.YoFrameVector.<init>()方法的一些代码示例,展示了YoFrameVector.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameVector.<init>()方法的具体详情如下:
包路径:us.ihmc.robotics.math.frames.YoFrameVector
类名称:YoFrameVector
方法名:<init>

YoFrameVector.<init>介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/IHMCSimulationToolkit

public SimulatedAngularVelocitySensorFromRobot(String name, IMUMount imuMount, YoVariableRegistry registry)
{
 this.imuMount = imuMount;
 
 this.yoFrameVectorPerfect = new YoFrameVector(name + "Perfect", null, registry);
 this.yoFrameVectorNoisy = new YoFrameVector(name + "Noisy", null, registry);
}

代码示例来源:origin: us.ihmc/IHMCSimulationToolkit

public SimulatedLinearAccelerationSensorFromRobot(String name, IMUMount imuMount, YoVariableRegistry registry)
{
 this.imuMount = imuMount;
 this.yoFrameVectorPerfect = new YoFrameVector(name + "Perfect", null, registry);
 this.yoFrameVectorNoisy = new YoFrameVector(name + "Noisy", null, registry);
}

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

public YoSpatialVector(String namePrefix, String nameSuffix, ReferenceFrame expressedInFrame, YoVariableRegistry registry)
{
 this.namePrefix = namePrefix;
 this.nameSuffix = nameSuffix;
 
 linearPart = new YoFrameVector(namePrefix + "Linear", nameSuffix, expressedInFrame, registry);
 angularPart = new YoFrameVector(namePrefix + "Angular", nameSuffix, expressedInFrame, registry);
 this.expressedInFrame = expressedInFrame;
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

public YoTranslationFrame(String frameName, ReferenceFrame parentFrame, YoVariableRegistry registry)
{
 super(frameName, parentFrame);
 translationToParent = new YoFrameVector(frameName, parentFrame, registry);
}

代码示例来源:origin: us.ihmc/IHMCSimulationToolkit

public SimulatedAngularVelocitySensor(String name, TwistCalculator twistCalculator, RigidBody rigidBody, ReferenceFrame measurementFrame, YoVariableRegistry registry)
{
 this.twistCalculator = twistCalculator;
 this.rigidBody = rigidBody;
 this.measurementFrame = measurementFrame;
 
 this.yoFrameVectorPerfect = new YoFrameVector(name + "Perfect", measurementFrame, registry);
 this.yoFrameVectorNoisy = new YoFrameVector(name + "Noisy", measurementFrame, registry);
}

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

public YoVelocityProvider(String name, ReferenceFrame referenceFrame, YoVariableRegistry registry)
{
 this.frameVector = new YoFrameVector(name, referenceFrame, registry);
}

代码示例来源:origin: us.ihmc/IHMCGraphicsDescription

private static YoFrameVector createDirectionVector(String name, YoVariableRegistry registry)
{
 YoFrameVector directionVector = new YoFrameVector(name, "Direction", ReferenceFrame.getWorldFrame(), registry);
 return directionVector;
}

代码示例来源:origin: us.ihmc/SensorProcessing

public SimulatedLinearAccelerationSensor(String name, RigidBody rigidBody, ReferenceFrame measurementFrame,
    SpatialAccelerationCalculator spatialAccelerationCalculator, Vector3d gravitationalAcceleration, YoVariableRegistry registry)
{
 this.rigidBody = rigidBody;
 this.measurementFrame = measurementFrame;
 this.spatialAccelerationCalculator = spatialAccelerationCalculator;
 this.gravitationalAcceleration = new FrameVector(ReferenceFrame.getWorldFrame(), gravitationalAcceleration);
 
 this.yoFrameVectorPerfect = new YoFrameVector(name + "Perfect", measurementFrame, registry);
 this.yoFrameVectorNoisy = new YoFrameVector(name + "Noisy", measurementFrame, registry);
}

代码示例来源:origin: us.ihmc/IHMCSimulationToolkit

public SimulatedPointVelocitySensorFromRobot(String name, RigidBody rigidBody,
  ReferenceFrame bodyFrame, KinematicPoint kinematicPoint, YoVariableRegistry registry)
{
 this.bodyFrame = bodyFrame;
 this.rigidBody = rigidBody;
 
 this.kinematicPoint = kinematicPoint;
 this.yoFrameVectorPerfect = new YoFrameVector(name + "Perfect", ReferenceFrame.getWorldFrame(), registry);
 this.yoFrameVectorNoisy = new YoFrameVector(name + "Noisy", ReferenceFrame.getWorldFrame(), registry);
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

public YoSE3OffsetFrame(String frameName, ReferenceFrame parentFrame, YoVariableRegistry registry)
{
 super(frameName, parentFrame);
 translationToParent = new YoFrameVector(frameName, parentFrame, registry);
 rotationToParent = new YoFrameQuaternion(frameName, parentFrame, registry);
}

代码示例来源:origin: us.ihmc/IHMCSimulationToolkit

public SimulatedPointVelocitySensor(String name, RigidBody rigidBody, FramePoint pointToMeasureVelocityOf,
    TwistCalculator twistCalculator, YoVariableRegistry registry)
{
 this.rigidBody = rigidBody;
 this.twistCalculator = twistCalculator;
 this.pointToMeasureVelocityOf = new FramePoint(pointToMeasureVelocityOf);
 this.yoFrameVectorPerfect = new YoFrameVector(name + "Perfect", ReferenceFrame.getWorldFrame(), registry);
 this.yoFrameVectorNoisy = new YoFrameVector(name + "Noisy", ReferenceFrame.getWorldFrame(), registry);
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

public YoRootJointDesiredConfigurationData(FloatingInverseDynamicsJoint rootJoint, YoVariableRegistry parentRegistry)
{
 YoVariableRegistry registry = new YoVariableRegistry("RootJointDesiredConfigurationData");
 parentRegistry.addChild(registry);
 ReferenceFrame frameAfterJoint = rootJoint.getFrameAfterJoint();
 String namePrefix = "rootJointLowLevel";
 orientation = new YoFrameQuaternion(namePrefix + "DesiredOrientation", worldFrame, registry);
 position = new YoFramePoint(namePrefix + "DesiredPosition", worldFrame, registry);
 linearVelocity = new YoFrameVector(namePrefix + "DesiredLinearVelocity", frameAfterJoint, registry);
 angularVelocity = new YoFrameVector(namePrefix + "DesiredAngularVelocity", frameAfterJoint, registry);
 linearAcceleration = new YoFrameVector(namePrefix + "DesiredLinearAcceleration", frameAfterJoint, registry);
 angularAcceleration = new YoFrameVector(namePrefix + "DesiredAngularAcceleration", frameAfterJoint, registry);
 clear();
}

代码示例来源:origin: us.ihmc/SensorProcessing

public RandomWalkBiasVectorCorruptor(long seed, String namePrefix, double updateDT, YoVariableRegistry parentRegistry)
{
 this.random = new Random(seed);
 this.registry = new YoVariableRegistry(namePrefix + getClass().getSimpleName());
 this.standardDeviation = new DoubleYoVariable(namePrefix + "StdDev", registry);
 this.biasYoFrameVector = new YoFrameVector(namePrefix + "Bias", ReferenceFrame.getWorldFrame(), registry);
 this.squareRootOfUpdateDT = Math.sqrt(updateDT);
 
 parentRegistry.addChild(registry);
}

代码示例来源:origin: us.ihmc/SensorProcessing

public YoFrameVectorControlFlowOutputPort(ControlFlowElement controlFlowElement, String namePrefix, ReferenceFrame frame, YoVariableRegistry registry)
{
 super(namePrefix, controlFlowElement);
 yoFrameVector = new YoFrameVector(namePrefix, frame, registry);
 super.setData(new FrameVector(frame));
}

代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit

public YoParabolicTrajectoryGenerator(String namePrefix, ReferenceFrame referenceFrame, YoVariableRegistry parentRegistry)
{
 this.registry = new YoVariableRegistry(namePrefix + nameSuffix);
 this.referenceFrame = referenceFrame;
 c0 = new YoFrameVector("c0", "", referenceFrame, registry);
 c1 = new YoFrameVector("c1", "", referenceFrame, registry);
 c2 = new YoFrameVector("c2", "", referenceFrame, registry);
 tempInitialize = new FrameVector(referenceFrame);
 tempPackPosition = new FramePoint(referenceFrame);
 tempPackPosition2 = new FramePoint(referenceFrame);
 tempPackVelocity = new FrameVector(referenceFrame);
 parentRegistry.addChild(registry);
}

代码示例来源:origin: us.ihmc/SensorProcessing

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);
}

代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge

public YoFrameVector findYoFrameVector(String vectorPrefix, String vectorSuffix, ReferenceFrame vectorFrame)
{
 DoubleYoVariable x = (DoubleYoVariable) scs.getVariable(createXName(vectorPrefix, vectorSuffix));
 DoubleYoVariable y = (DoubleYoVariable) scs.getVariable(createYName(vectorPrefix, vectorSuffix));
 DoubleYoVariable z = (DoubleYoVariable) scs.getVariable(createZName(vectorPrefix, vectorSuffix));
 if (x == null || y == null || z == null)
   return null;
 else
   return new YoFrameVector(x, y, z, vectorFrame);
}

代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces

public YoFrameVector findYoFrameVector(String vectorPrefix, String vectorSuffix, ReferenceFrame vectorFrame)
{
 DoubleYoVariable x = (DoubleYoVariable) scs.getVariable(createXName(vectorPrefix, vectorSuffix));
 DoubleYoVariable y = (DoubleYoVariable) scs.getVariable(createYName(vectorPrefix, vectorSuffix));
 DoubleYoVariable z = (DoubleYoVariable) scs.getVariable(createZName(vectorPrefix, vectorSuffix));
 if (x == null || y == null || z == null)
   return null;
 else
   return new YoFrameVector(x, y, z, vectorFrame);
}

代码示例来源:origin: us.ihmc/IHMCSimulationToolkit

public QuadrupedDebugFootSwitch(WrenchCalculatorInterface wrenchCalculatorInterface, ContactablePlaneBody contactablePlaneBody, double totalRobotWeight, YoVariableRegistry registry)
{
 this.wrenchCalculatorInterface = wrenchCalculatorInterface;
 this.contactablePlaneBody = contactablePlaneBody;
 this.totalRobotWeight = totalRobotWeight;
 measurementFrame = contactablePlaneBody.getSoleFrame();
 forceThreshold = new DoubleYoVariable(contactablePlaneBody.getName() + "ForceThreshold", registry);
 forceThreshold.set(0.04 * totalRobotWeight);
 
 yoMeasuredForceWorld = new YoFrameVector(contactablePlaneBody.getName() + "MeasuredForceWorld", worldFrame, registry);
 hasFootHitGround = new BooleanYoVariable(contactablePlaneBody.getName() + "HasFootHitGround", registry);
}

代码示例来源:origin: us.ihmc/CommonWalkingControlModules

public MomentumVisualizer(String name, TwistCalculator twistCalculator, YoVariableRegistry registry, YoGraphicsListRegistry graphicsRegistry,
   RigidBody... rigidBodies)
{
 comCalculator = new CenterOfMassCalculator(rigidBodies, ReferenceFrame.getWorldFrame());
 momentumCalculator = new MomentumCalculator(twistCalculator, rigidBodies);
 centerOfMass = new YoFramePoint(name + "CoM", ReferenceFrame.getWorldFrame(), registry);
 linearMomentum = new YoFrameVector(name + "Momentum", ReferenceFrame.getWorldFrame(), registry);
 YoGraphicPosition yoCoMGraphics = new YoGraphicPosition(name + "CoM", centerOfMass, 0.05, YoAppearance.Brown());
 YoGraphicVector yoMomentumGraphics = new YoGraphicVector(name + "Momentum", centerOfMass, linearMomentum, 0.05, YoAppearance.Brown());
 graphicsRegistry.registerYoGraphic(name, yoCoMGraphics);
 graphicsRegistry.registerYoGraphic(name, yoMomentumGraphics);
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com