us.ihmc.robotics.time.YoStopwatch.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(124)

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

YoStopwatch.<init>介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors

WaitState(YoDouble yoTime)
{
  stopwatch = new YoStopwatch("waitStopWatch", yoTime, registry);
  stopwatch.start();
  waitTime.set(initialWaitTime);
}

代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors

public SleepBehavior(String robotName, Ros2Node ros2Node, YoDouble yoTime, double sleepTime)
{
 super(robotName, ros2Node);
 this.sleepTime = new YoDouble("sleepTime", registry);
 this.sleepTime.set(sleepTime);
 stopwatch = new YoStopwatch(yoTime);
}

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

@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout = 30000)
public void testStopwatch()
{
 YoVariableRegistry registry = new YoVariableRegistry("test");
 YoDouble yoTime = new YoDouble("t", registry);
 
 testStopwatch(yoTime, new YoStopwatch(yoTime));
 testStopwatch(yoTime, new YoStopwatch("timerTest", yoTime, registry));
}

代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors

public TestGarbageGenerationBehavior(String robotName, Ros2Node ros2Node, HumanoidReferenceFrames referenceFrames, YoDouble yoTime)
{
 super(robotName, ros2Node);
 this.referenceFrames = referenceFrames;
 timer = new YoStopwatch(yoTime);
 armPublisher = createPublisherForController(ArmTrajectoryMessage.class);
 chestPublisher = createPublisherForController(ChestTrajectoryMessage.class);
 footstepPublisher = createPublisherForController(FootstepDataListMessage.class);
}

代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors

public TestICPOptimizationBehavior(String robotName, Ros2Node ros2Node, HumanoidReferenceFrames referenceFrames, YoDouble yoTime)
{
 super(robotName, ros2Node);
 this.referenceFrames = referenceFrames;
 swingTime.set(1.2);
 transferTime.set(0.6);
 sleepTime.set(10.0);
 stepLength.set(0.3);
 timer = new YoStopwatch(yoTime);
 publisher = createPublisherForController(FootstepDataListMessage.class);
}

相关文章