gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-13 22:28:03 26 4
gpt4 key购买 nike

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

YoMinimumJerkTrajectory.computeConstants介绍

暂无

代码示例

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

@Deprecated
  public void setFinalPosition(double Xf)
  {
   this.Xf.set(Xf);
   this.computeConstants();
  }
}

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

@Deprecated
  public void setFinalPosition(double Xf)
  {
   this.Xf.set(Xf);
   this.computeConstants();
  }
}

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

@Deprecated
public void updateToFinalPosition(double currentTime, double Xf)
{
 computeTrajectory(currentTime);
 this.T0.set(currentTime);
 this.Xf.set(Xf);
 this.X0.set(getPosition());
 this.V0.set(getVelocity());
 this.A0.set(getAcceleration());
 this.computeConstants();
}

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

@Deprecated
public void updateToFinalPosition(double currentTime, double Xf)
{
 computeTrajectory(currentTime);
 this.T0.set(currentTime);
 this.Xf.set(Xf);
 this.X0.set(getPosition());
 this.V0.set(getVelocity());
 this.A0.set(getAcceleration());
 this.computeConstants();
}

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

public void setParams(double X0, double V0, double A0, double Xf, double Vf, double Af, double T0, double Tf)
{
 this.X0.set(X0);
 this.V0.set(V0);
 this.A0.set(A0);
 this.Xf.set(Xf);
 this.Vf.set(Vf);
 this.Af.set(Af);
 this.T0.set(T0);
 this.Tf.set(Tf);
 this.computeConstants();
}

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

public void setParams(double X0, double V0, double A0, double Xf, double Vf, double Af, double T0, double Tf)
{
 this.X0.set(X0);
 this.V0.set(V0);
 this.A0.set(A0);
 this.Xf.set(Xf);
 this.Vf.set(Vf);
 this.Af.set(Af);
 this.T0.set(T0);
 this.Tf.set(Tf);
 this.computeConstants();
}

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

computeConstants();

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

computeConstants();

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

public void computeTrajectory(double t)
{
 computeConstants();
 double DT = Tf.getDoubleValue() - T0.getDoubleValue();
 double DT2 = DT * DT;
 if (t < T0.getDoubleValue())
 {
   pos = X0.getDoubleValue();
   vel = V0.getDoubleValue();
   acc = A0.getDoubleValue();
   return;
 }
 if (t > Tf.getDoubleValue())
 {
   pos = Xf.getDoubleValue();
   vel = Vf.getDoubleValue();
   acc = Af.getDoubleValue();
   return;
 }
 double tau = (t - T0.getDoubleValue()) / DT;
 double tau2 = tau * tau;
 double tau3 = tau * tau2;
 double tau4 = tau * tau3;
 double tau5 = tau * tau4;
 pos = C0 + C1 * tau + C2 * tau2 + C3 * tau3 + C4 * tau4 + C5 * tau5;
 vel = (C1 + 2.0 * C2 * tau + 3.0 * C3 * tau2 + 4.0 * C4 * tau3 + 5.0 * C5 * tau4) / DT;
 acc = (2.0 * C2 + 6.0 * C3 * tau + 12.0 * C4 * tau2 + 20.0 * C5 * tau3) / DT2;
}

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

public void computeTrajectory(double t)
{
 computeConstants();
 double DT = Tf.getDoubleValue() - T0.getDoubleValue();
 double DT2 = DT * DT;
 if (t < T0.getDoubleValue())
 {
   pos = X0.getDoubleValue();
   vel = V0.getDoubleValue();
   acc = A0.getDoubleValue();
   return;
 }
 if (t > Tf.getDoubleValue())
 {
   pos = Xf.getDoubleValue();
   vel = Vf.getDoubleValue();
   acc = Af.getDoubleValue();
   return;
 }
 double tau = (t - T0.getDoubleValue()) / DT;
 double tau2 = tau * tau;
 double tau3 = tau * tau2;
 double tau4 = tau * tau3;
 double tau5 = tau * tau4;
 pos = C0 + C1 * tau + C2 * tau2 + C3 * tau3 + C4 * tau4 + C5 * tau5;
 vel = (C1 + 2.0 * C2 * tau + 3.0 * C3 * tau2 + 4.0 * C4 * tau3 + 5.0 * C5 * tau4) / DT;
 acc = (2.0 * C2 + 6.0 * C3 * tau + 12.0 * C4 * tau2 + 20.0 * C5 * tau3) / DT2;
}

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