gpt4 book ai didi

us.ihmc.robotics.math.trajectories.YoParabolicTrajectoryGenerator.getVelocity()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 06:13:31 25 4
gpt4 key购买 nike

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

YoParabolicTrajectoryGenerator.getVelocity介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit

public void getVelocity(FrameVector3D velocityToPack)
{
 double parameter = minimumJerkTrajectory.getPosition();
 parameter = MathTools.clamp(parameter, 0.0, 1.0);
 parabolicTrajectoryGenerator.getVelocity(tempVector, parameter);
 velocityToPack.setIncludingFrame(tempVector);
 velocityToPack.scale(minimumJerkTrajectory.getVelocity());
}

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

public void getVelocity(FrameVector velocityToPack)
{
 double parameter = minimumJerkTrajectory.getPosition();
 parameter = MathTools.clipToMinMax(parameter, 0.0, 1.0);
 parabolicTrajectoryGenerator.getVelocity(tempVector, parameter);
 velocityToPack.setIncludingFrame(tempVector);
 velocityToPack.scale(minimumJerkTrajectory.getVelocity());
}

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

public void getVelocity(FrameVector velocityToPack)
{
 double parameter = minimumJerkTrajectory.getPosition();
 parameter = MathTools.clipToMinMax(parameter, 0.0, 1.0);
 parabolicTrajectoryGenerator.getVelocity(tempVector, parameter);
 velocityToPack.setIncludingFrame(tempVector);
 velocityToPack.scale(minimumJerkTrajectory.getVelocity());
}

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit

public void getVelocity(FrameVector3D velocityToPack)
{
 double parameter = minimumJerkTrajectory.getPosition();
 parameter = MathTools.clamp(parameter, 0.0, 1.0);
 parabolicTrajectoryGenerator.getVelocity(tempVector, parameter);
 velocityToPack.setIncludingFrame(tempVector);
 velocityToPack.scale(minimumJerkTrajectory.getVelocity());
}

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

public void getAcceleration(FrameVector accelerationToPack)
{
 double parameter = minimumJerkTrajectory.getPosition();
 parameter = MathTools.clipToMinMax(parameter, 0.0, 1.0);
 parabolicTrajectoryGenerator.getAcceleration(accelerationToPack);
 accelerationToPack.scale(minimumJerkTrajectory.getVelocity() * minimumJerkTrajectory.getVelocity());
 parabolicTrajectoryGenerator.getVelocity(tempVector, parameter);
 tempVector.scale(minimumJerkTrajectory.getAcceleration());
 accelerationToPack.add(tempVector);
}

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit

public void getAcceleration(FrameVector3D accelerationToPack)
{
 double parameter = minimumJerkTrajectory.getPosition();
 parameter = MathTools.clamp(parameter, 0.0, 1.0);
 parabolicTrajectoryGenerator.getAcceleration(accelerationToPack);
 accelerationToPack.scale(minimumJerkTrajectory.getVelocity() * minimumJerkTrajectory.getVelocity());
 parabolicTrajectoryGenerator.getVelocity(tempVector, parameter);
 tempVector.scale(minimumJerkTrajectory.getAcceleration());
 accelerationToPack.add(tempVector);
}

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit

public void getAcceleration(FrameVector3D accelerationToPack)
{
 double parameter = minimumJerkTrajectory.getPosition();
 parameter = MathTools.clamp(parameter, 0.0, 1.0);
 parabolicTrajectoryGenerator.getAcceleration(accelerationToPack);
 accelerationToPack.scale(minimumJerkTrajectory.getVelocity() * minimumJerkTrajectory.getVelocity());
 parabolicTrajectoryGenerator.getVelocity(tempVector, parameter);
 tempVector.scale(minimumJerkTrajectory.getAcceleration());
 accelerationToPack.add(tempVector);
}

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

public void getAcceleration(FrameVector accelerationToPack)
{
 double parameter = minimumJerkTrajectory.getPosition();
 parameter = MathTools.clipToMinMax(parameter, 0.0, 1.0);
 parabolicTrajectoryGenerator.getAcceleration(accelerationToPack);
 accelerationToPack.scale(minimumJerkTrajectory.getVelocity() * minimumJerkTrajectory.getVelocity());
 parabolicTrajectoryGenerator.getVelocity(tempVector, parameter);
 tempVector.scale(minimumJerkTrajectory.getAcceleration());
 accelerationToPack.add(tempVector);
}

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test

trajectoryGenerator.getVelocity(velocityFromTrajectoryGenerator, parameter);

代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test

@ContinuousIntegrationTest(estimatedDuration = 0.0)
  @Test(timeout = 30000)
  public void testInitialVelocity()
  {
   YoVariableRegistry registry = new YoVariableRegistry("registry");
   Random random = new Random(186L);
   ReferenceFrame referenceFrame = ReferenceFrame.getWorldFrame();
   YoParabolicTrajectoryGenerator trajectoryGenerator = new YoParabolicTrajectoryGenerator("test", referenceFrame, registry);

   FramePoint3D initialPosition = new FramePoint3D(referenceFrame, RandomGeometry.nextVector3D(random));
   FrameVector3D initialVelocity = new FrameVector3D(referenceFrame, RandomGeometry.nextVector3D(random));
   FramePoint3D finalPosition = new FramePoint3D(referenceFrame, RandomGeometry.nextVector3D(random));
   trajectoryGenerator.initialize(initialPosition, initialVelocity, finalPosition);

   FramePoint3D initialPositionBack = new FramePoint3D(referenceFrame);
   trajectoryGenerator.getPosition(initialPositionBack, 0.0);

   FrameVector3D initialVelocityBack = new FrameVector3D(referenceFrame);
   trajectoryGenerator.getVelocity(initialVelocityBack, 0.0);

   FramePoint3D finalPositionBack = new FramePoint3D(referenceFrame);
   trajectoryGenerator.getPosition(finalPositionBack, 1.0);

   double delta = 0.0;
   EuclidCoreTestTools.assertTuple3DEquals(initialPosition, initialPositionBack, delta);
   EuclidCoreTestTools.assertTuple3DEquals(initialVelocity, initialVelocityBack, delta);
   EuclidCoreTestTools.assertTuple3DEquals(finalPosition, finalPositionBack, delta);
  }
}

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