us.ihmc.robotics.dataStructures.variable.YoVariable.addVariableChangedListener()方法的使用及代码示例

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

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

YoVariable.addVariableChangedListener介绍

暂无

代码示例

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

private YoVariableTestGoal(YoVariable<?>... yoVariables)
{
 for (YoVariable<?> yoVariable : yoVariables)
 {
   yoVariable.addVariableChangedListener(this);
 }
}

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

public void registerYovaribleForAutoSendToUI(YoVariable var)
{
 var.addVariableChangedListener(new VariableChangedListener()
 {
   @Override
   public void variableChanged(YoVariable<?> v)
   {
    sendToUI(v.getName(), v.getValueAsDouble());
   }
 });
}

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

public void registerYovaribleForAutoSendToBehavior(YoVariable var)
{
 var.addVariableChangedListener(new VariableChangedListener()
 {
   @Override
   public void variableChanged(YoVariable<?> v)
   {
    sendToBehavior(v.getName(), v.getValueAsDouble());
   }
 });
}

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

public void startVariableChangedProducers(List<YoVariable<?>> variables, boolean sendChangedValues)
{
 for (int i = 0; i < variables.size(); i++)
 {
   LogControlVariableChangeListener logControlVariableChangeListener = new LogControlVariableChangeListener(i, sendChangedValues);
   variables.get(i).addVariableChangedListener(logControlVariableChangeListener);
   logControlVariableChangeListeners.add(logControlVariableChangeListener);
 }
}

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

public void startVariableChangedProducers(List<YoVariable<?>> variables, boolean sendChangedValues)
{
 for (int i = 0; i < variables.size(); i++)
 {
   LogControlVariableChangeListener logControlVariableChangeListener = new LogControlVariableChangeListener(i, sendChangedValues);
   variables.get(i).addVariableChangedListener(logControlVariableChangeListener);
   logControlVariableChangeListeners.add(logControlVariableChangeListener);
 }
}

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

yoVariable.addVariableChangedListener(new VariableChangedListener()

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

yoVariable.addVariableChangedListener(new VariableChangedListener()

相关文章