gpt4 book ai didi

us.ihmc.yoVariables.registry.YoVariableRegistry.getAllParameters()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-17 12:48:40 27 4
gpt4 key购买 nike

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

YoVariableRegistry.getAllParameters介绍

[英]Recursively get all parameters in this and underlying registries
[中]递归地获取此注册表和底层注册表中的所有参数

代码示例

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

public void writeParametersInRegistry(YoVariableRegistry registry)
{
 List<YoParameter<?>> parameters = registry.getAllParameters();
 
 for(int i = 0; i < parameters.size(); i++)
 {
   YoParameter<?> parameter = parameters.get(i);
         NameSpace relativeNamespace = AbstractParameterReader.getRelativeNamespace(parameter.getNameSpace(), registry);
      String value = parameter.getValueAsString();
   String min = String.valueOf(parameter.getVariable().getManualScalingMin());
   String max = String.valueOf(parameter.getVariable().getManualScalingMax());
   setValue(relativeNamespace, parameter.getName(), parameter.getDescription(), parameter.getClass().getSimpleName(), value, min, max);
    }
}

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

unmatchedParametersToPack.clear();
List<YoParameter<?>> parameters = registry.getAllParameters();
Map<String, ParameterData> localMap = new HashMap<>(getValues());

代码示例来源:origin: us.ihmc/ihmc-whole-body-controller

String additionalInfo = "Parameters in registry: " + registry.getAllParameters().size() + "\n" +
            "Parameters using their default value: " + defaultParameters.size() + "\n" +
            "Parameters in XML with no match: " + unmatchedParameters.size();
PrintTools.info("When loading " + registry.getName() + " with " + registry.getAllParameters().size() + " parameters:");
PrintTools.info("\n---> Unmatched in XML <---");
unmatchedParameters.forEach(parameter -> PrintTools.info(parameter));

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