gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-17 13:26:40 28 4
gpt4 key购买 nike

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

YoVariableRegistry.addChild介绍

暂无

代码示例

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

public TrajectoryPointOptimizer(String namePrefix, int dimensions, YoVariableRegistry parentRegistry)
{
 this(namePrefix, dimensions);
 parentRegistry.addChild(registry);
}

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

public FullRobotModelRootJointRewinder(FullRobotModel fullRobotModel, YoVariableRegistry parentRegistry)
{
 this.fullRobotModel = fullRobotModel;
 parentRegistry.addChild(registry);
}

代码示例来源:origin: us.ihmc/ihmc-quadruped-robotics-test

public QuadrupedTestTeleopScript(QuadrupedTeleopManager teleopManager, int updateFrequency, int updateJitter, YoVariableRegistry parentRegistry)
{
 this.teleopManager = teleopManager;
 this.updateFrequency = updateFrequency;
 this.updateJitter = updateJitter;
 parentRegistry.addChild(registry);
}

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

public void setRawOutputWriter(RawOutputWriter rawOutputWriter)
{
 if (this.rawOutputWriter != null)
   throw new RuntimeException("Already have a rawOutputWriter");
 this.rawOutputWriter = rawOutputWriter;
 registry.addChild(rawOutputWriter.getYoVariableRegistry());
}

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

public void setRawSensorReader(RawSensorReader rawSensorReader)
{
 if (this.rawSensorReader != null)
   throw new RuntimeException("Already have a rawSensorReader");
 this.rawSensorReader = rawSensorReader;
 registry.addChild(rawSensorReader.getYoVariableRegistry());
}

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

public void addRawSensorReader(RawSensorReader rawSensorReader)
{
 this.rawSensorReaders.add(rawSensorReader);
 this.registry.addChild(rawSensorReader.getYoVariableRegistry());
}

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

public void addRawOutputWriter(RawOutputWriter rawOutputWriter)
{
 this.rawOutputWriters.add(rawOutputWriter);
 this.registry.addChild(rawOutputWriter.getYoVariableRegistry());
}

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

SingleThreadedRobotControllerExecutor(Robot simulatedRobot, MultiThreadedRobotControlElement robotControlElement, int ticksPerSimulationTick, boolean skipFirstControlCycle, YoVariableRegistry parentRegistry)
{
 this.ticksPerSimulationTick = ticksPerSimulationTick;
 this.robotControlElement = robotControlElement;
 this.skipFirstControlCycle = skipFirstControlCycle;
 this.simulatedRobot = simulatedRobot;
 
 parentRegistry.addChild(robotControlElement.getYoVariableRegistry());
}

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

public void setSensorProcessor(SensorProcessor sensorProcessor)
{
 if (this.sensorProcessor != null)
   throw new RuntimeException("Already have a sensorProcessor");
 this.sensorProcessor = sensorProcessor;
 registry.addChild(sensorProcessor.getYoVariableRegistry());
}

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

public void setOutputProcessor(OutputProcessor outputProcessor)
{
 if (this.outputProcessor != null)
   throw new RuntimeException("Already have a outputProcessor");
 this.outputProcessor = outputProcessor;
 if(this.outputProcessor != null)
 {
   registry.addChild(outputProcessor.getYoVariableRegistry());
 }
}

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

public DisturbanceScript(String name, ForcePerturbable forcePerturbable, YoVariableRegistry parentRegistry)
{
 this.registry = new YoVariableRegistry(name);
 this.forcePerturbable = forcePerturbable;
 this.nextDisturbanceScriptIndex = new YoInteger("nextDisturbanceScriptIndex", registry);
 parentRegistry.addChild(registry);
}

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

public SimulatedSensorHolderAndReader(StateEstimatorSensorDefinitions stateEstimatorSensorDefinitions,
   SensorProcessingConfiguration sensorProcessingConfiguration, YoDouble yoTime, YoVariableRegistry parentRegistry)
{
 this.sensorProcessing = new SensorProcessing(stateEstimatorSensorDefinitions, sensorProcessingConfiguration, registry);
 this.yoTime = yoTime;
 step.set(29831);
 parentRegistry.addChild(registry);
}

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

public void addLogDataProcessor(LogDataProcessorFunction logDataProcessorFunction)
{
 logDataProcessorFunctions.add(logDataProcessorFunction);
 logDataProcessorRegistry.addChild(logDataProcessorFunction.getYoVariableRegistry());
 varsToSave.addAll(logDataProcessorFunction.getYoVariableRegistry().getAllVariables());
}

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

public PositionJointHolder(ValkyrieRosControlSliderBoard valkyrieRosControlSliderBoard, OneDoFJointBasics joint, PositionJointHandle handle,
   YoVariableRegistry parentRegistry, double dt)
{
 super(valkyrieRosControlSliderBoard, joint, parentRegistry, dt);
 this.handle = handle;
 this.positionStepSizeLimiter = new DeltaLimitedYoVariable(handle.getName() + "PositionStepSizeLimiter", registry, 0.15);
 parentRegistry.addChild(registry);
}

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

public ValkyrieRosControlPositionJointControlCommandCalculator(YoPositionJointHandleHolder yoPositionJointHandleHolder, YoVariableRegistry parentRegistry)
{
 this.yoPositionJointHandleHolder = yoPositionJointHandleHolder;
 String positionJumpLimiterBaseName = yoPositionJointHandleHolder.getName();
 YoVariableRegistry registry = new YoVariableRegistry(positionJumpLimiterBaseName + "Command");
 this.positionStepSizeLimiter = new DeltaLimitedYoVariable(positionJumpLimiterBaseName + "PositionStepSizeLimiter", registry, 0.15);
 parentRegistry.addChild(registry);
}

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

public DRCOutputProcessorWithStateChangeSmoother(DRCOutputProcessor drcOutputWriter)
{
 this.drcOutputProcessor = drcOutputWriter;
 if(drcOutputWriter != null)
 {
   registry.addChild(drcOutputWriter.getControllerYoVariableRegistry());
 }
 alphaForJointTorqueForStateChanges.set(0.0);
 slopTime.set(0.16);
 timeAtHighLevelControllerStateChange.set(Double.NEGATIVE_INFINITY);
}

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

@Test// timeout = 30000
public void testYoVariableRegistryChildren()
{
  YoVariableRegistry originalRegistry = createTestRegistry("OriginalRegistry", TEST_VARIABLE_COUNT);
  YoVariableRegistry childRegistry = createTestRegistry("ChildRegistry", TEST_VARIABLE_COUNT);
  originalRegistry.addChild(childRegistry);
  MirroredYoVariableRegistry mirroredRegistry = new MirroredYoVariableRegistry(originalRegistry);
  for (int i = 0; i < mirroredRegistry.getChildren().size(); i++)
  {
    assertTrue(areRegistryVariablesAreEqual(originalRegistry.getChildren().get(i), mirroredRegistry.getChildren().get(i)));
  }
}

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

private YoVariableRegistry createChainOfRegistries(NameSpace fullNameSpace)
{
 String rootName = fullNameSpace.getRootName();
 YoVariableRegistry rootRegistry = new YoVariableRegistry(rootName);
 String subName = fullNameSpace.getNameWithRootStripped();
 if (subName == null)
   return rootRegistry;
 NameSpace subNameSpace = new NameSpace(subName);
 YoVariableRegistry subRegistry = createChainOfRegistries(subNameSpace);
 rootRegistry.addChild(subRegistry);
 return rootRegistry;
}

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

public WrapperForMultiplePositionTrajectoryGenerators(ArrayList<PositionTrajectoryGenerator> positionTrajectoryGenerators, String namePrefix,
   YoVariableRegistry parentRegistry)
{
 YoVariableRegistry registry = new YoVariableRegistry(namePrefix + namePostfix);
 parentRegistry.addChild(registry);
 this.positionTrajectoryGenerators = positionTrajectoryGenerators;
 positionTrajectoryGeneratorIndex = new YoInteger(namePrefix + "PositionTrajectoryGeneratorIndex", registry);
 timeIntoStep = new YoDouble(namePrefix + "TimeIntoStep", registry);
 this.replanPositionTrajectory = new YoBoolean(namePrefix + "ReplanPositionTrajectory", registry);
 this.replanPositionTrajectory.set(false);
}

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

public YoParabolicTrajectoryGenerator(String namePrefix, ReferenceFrame referenceFrame, YoVariableRegistry parentRegistry)
{
 this.registry = new YoVariableRegistry(namePrefix + nameSuffix);
 this.referenceFrame = referenceFrame;
 c0 = new YoFrameVector3D("c0", "", referenceFrame, registry);
 c1 = new YoFrameVector3D("c1", "", referenceFrame, registry);
 c2 = new YoFrameVector3D("c2", "", referenceFrame, registry);
 tempInitialize = new FrameVector3D(referenceFrame);
 tempPackPosition = new FramePoint3D(referenceFrame);
 parentRegistry.addChild(registry);
}

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