gpt4 book ai didi

us.ihmc.robotDataLogger.YoVariableServer.update()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 07:02:49 27 4
gpt4 key购买 nike

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

YoVariableServer.update介绍

[英]Update main buffer data.
[中]更新主缓冲区数据。

代码示例

代码示例来源:origin: us.ihmc/ihmc-robot-data-logger

/**
* Update main buffer data.
* 
* @param timestamp timestamp to send to logger
*/
public void update(long timestamp)
{
 update(timestamp, mainRegistry);
}

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

/**
* Update main buffer data.
* 
* @param timestamp timestamp to send to logger
*/
public void update(long timestamp)
{
 update(timestamp, mainRegistry);
}

代码示例来源:origin: us.ihmc/ihmc-robot-data-logger

@Override
public void tickAndUpdate(double timeToSetInSeconds)
{
 this.update(Conversions.secondsToNanoseconds(timeToSetInSeconds));
}

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

@Override
public void tickAndUpdate(double timeToSetInSeconds)
{
 this.update(TimeTools.secondsToNanoSeconds(timeToSetInSeconds));   
}

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

@Override
  public void run()
  {
   if (Thread.interrupted())
     return;
   serverTime += Conversions.millisecondsToSeconds(updatePeriodMilliseconds);
   yoVariableServer.update(Conversions.secondsToNanoseconds(serverTime));
  }
};

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

@Override
  public void run()
  {
   if (Thread.interrupted())
     return;
   serverTime += Conversions.millisecondsToSeconds(updatePeriodMilliseconds);
   yoVariableServer.update(Conversions.secondsToNanoseconds(serverTime));
  }
};

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

@Override
  public void run()
  {
   if (Thread.interrupted())
     return;
   serverTime += TimeTools.milliSecondsToSeconds(updatePeriodMilliseconds);
   yoVariableServer.update(TimeTools.secondsToNanoSeconds(serverTime));
  }
};

代码示例来源:origin: us.ihmc/ihmc-robot-data-logger

public void start()
{
 yoVariableServer.start();
 PrintTools.info("Starting to loop.");
 while (true)
 {
   updateVariables();
   yoVariableServer.update(timestamp++);
   ThreadTools.sleepSeconds(dt);
 }
}

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

@Override
public void run()
{
 try
 {
   if (!hasBeenInitialized.getBooleanValue())
   {
    initialize();
    hasBeenInitialized.set(true);
   }
   doControl();
   if (yoVaribleServer != null)
   {
    yoVaribleServer.update(TimeTools.secondsToNanoSeconds(yoTime.getDoubleValue()));
   }
 }
 catch (Exception e)
 {
   e.printStackTrace();
 }
}

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

@Override
public void run()
{
 try
 {
   if (!hasBeenInitialized.getBooleanValue())
   {
    initialize();
    hasBeenInitialized.set(true);
   }
   doControl();
   if (yoVariableServer != null)
   {
    yoVariableServer.update(Conversions.secondsToNanoseconds(yoTime.getDoubleValue()));
   }
 }
 catch (Exception e)
 {
   e.printStackTrace();
 }
}

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

tauDesiredSelected.set(selected.tau_d.getDoubleValue());
yoVariableServer.update(time);

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

yoVariableServer.update(System.currentTimeMillis());

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

yoVariableServer.update(time);

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

@Override
public void receivedPacket(RobotConfigurationData packet)
{
 latestRobotConfigurationData = packet;
 FloatingJointBasics rootJoint = fullRobotModel.getRootJoint();
 TFloatArrayList newJointAngles = packet.getJointAngles();
 TFloatArrayList newJointVelocities = packet.getJointAngles();
 TFloatArrayList newJointTorques = packet.getJointTorques();
 OneDoFJointBasics[] oneDoFJoints = fullRobotModel.getOneDoFJoints();
 for (int i = 0; i < newJointAngles.size(); i++)
 {
   oneDoFJoints[i].setQ(newJointAngles.get(i));
   oneDoFJoints[i].setQd(newJointVelocities.get(i));
   oneDoFJoints[i].setTau(newJointTorques.get(i));
 }
 pelvisTranslationFromRobotConfigurationData.set(packet.getRootTranslation());
 pelvisOrientationFromRobotConfigurationData.set(packet.getRootOrientation());
 rootJoint.getJointPose().setPosition(pelvisTranslationFromRobotConfigurationData.getX(), pelvisTranslationFromRobotConfigurationData.getY(), pelvisTranslationFromRobotConfigurationData.getZ());
 rootJoint.getJointPose().getOrientation().setQuaternion(pelvisOrientationFromRobotConfigurationData.getX(), pelvisOrientationFromRobotConfigurationData.getY(), pelvisOrientationFromRobotConfigurationData.getZ(), pelvisOrientationFromRobotConfigurationData.getS());
 
 computeDriftTransform();
 rootJoint.getPredecessor().updateFramesRecursively();
 yoVariableServer.update(System.currentTimeMillis());
}

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