gpt4 book ai didi

us.ihmc.robotics.math.trajectories.waypoints.YoOneDoFTrajectoryPoint.getPosition()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 01:00:31 26 4
gpt4 key购买 nike

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

YoOneDoFTrajectoryPoint.getPosition介绍

暂无

代码示例

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

private void initializeSubTrajectory(int waypointIndex)
{
 initialPositionProvider.setValue(waypoints.get(waypointIndex).getPosition());
 initialVelocityProvider.setValue(waypoints.get(waypointIndex).getVelocity());
 finalPositionProvider.setValue(waypoints.get(waypointIndex + 1).getPosition());
 finalVelocityProvider.setValue(waypoints.get(waypointIndex + 1).getVelocity());
 double subTrajectoryTime = waypoints.get(waypointIndex + 1).getTime() - waypoints.get(waypointIndex).getTime();
 trajectoryTimeProvider.setValue(subTrajectoryTime);
 subTrajectory.initialize();
}

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

private void initializeSubTrajectory(int waypointIndex)
{
 initialPositionProvider.setValue(waypoints.get(waypointIndex).getPosition());
 initialVelocityProvider.setValue(waypoints.get(waypointIndex).getVelocity());
 finalPositionProvider.setValue(waypoints.get(waypointIndex + 1).getPosition());
 finalVelocityProvider.setValue(waypoints.get(waypointIndex + 1).getVelocity());
 double subTrajectoryTime = waypoints.get(waypointIndex + 1).getTime() - waypoints.get(waypointIndex).getTime();
 trajectoryTimeProvider.setValue(subTrajectoryTime);
 subTrajectory.initialize();
}

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

private void initializeSubTrajectory(int waypointIndex)
{
 initialPositionProvider.setValue(waypoints.get(waypointIndex).getPosition());
 initialVelocityProvider.setValue(waypoints.get(waypointIndex).getVelocity());
 finalPositionProvider.setValue(waypoints.get(waypointIndex + 1).getPosition());
 finalVelocityProvider.setValue(waypoints.get(waypointIndex + 1).getVelocity());
 if (waypointIndex > 0)
   initialAccelerationProvider.setValue(subTrajectory.getAcceleration());
 finalAccelerationProvider.setValue(0.0);
 double subTrajectoryTime = waypoints.get(waypointIndex + 1).getTime() - waypoints.get(waypointIndex).getTime();
 trajectoryTimeProvider.setValue(subTrajectoryTime);
 subTrajectory.initialize();
}

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

private void initializeSubTrajectory(int waypointIndex)
{
 initialPositionProvider.setValue(waypoints.get(waypointIndex).getPosition());
 initialVelocityProvider.setValue(waypoints.get(waypointIndex).getVelocity());
 finalPositionProvider.setValue(waypoints.get(waypointIndex + 1).getPosition());
 finalVelocityProvider.setValue(waypoints.get(waypointIndex + 1).getVelocity());
 if (waypointIndex > 0)
   initialAccelerationProvider.setValue(subTrajectory.getAcceleration());
 finalAccelerationProvider.setValue(0.0);
 double subTrajectoryTime = waypoints.get(waypointIndex + 1).getTime() - waypoints.get(waypointIndex).getTime();
 trajectoryTimeProvider.setValue(subTrajectoryTime);
 subTrajectory.initialize();
}

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

public void getLastWaypoint(OneDoFTrajectoryPointInterface<?> pointToPack)
{
 YoOneDoFTrajectoryPoint lastWaypoint = waypoints.get(numberOfWaypoints.getIntegerValue() - 1);
 pointToPack.setPosition(lastWaypoint.getPosition());
 pointToPack.setVelocity(lastWaypoint.getVelocity());
 pointToPack.setTime(lastWaypoint.getTime());
}

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

@Override
public void initialize()
{
 if (isEmpty())
 {
   throw new RuntimeException("Trajectory has no waypoints.");
 }
 currentWaypointIndex.set(0);
 if (numberOfWaypoints.getIntegerValue() == 1)
 {
   YoOneDoFTrajectoryPoint firstWaypoint = waypoints.get(0);
   initialPositionProvider.setValue(firstWaypoint.getPosition());
   initialVelocityProvider.setValue(firstWaypoint.getVelocity());
   finalPositionProvider.setValue(firstWaypoint.getPosition());
   finalVelocityProvider.setValue(firstWaypoint.getVelocity());
   trajectoryTimeProvider.setValue(0.0);
   subTrajectory.initialize();
 }
 else
 {
   initializeSubTrajectory(0);
 }
}

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

@Override
public void initialize()
{
 if (isEmpty())
 {
   throw new RuntimeException("Trajectory has no waypoints.");
 }
 currentWaypointIndex.set(0);
 if (numberOfWaypoints.getIntegerValue() == 1)
 {
   YoOneDoFTrajectoryPoint firstWaypoint = waypoints.get(0);
   finalPositionProvider.setValue(firstWaypoint.getPosition());
   finalVelocityProvider.setValue(firstWaypoint.getVelocity());
   trajectoryTimeProvider.setValue(0.0);
   subTrajectory.initialize();
 }
 else
   initializeSubTrajectory(0);
}

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

@Override
public void initialize()
{
 if (isEmpty())
 {
   throw new RuntimeException("Trajectory has no waypoints.");
 }
 currentWaypointIndex.set(0);
 if (numberOfWaypoints.getIntegerValue() == 1)
 {
   YoOneDoFTrajectoryPoint firstWaypoint = waypoints.get(0);
   finalPositionProvider.setValue(firstWaypoint.getPosition());
   finalVelocityProvider.setValue(firstWaypoint.getVelocity());
   trajectoryTimeProvider.setValue(0.0);
   subTrajectory.initialize();
 }
 else
   initializeSubTrajectory(0);
}

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

@Override
public void initialize()
{
 if (isEmpty())
 {
   throw new RuntimeException("Trajectory has no waypoints.");
 }
 currentWaypointIndex.set(0);
 if (numberOfWaypoints.getIntegerValue() == 1)
 {
   YoOneDoFTrajectoryPoint firstWaypoint = waypoints.get(0);
   finalPositionProvider.setValue(firstWaypoint.getPosition());
   finalVelocityProvider.setValue(firstWaypoint.getVelocity());
   trajectoryTimeProvider.setValue(0.0);
   subTrajectory.initialize();
 }
 else
   initializeSubTrajectory(0);
}

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