gpt4 book ai didi

us.ihmc.yoVariables.dataBuffer.YoVariableHolder类的使用及代码示例

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

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

YoVariableHolder介绍

暂无

代码示例

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

public StandPrepVariables(StepprStandPrepSetpoints setpoint, YoVariableHolder variableHolder)
{
  String prefix = setpoint.getName();
  tau_d = (YoDouble) variableHolder.getVariable("StepprStandPrep", prefix + "_tau_d");
  damping = (YoDouble) variableHolder.getVariable("StepprStandPrep", prefix + "_damping");
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setKnob(int channel, String varName, String knobName, YoVariableHolder holder, double min, double max, double exponent, double hires)
{
 if (!holder.hasUniqueVariable(varName))
 {
   PrintTools.warn("Trying to add yovariable to knob, but it does not exist, or more than 1 exists: " + varName);
 }
 setKnob(channel, holder.getVariable(varName), knobName, min, max, exponent, hires);
}

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

public StandPrepVariables(StepprStandPrepSetpoints setpoint, YoVariableHolder variableHolder)
{
  String prefix = setpoint.getName();
  String ajoint = setpoint.getJoints()[0].getSdfName();
  q_d = (YoDouble) variableHolder.getVariable("StepprStandPrep", prefix + "_q_d");
  kp = (YoDouble) variableHolder.getVariable("StepprStandPrep", prefix + "_kp");
  kd = (YoDouble) variableHolder.getVariable("StepprStandPrep", prefix + "_kd");
  damping = (YoDouble) variableHolder.getVariable("StepprStandPrep", prefix + "_damping");
  positionerror = (YoDouble) variableHolder.getVariable("StepprStandPrep", "positionError_" + ajoint);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setKnob(int channel, String name, YoVariableHolder holder, double min, double max, double exponent, double hires)
{
 if (!holder.hasUniqueVariable(name))
 {
   PrintTools.warn("Trying to add yovariable to knob, but it does not exist, or more than 1 exists: " + name);
 }
 setKnob(channel, holder.getVariable(name), min, max, exponent, hires);
}

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

public StandPrepVariables(WandererStandPrepSetpoints setpoint, YoVariableHolder variableHolder)
{
  String prefix = setpoint.getName();
  String ajoint = setpoint.getJoints()[0].getSdfName();
  q_d = (YoDouble) variableHolder.getVariable("WandererStandPrep", prefix + "_q_d");
  kp = (YoDouble) variableHolder.getVariable("WandererStandPrep", prefix + "_kp");
  kd = (YoDouble) variableHolder.getVariable("WandererStandPrep", prefix + "_kd");
  damping = (YoDouble) variableHolder.getVariable("WandererStandPrep", prefix + "_damping");
  positionerror = (YoDouble) variableHolder.getVariable("WandererStandPrep", "positionError_" + ajoint);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setSlider(int channel, String name, YoVariableHolder holder, double min, double max, double exponent, double hires)
{
 if (!holder.hasUniqueVariable(name))
 {
   PrintTools.warn("Trying to add yovariable to slider, but it does not exist, or more than 1 exists: " + name);
 }
 setSlider(channel, holder.getVariable(name), min, max, exponent, hires);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setButton(int channel, String varName, String buttonName, YoVariableHolder holder)
{
 setButton(channel, holder.getVariable(varName), buttonName);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setSlider(int channel, String varName, String sliderName, YoVariableHolder holder, double min, double max, double exponent, double hires)
{
 if (!holder.hasUniqueVariable(varName))
 {
   PrintTools.warn("Trying to add yovariable to slider, but it does not exist, or more than 1 exists: " + varName);
 }
 setSlider(channel, holder.getVariable(varName), sliderName, min, max, exponent, hires);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setKnobButton(int channel, String varName, String buttonName, YoVariableHolder holder)
{
 setKnobButton(channel, holder.getVariable(varName), buttonName);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setKnob(int channel, String name, YoVariableHolder holder, double min, double max, double exponent)
{
 if (!holder.hasUniqueVariable(name))
 {
   PrintTools.warn("Trying to add yovariable to knob, but it does not exist, or more than 1 exists: " + name);
 }
 setKnob(channel, holder.getVariable(name), min, max, exponent);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setButton(int channel, String name, YoVariableHolder holder)
{
 setButton(channel, holder.getVariable(name));
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setKnob(int channel, String varName, String knobName, YoVariableHolder holder, double min, double max, double exponent)
{
 if (!holder.hasUniqueVariable(varName))
 {
   PrintTools.warn("Trying to add yovariable to knob, but it does not exist, or more than 1 exists: " + varName);
 }
 setKnob(channel, holder.getVariable(varName), knobName, min, max, exponent);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setSliderEnum(int channel, String name, YoVariableHolder holder)
{
 setSliderEnum(channel, (YoEnum<?>) holder.getVariable(name));
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setSlider(int channel, String varName, String sliderName, YoVariableHolder holder, double min, double max, double exponent)
{
 if (!holder.hasUniqueVariable(varName))
 {
   PrintTools.warn("Trying to add yovariable to slider, but it does not exist, or more than 1 exists: " + varName);
 }
 YoVariable<?> variable = holder.getVariable(varName);
 if (variable == null)
 {
   PrintTools.error("Ahhhhhhhhh, yoVariable name " + varName + " was not found in the registry. It's not getting added to the sliderboard");
   return;
 }
 setSlider(channel, holder.getVariable(varName), sliderName, min, max, exponent);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setSliderBoolean(int channel, String name, YoVariableHolder holder)
{
 setSliderBoolean(channel, holder.getVariable(name));
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setSlider(int channel, String name, YoVariableHolder holder, double min, double max, double exponent)
{
 if (!holder.hasUniqueVariable(name))
 {
   PrintTools.warn("Trying to add yovariable to slider, but it does not exist, or more than 1 exists: " + name);
 }
 YoVariable<?> variable = holder.getVariable(name);
 if (variable == null)
 {
   PrintTools.error("Ahhhhhhhhh, yoVariable name " + name + " was not found in the registry. It's not getting added to the sliderboard");
   return;
 }
 setSlider(channel, variable, min, max, exponent);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setKnobButton(int channel, String name, YoVariableHolder holder)
{
 setKnobButton(channel, holder.getVariable(name));
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setSliderBoolean(int channel, String varName, String sliderName, YoVariableHolder holder)
{
 setSliderBoolean(channel, holder.getVariable(varName), sliderName);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setButtonEnum(int channel, String name, YoVariableHolder holder, Enum<?> enumValue)
{
 setButtonEnum(channel, (YoEnum<?>) holder.getVariable(name), enumValue);
}

代码示例来源:origin: us.ihmc/simulation-construction-set-tools

public void setSliderEnum(int channel, String varName, String sliderName, YoVariableHolder holder)
{
 setSliderEnum(channel, (YoEnum<?>) holder.getVariable(varName), sliderName);
}

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