本文整理了Java中us.ihmc.robotics.dataStructures.variable.YoVariable.getValueAsDouble()
方法的一些代码示例,展示了YoVariable.getValueAsDouble()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoVariable.getValueAsDouble()
方法的具体详情如下:
包路径:us.ihmc.robotics.dataStructures.variable.YoVariable
类名称:YoVariable
方法名:getValueAsDouble
暂无
代码示例来源:origin: us.ihmc/IHMCRobotDataLogger
public void update()
{
updateVariable(variableOffset, variable);
if(variable.getValueAsDouble() < minimum)
{
minimum = variable.getValueAsDouble();
}
if(variable.getValueAsDouble() > maximum)
{
maximum = variable.getValueAsDouble();
}
samples++;
average += (variable.getValueAsDouble() - average) / ((double)samples);
}
代码示例来源:origin: us.ihmc/IHMCWholeBodyController
private String formatNumber(YoVariable<?> variable)
{
return numberFormat.format(variable.getValueAsDouble());
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public String getNumericValueAsAString()
{
return Double.toString(getValueAsDouble());
}
代码示例来源:origin: us.ihmc/IHMCWholeBodyController
private void getCurrentCorruptorValues(ArrayList<YoVariable<?>> corruptorVariables, double[] corruptorVariableValues)
{
for (int i = 0; i < corruptorVariables.size(); i++)
{
YoVariable<?> variable = corruptorVariables.get(i);
corruptorVariableValues[i] = variable.getValueAsDouble();
}
}
代码示例来源:origin: us.ihmc/IHMCWholeBodyController
public void rememberCorruptorVariableValues()
{
corruptorVariableValuesToRemember = new double[corruptorVariables.size()];
for (int i=0; i<corruptorVariables.size(); i++)
{
corruptorVariableValuesToRemember[i] = corruptorVariables.get(i).getValueAsDouble();
}
}
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
public void saveYoVariablesAsDoubles()
{
for (int i = 0; i < varsToSave.size(); i++)
{
YoVariable<?> currentYoVariable = varsToSave.get(i);
yoVarsToDoublesMap.put(currentYoVariable, currentYoVariable.getValueAsDouble());
}
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
public void saveYoVariablesAsDoubles()
{
for (int i = 0; i < varsToSave.size(); i++)
{
YoVariable<?> currentYoVariable = varsToSave.get(i);
yoVarsToDoublesMap.put(currentYoVariable, currentYoVariable.getValueAsDouble());
}
}
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
@Override
public void variableChanged(YoVariable<?> v)
{
System.out.println("Change: " + v.getShortName() + " -> " + v.getValueAsDouble());
}
};
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void variableChanged(YoVariable<?> v)
{
matrix.setElement(i, j, v.getValueAsDouble());
}
}
代码示例来源:origin: us.ihmc/SensorProcessing
public void variableChanged(YoVariable variable)
{
output.setValueFromDouble(variable.getValueAsDouble() * multiplicationFactor);
}
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
@Override
public final void takeHistorySnapshot()
{
if (getRecordHistory())
{
synchronized (historicalData)
{
double[] values = new double[variableArray.length];
for (int i = 0; i < variableArray.length; i++)
{
values[i] = variableArray[i].getValueAsDouble();
}
historicalData.add(values);
}
}
}
代码示例来源:origin: us.ihmc/IHMCHumanoidBehaviors
@Override
public void variableChanged(YoVariable<?> v)
{
sendToUI(v.getName(), v.getValueAsDouble());
}
});
代码示例来源:origin: us.ihmc/IHMCRobotDataLogger
@Override
public void variableChanged(YoVariable<?> v)
{
if (sendChangedValue)
{
VariableChangeRequest request = new VariableChangeRequest();
request.variableID = id;
request.requestedValue = v.getValueAsDouble();
kryoObjectClient.consumeObject(request);
}
}
代码示例来源:origin: us.ihmc/RobotDataCommunication
@Override
public void variableChanged(YoVariable<?> v)
{
if (sendChangedValue)
{
VariableChangeRequest request = new VariableChangeRequest();
request.variableID = id;
request.requestedValue = v.getValueAsDouble();
kryoObjectClient.consumeObject(request);
}
}
代码示例来源:origin: us.ihmc/IHMCHumanoidBehaviors
@Override
public void variableChanged(YoVariable<?> v)
{
sendToBehavior(v.getName(), v.getValueAsDouble());
}
});
内容来源于网络,如有侵权,请联系作者删除!