gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-15 18:40:40 25 4
gpt4 key购买 nike

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

YoVariable.setValueFromLongBits介绍

暂无

代码示例

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

public abstract void setValueFromLongBits(long value, boolean notifyListeners);

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

private void updateVariable(int offset, YoVariable<?> variable)
{
 variable.setValueFromLongBits(buffer.get(offset), false);
}

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

public void getIndexes()
{
 timestamp.set(logLongArray.get());
 int startPositoin = logLongArray.position();
    for (int i = 0; i < variables.size(); i++)
 {
   YoVariable<?> variable = variables.get(i);
   if(indexes.containsKey(variable))
   {
    indexes.get(variable).set(logLongArray.position());
   }
   variable.setValueFromLongBits(logLongArray.get(), true);
 }
 logLongArray.position(startPositoin);
}

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

public void getIndexes()
{
 timestamp.set(logLongArray.get());
 int startPositoin = logLongArray.position();
    for (int i = 0; i < variables.size(); i++)
 {
   YoVariable<?> variable = variables.get(i);
   if(indexes.containsKey(variable))
   {
    indexes.get(variable).set(logLongArray.position());
   }
   variable.setValueFromLongBits(logLongArray.get(), true);
 }
 logLongArray.position(startPositoin);
}

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

variable.setValueFromLongBits(longBuffer.get(1 + offsets[i]), false);
variable.getValueString(result[i]);
result[i].append(",");

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

variable.setValueFromLongBits(longBuffer.get(1 + offsets[i]), false);
variable.getValueString(result[i]);
result[i].append(",");

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

public boolean readAndProcessALogLineReturnTrueIfDone(double DT)
{
 try
 {
   if (!readLogLine())
   {
    return true;
   }
   timestamp.set(logLongArray.get());
   robotTime.set(TimeTools.nanoSecondstoSeconds(timestamp.getLongValue() - initialTimestamp));
   for (int i = 0; i < variablesToUpdate.length; i++)
   {
    YoVariable<?> variable = variablesToUpdate[i];
    AtomicInteger position = indexes.get(variable);
    
    variable.setValueFromLongBits(logLongArray.get(position.get()), false);
   }
 }
 catch (IOException e)
 {
   e.printStackTrace();
 }
 return false;
}

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

public boolean readAndProcessALogLineReturnTrueIfDone(double DT)
{
 try
 {
   if (!readLogLine())
   {
    return true;
   }
   timestamp.set(logLongArray.get());
   robotTime.set(TimeTools.nanoSecondstoSeconds(timestamp.getLongValue() - initialTimestamp));
   for (int i = 0; i < variablesToUpdate.length; i++)
   {
    YoVariable<?> variable = variablesToUpdate[i];
    AtomicInteger position = indexes.get(variable);
    
    variable.setValueFromLongBits(logLongArray.get(position.get()), false);
   }
 }
 catch (IOException e)
 {
   e.printStackTrace();
 }
 return false;
}

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

long previousValue = variable.getValueAsLongBits();
long newValue = data.get();
variable.setValueFromLongBits(newValue, false);
if (previousValue != newValue)

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

variable.setValueFromLongBits(logLongArray.get(), true);

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

variable.setValueFromLongBits(logLongArray.get(), true);

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

long previousValue = variable.getValueAsLongBits();
long newValue = data.get();
variable.setValueFromLongBits(newValue, false);
if (previousValue != newValue)

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