本文整理了Java中us.ihmc.robotics.math.trajectories.waypoints.YoOneDoFWaypoint
类的一些代码示例,展示了YoOneDoFWaypoint
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoOneDoFWaypoint
类的具体详情如下:
包路径:us.ihmc.robotics.math.trajectories.waypoints.YoOneDoFWaypoint
类名称:YoOneDoFWaypoint
暂无
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void applyTransform(RigidBodyTransform transform)
{
waypoint1d.applyTransform(transform);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public boolean geometricallyEquals(YoOneDoFWaypoint other, double epsilon)
{
return epsilonEquals(other, epsilon);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public String toString()
{
NumberFormat doubleFormat = new DecimalFormat(" 0.00;-0.00");
String positionString = "position = " + doubleFormat.format(getPosition());
String velocityString = "velocity = " + doubleFormat.format(getVelocity());
return "Waypoint 1D: (" + positionString + ", " + velocityString + ")";
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void set(double position, double velocity)
{
setPosition(position);
setVelocity(velocity);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void set(double time, double position, double velocity)
{
this.time.set(time);
waypoint1d.set(position, velocity);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void setToZero()
{
setTimeToZero();
waypoint1d.setToZero();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void setPosition(double position)
{
waypoint1d.setPosition(position);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public double getVelocity()
{
return waypoint1d.getVelocity();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public double getPosition()
{
return waypoint1d.getPosition();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void setToNaN()
{
setTimeToNaN();
waypoint1d.setToNaN();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public YoOneDoFTrajectoryPoint(String namePrefix, String nameSuffix, YoVariableRegistry registry)
{
this.namePrefix = namePrefix;
this.nameSuffix = nameSuffix;
time = new YoDouble(createName(namePrefix, "time", nameSuffix), registry);
waypoint1d = new YoOneDoFWaypoint(namePrefix, nameSuffix, registry);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public boolean containsNaN()
{
return time.isNaN() || waypoint1d.containsNaN();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void set(double position, double velocity)
{
setPosition(position);
setVelocity(velocity);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public void set(double time, double position, double velocity)
{
this.time.set(time);
waypoint1d.set(position, velocity);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void setToZero()
{
setTimeToZero();
waypoint1d.setToZero();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void setPosition(double position)
{
waypoint1d.setPosition(position);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public double getVelocity()
{
return waypoint1d.getVelocity();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public double getPosition()
{
return waypoint1d.getPosition();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void setToNaN()
{
setTimeToNaN();
waypoint1d.setToNaN();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public YoOneDoFTrajectoryPoint(String namePrefix, String nameSuffix, YoVariableRegistry registry)
{
this.namePrefix = namePrefix;
this.nameSuffix = nameSuffix;
time = new DoubleYoVariable(createName(namePrefix, "time", nameSuffix), registry);
waypoint1d = new YoOneDoFWaypoint(namePrefix, nameSuffix, registry);
}
内容来源于网络,如有侵权,请联系作者删除!