- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.robotics.math.frames.YoMultipleFramesHelper
类的一些代码示例,展示了YoMultipleFramesHelper
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoMultipleFramesHelper
类的具体详情如下:
包路径:us.ihmc.robotics.math.frames.YoMultipleFramesHelper
类名称:YoMultipleFramesHelper
暂无
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public YoFrameQuaternionInMultipleFrames(String namePrefix, YoVariableRegistry registry, ReferenceFrame... referenceFrames)
{
super(namePrefix, null, registry);
multipleFramesHelper = new YoMultipleFramesHelper(namePrefix, registry, referenceFrames);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public ReferenceFrame getReferenceFrame()
{
return multipleFramesHelper.getCurrentReferenceFrame();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public int getNumberOfReferenceFramesRegistered()
{
return multipleFramesHelper.getNumberOfReferenceFramesRegistered();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout=300000)
public void testCommonUsageOfYoMultipleFramesHelper()
{
String namePrefix = "framesHelper";
YoVariableRegistry registry = new YoVariableRegistry("framesHelper");
ReferenceFrame worldFrame = ReferenceFrame.getWorldFrame();
ReferenceFrame frameA = new TranslationReferenceFrame("frameA", worldFrame);
ReferenceFrame frameB = new TranslationReferenceFrame("frameB", frameA);
YoMultipleFramesHelper helper = new YoMultipleFramesHelper(namePrefix, registry, worldFrame, frameA);
assertEquals(2, helper.getNumberOfReferenceFramesRegistered());
assertTrue(worldFrame == helper.getCurrentReferenceFrame());
assertTrue(worldFrame == helper.getReferenceFrame());
helper.checkReferenceFrameMatch(worldFrame);
assertTrue(helper.isReferenceFrameRegistered(worldFrame));
assertTrue(helper.isReferenceFrameRegistered(frameA));
assertFalse(helper.isReferenceFrameRegistered(frameB));
helper.registerReferenceFrame(frameB);
assertEquals(3, helper.getNumberOfReferenceFramesRegistered());
List<ReferenceFrame> referenceFrames = new ArrayList<ReferenceFrame>();
helper.getRegisteredReferenceFrames(referenceFrames);
assertEquals(3, referenceFrames.size());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
new YoMultipleFramesHelper("framesHelperOne", registry);
fail("Need to have at least one reference frame when you create a YoMultipleFramesHelper");
new YoMultipleFramesHelper("framesHelperTwo", registry, (ReferenceFrame) null);
fail("The Reference Frames cannot be null");
new YoMultipleFramesHelper("framesHelperTwoB", registry);
fail("The Reference Frames cannot be null");
YoMultipleFramesHelper helper = new YoMultipleFramesHelper("framesHelperFour", registry, worldFrame);
assertEquals(1, helper.getNumberOfReferenceFramesRegistered());
helper.switchCurrentReferenceFrame(unregisteredFrame);
fail("Cannot switch to an unregistered frame");
assertEquals(worldFrame, helper.getCurrentReferenceFrame());
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void getRegisteredReferenceFrames(List<ReferenceFrame> referenceFramesToPack)
{
multipleFramesHelper.getRegisteredReferenceFrames(referenceFramesToPack);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
@ContinuousIntegrationTest(estimatedDuration = 0.0)
@Test(timeout=300000)
public void testRepeatFrames()
{
YoVariableRegistry registry = new YoVariableRegistry("framesHelper");
ReferenceFrame worldFrame = ReferenceFrame.getWorldFrame();
YoMultipleFramesHelper helper = new YoMultipleFramesHelper("framesHelperThree", registry, worldFrame, worldFrame);
assertEquals("Should ignore repeat frames!", 1, helper.getNumberOfReferenceFramesRegistered());
helper.registerReferenceFrame(worldFrame);
assertEquals("Should ignore repeat frames!", 1, helper.getNumberOfReferenceFramesRegistered());
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void registerReferenceFrame(ReferenceFrame newReferenceFrame)
{
multipleFramesHelper.registerReferenceFrame(newReferenceFrame);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void setToNaN(ReferenceFrame desiredReferenceFrame)
{
setToNaN();
multipleFramesHelper.switchCurrentReferenceFrame(desiredReferenceFrame);
}
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
/**
* Change the current reference frame for another one that has already been registered.
* @param newCurrentReferenceFrame
* @return ReferenceFrame the previous current reference frame
*/
public ReferenceFrame switchCurrentReferenceFrame(ReferenceFrame newCurrentReferenceFrame)
{
ReferenceFrame previousReferenceFrame = getCurrentReferenceFrame();
currentFrameIndex.set(findRegisteredReferenceFrame(newCurrentReferenceFrame));
return previousReferenceFrame;
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void getRegisteredReferenceFrames(List<ReferenceFrame> referenceFramesToPack)
{
multipleFramesHelper.getRegisteredReferenceFrames(referenceFramesToPack);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public void registerReferenceFrame(ReferenceFrame newReferenceFrame)
{
multipleFramesHelper.registerReferenceFrame(newReferenceFrame);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public void setToNaN(ReferenceFrame desiredReferenceFrame)
{
setToNaN();
multipleFramesHelper.switchCurrentReferenceFrame(desiredReferenceFrame);
}
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public final void getRegisteredReferenceFrames(List<ReferenceFrame> referenceFramesToPack)
{
multipleFramesHelper.getRegisteredReferenceFrames(referenceFramesToPack);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public ReferenceFrame getReferenceFrame()
{
return multipleFramesHelper.getCurrentReferenceFrame();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
@Override
public final void registerReferenceFrame(ReferenceFrame newReferenceFrame)
{
multipleFramesHelper.registerReferenceFrame(newReferenceFrame);
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
/**
* Change the current reference frame and set to zero the coordinates (different from changeFrame() ).
* @return the previous current reference frame.
*/
@Override
public ReferenceFrame switchCurrentReferenceFrame(ReferenceFrame referenceFrame)
{
ReferenceFrame previousReferenceFrame = multipleFramesHelper.switchCurrentReferenceFrame(referenceFrame);
setToZero();
return previousReferenceFrame;
}
本文整理了Java中us.ihmc.robotics.math.frames.YoMultipleFramesHelper.isReferenceFrameRegistered()方法的一些代码示例,
本文整理了Java中us.ihmc.robotics.math.frames.YoMultipleFramesHelper.getCurrentReferenceFrame()方法的一些代码示例,展示
本文整理了Java中us.ihmc.robotics.math.frames.YoMultipleFramesHelper.()方法的一些代码示例,展示了YoMultipleFramesHelper.
本文整理了Java中us.ihmc.robotics.math.frames.YoMultipleFramesHelper.getNumberOfReferenceFramesRegistered()
本文整理了Java中us.ihmc.robotics.math.frames.YoMultipleFramesHelper.switchCurrentReferenceFrame()方法的一些代码示例
本文整理了Java中us.ihmc.robotics.math.frames.YoMultipleFramesHelper.getRegisteredReferenceFrames()方法的一些代码示
本文整理了Java中us.ihmc.robotics.math.frames.YoMultipleFramesHelper.registerReferenceFrame()方法的一些代码示例,展示了Y
我是一名优秀的程序员,十分优秀!