gpt4 book ai didi

us.ihmc.robotics.math.frames.YoMultipleFramesHelper.isReferenceFrameRegistered()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 10:21:31 27 4
gpt4 key购买 nike

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

YoMultipleFramesHelper.isReferenceFrameRegistered介绍

[英]Check if a reference frame has already been registered
[中]检查参考框架是否已经注册

代码示例

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public final boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

@Override
public final boolean isReferenceFrameRegistered(ReferenceFrame referenceFrame)
{
 return multipleFramesHelper.isReferenceFrameRegistered(referenceFrame);
}

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

/**
* Register a new reference frame.
* @param newReferenceFrame
* @throws RuntimeException if newReferenceFrame has already been registered
*/
public void registerReferenceFrame(ReferenceFrame newReferenceFrame)
{
 if (newReferenceFrame == null) throw new RuntimeException("The Reference Frames cannot be null.");
 
 if (isReferenceFrameRegistered(newReferenceFrame))
 {
   return;
 }
 referenceFrames.add(newReferenceFrame);
 if (referenceFrames.size() > MAX_REGISTERED_FRAMES) throw new RuntimeException("Can only register 10 frames. If you really want more, we need to make findRegisteredReferenceFrame() more efficient by using a Hash Map of some sort.");
}

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

/**
* Register a new reference frame.
* @param newReferenceFrame
*/
public void registerReferenceFrame(ReferenceFrame newReferenceFrame)
{
 if (newReferenceFrame == null)
   return;
 if (isReferenceFrameRegistered(newReferenceFrame))
 {
   return;
 }
 referenceFrames.put(newReferenceFrame.hashCode(), newReferenceFrame);
}

代码示例来源: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());
}

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