gpt4 book ai didi

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

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

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

YoFrameVector.getFrameTuple介绍

暂无

代码示例

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

/**
* GC-free but unsafe accessor.
*/
public FrameVector getAcceleration()
{
 return acceleration.getFrameTuple();
}

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

/**
* GC-free but unsafe accessor.
*/
public FrameVector getVelocity()
{
 return velocity.getFrameTuple();
}

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

public FrameVector getSensorTorqueRaw(ReferenceFrame desiredFrame)
{
 FrameVector torque = yoSensorTorque.getFrameTuple();
 torque.changeFrame(desiredFrame);
 
 return torque;
}

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

public FrameVector getSensorForceMassCompensated(ReferenceFrame desiredFrame)
{
 FrameVector force = yoSensorForceMassCompensated.getFrameTuple();
 force.changeFrame(desiredFrame);
 
 return force;
}

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

public FrameVector getSensorTorqueMassCompensated(ReferenceFrame desiredFrame)
{
 FrameVector torque = yoSensorTorqueMassCompensated.getFrameTuple();
 torque.changeFrame(desiredFrame);
 
 return torque;
}

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

public FrameVector getSensorForceRaw(ReferenceFrame desiredFrame)
{
 FrameVector force = yoSensorForce.getFrameTuple();
 force.changeFrame(desiredFrame);
 
 return force;
}

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

private double penalizeCandidateFootstep(YoFrameVector penalizationVector, double penalizationWeight)
{
 // TODO sqrt??
 double dotProduct = idealToCandidateVector.dot(penalizationVector.getFrameTuple());
 dotProduct = Math.max(0.0, dotProduct);
 return penalizationWeight * dotProduct;
}

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

public void cross(YoFrameVector yoFrameVector1, YoFrameVector yoFrameVector2)
{
 getFrameTuple().cross(yoFrameVector1.getFrameTuple().getVector(), yoFrameVector2.getFrameTuple().getVector());
 getYoValuesFromFrameTuple();
}

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

protected void putYoValuesIntoWrench()
{
 wrench.setToZero(bodyFrame, expressedInFrame);
 wrench.setLinearPart(linearPart.getFrameTuple());
 wrench.setAngularPart(angularPart.getFrameTuple());
}

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

protected void putYoValuesIntoTwist()
{
 twist.setToZero(bodyFrame, baseFrame, expressedInFrame);
 twist.setLinearPart(linearPart.getFrameTuple());
 twist.setAngularPart(angularPart.getFrameTuple());
}

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

public void getVelocity(FrameVector velocityToPack, double parameter)
{      
 double q = parameter;
 MathTools.checkIfInRange(q, 0.0, 1.0);
 velocityToPack.setToZero(referenceFrame);
 // 2 * c2 * q
 c2.getFrameTuple(velocityToPack);
 velocityToPack.scale(2.0 * q);
 
 // c1
 c1.getFrameTuple(tempPackVelocity);
 velocityToPack.add(tempPackVelocity);
}

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

public void getAcceleration(FrameVector accelerationToPack)
{
 accelerationToPack.setToZero(referenceFrame);
 
 // 2 * c2
 c2.getFrameTuple(accelerationToPack);
 accelerationToPack.scale(2.0);
}

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

@Override
public FrameVector getData()
{
 yoFrameVector.getFrameTuple(super.getData());
 return super.getData();
}

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

public void normalize()
{
 getFrameTuple().normalize();
 getYoValuesFromFrameTuple();
}

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

private void doYoVectorCrossProduct(YoFrameVector v1, YoFrameVector v2, YoFrameVector vecToPack)
  {
   temp.cross(v1.getFrameTuple(), v2.getFrameTuple());
   if (temp.length() > 0)
   {
     temp.normalize();
   }
   vecToPack.set(world, temp.getX(), temp.getY(), temp.getZ());
  }
}

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

public void cross(FrameVector vector1, FrameVector vector2)
{
 getFrameTuple().cross(vector1.getVector(), vector2.getVector());
 getYoValuesFromFrameTuple();
}

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

@Override
protected void putYoValuesIntoFrameWaypoint()
{
 frameWaypoint.setToZero(getReferenceFrame());
 frameWaypoint.setTime(time.getDoubleValue());
 frameWaypoint.setPosition(position.getFrameTuple());
 frameWaypoint.setOrientation(orientation.getFrameOrientation());
 frameWaypoint.setLinearVelocity(linearVelocity.getFrameTuple());
 frameWaypoint.setAngularVelocity(angularVelocity.getFrameTuple());
}

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

private void setVectorFromPoseToPose(YoFrameVector frameVectorToPack, FramePose fromPose, FramePose toPose)
{
 frameVectorToPack.set(toPose.getFramePointCopy());
 FrameVector frameTuple = frameVectorToPack.getFrameTuple();
 frameTuple.sub(fromPose.getFramePointCopy());
 frameVectorToPack.setWithoutChecks(frameTuple);
}

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

@Override
protected void putYoValuesIntoFrameWaypoint()
{
 frameWaypoint.setToZero(getReferenceFrame());
 frameWaypoint.setTime(time.getDoubleValue());
 frameWaypoint.setOrientation(orientation.getFrameOrientation());
 frameWaypoint.setAngularVelocity(angularVelocity.getFrameTuple());
}

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

@Override
protected void putYoValuesIntoFrameWaypoint()
{
 frameWaypoint.setToZero(getReferenceFrame());
 frameWaypoint.setTime(time.getDoubleValue());
 frameWaypoint.setPosition(position.getFrameTuple());
 frameWaypoint.setLinearVelocity(linearVelocity.getFrameTuple());
}

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