gpt4 book ai didi

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

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

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

YoVariableServer.<init>介绍

暂无

代码示例

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

public ExampleServer()
{
 createVariables();
 PeriodicNonRealtimeThreadSchedulerFactory schedulerFactory = new PeriodicNonRealtimeThreadSchedulerFactory();
 yoVariableServer = new YoVariableServer(getClass(), schedulerFactory, null, logSettings, dt);
 yoVariableServer.setMainRegistry(registry , null, null);
}

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

private YoVariableServer startYoVariableServer()
{
 if (!startYoVariableServer)
   return null;
 PeriodicThreadSchedulerFactory scheduler = new PeriodicNonRealtimeThreadSchedulerFactory();
 YoVariableServer yoVariableServer = new YoVariableServer(getClass(), scheduler, modelProvider, LogSettings.TOOLBOX, YO_VARIABLE_SERVER_DT);
 yoVariableServer.setMainRegistry(registry, fullRobotModel.getElevator(), yoGraphicsListRegistry);
 new Thread(() -> yoVariableServer.start()).start();
 yoVariableServerScheduled = executorService
    .scheduleAtFixedRate(createYoVariableServerRunnable(yoVariableServer), 0, updatePeriodMilliseconds, TimeUnit.MILLISECONDS);
 return yoVariableServer;
}

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

protected void startYoVariableServer()
{
 if (!startYoVariableServer)
   return;
 PeriodicThreadScheduler scheduler = new PeriodicNonRealtimeThreadScheduler("WholeBodyIKScheduler");
 yoVariableServer = new YoVariableServer(getClass(), scheduler, modelProvider, LogSettings.TOOLBOX, YO_VARIABLE_SERVER_DT);
 yoVariableServer.setMainRegistry(registry, fullRobotModel, yoGraphicsListRegistry);
 startYoVariableServerOnAThread(yoVariableServer);
 yoVariableServerScheduled = executorService.scheduleAtFixedRate(createYoVariableServerRunnable(yoVariableServer), 0, updatePeriodMilliseconds,
    TimeUnit.MILLISECONDS);
}

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

protected void startYoVariableServer()
{
 if (!startYoVariableServer)
   return;
 PeriodicThreadSchedulerFactory scheduler = new PeriodicNonRealtimeThreadSchedulerFactory();
 yoVariableServer = new YoVariableServer(getClass(), scheduler, modelProvider, LogSettings.TOOLBOX, YO_VARIABLE_SERVER_DT);
 yoVariableServer.setMainRegistry(registry, fullRobotModel.getElevator(), yoGraphicsListRegistry);
 startYoVariableServerOnAThread(yoVariableServer);
 yoVariableServerScheduled = executorService.scheduleAtFixedRate(createYoVariableServerRunnable(yoVariableServer), 0, updatePeriodMilliseconds,
                                 TimeUnit.MILLISECONDS);
}

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

public static PlanarRegionBipedalFootstepPlannerVisualizer createWithYoVariableServer(double dtForViz, FullRobotModel fullRobotModel,
                                           LogModelProvider logModelProvider,
                                           SideDependentList<ConvexPolygon2d> footPolygonsInSoleFrame, String namePrefix)
{
 YoVariableRegistry registry = new YoVariableRegistry(PlanarRegionBipedalFootstepPlannerVisualizerFactory.class.getSimpleName());
 YoGraphicsListRegistry graphicsListRegistry = new YoGraphicsListRegistry();
 PlanarRegionBipedalFootstepPlannerVisualizer footstepPlannerVisualizer = new PlanarRegionBipedalFootstepPlannerVisualizer(10, footPolygonsInSoleFrame,
                                                              registry, graphicsListRegistry);
 PeriodicThreadScheduler scheduler = new PeriodicNonRealtimeThreadScheduler("PlannerScheduler");
 YoVariableServer yoVariableServer = new YoVariableServer(namePrefix + PlanarRegionBipedalFootstepPlannerVisualizerFactory.class.getSimpleName(), scheduler, logModelProvider,
                              LogSettings.FOOTSTEP_PLANNER, dtForViz);
 yoVariableServer.setSendKeepAlive(true);
 footstepPlannerVisualizer.setTickAndUpdatable(yoVariableServer);
 yoVariableServer.setMainRegistry(registry, fullRobotModel, graphicsListRegistry);
 yoVariableServer.start();
 return footstepPlannerVisualizer;
}

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

private void setupYoVariableServer()
{
 if (createYoVariableServer.get())
 {
   yoVariableServer = new YoVariableServer(getClass(), new PeriodicNonRealtimeThreadSchedulerFactory(), robotModel.get().getLogModelProvider(),
                       robotModel.get().getLogSettings(), robotModel.get().getEstimatorDT());
 }
}

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

private void setupYoVariableServer()
{
 if (robotModel.get().getLogSettings().isLog())
 {
   yoVariableServer = new YoVariableServer(getClass(), new PeriodicNonRealtimeThreadScheduler("DRCSimulationYoVariableServer"),
                       robotModel.get().getLogModelProvider(), robotModel.get().getLogSettings(), robotModel.get().getEstimatorDT());
 }
 else
 {
   yoVariableServer = null;
 }
}

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

public IHMCMOCAPLocalizationModule(DRCRobotModel drcRobotModel, MocapPlanarRegionsListManager planarRegionsListManager)
{
 MocapDataClient mocapDataClient = new MocapDataClient();
 mocapDataClient.registerRigidBodiesListener(this);
 packetCommunicator.attachListener(RobotConfigurationData.class, this);
 packetCommunicator.attachListener(FootstepStatusMessage.class, walkingStatusManager);
 PeriodicThreadSchedulerFactory scheduler = new PeriodicNonRealtimeThreadSchedulerFactory();
 LogModelProvider logModelProvider = drcRobotModel.getLogModelProvider();
 
 this.planarRegionsListManager = planarRegionsListManager;
 yoVariableServer = new YoVariableServer(getClass(), scheduler, logModelProvider, drcRobotModel.getLogSettings(), MOCAP_SERVER_DT);
 fullRobotModel = drcRobotModel.createFullRobotModel();
 yoVariableServer.setMainRegistry(registry, fullRobotModel.getElevator(), null);
 PrintTools.info("Starting server");
 yoVariableServer.start();
 
 try
 {
   packetCommunicator.connect();
 }
 catch (IOException e)
 {
   e.printStackTrace();
 }
}

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

yoVariableServer = new YoVariableServer(getClass(), new PeriodicRealtimeThreadSchedulerFactory(ValkyriePriorityParameters.LOGGER_PRIORITY),
                    robotModel.getLogModelProvider(), robotModel.getLogSettings(), diagnosticControllerDT);

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

LogSettings logSettings = robotModel.getLogSettings();
double estimatorDT = robotModel.getEstimatorDT();
YoVariableServer yoVariableServer = new YoVariableServer(getClass(), yoVariableServerScheduler, logModelProvider, logSettings, estimatorDT);

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

public static void startController(WandererController wandererController)
{
 AcsellSetup.startStreamingData();
 YoVariableRegistry registry = new YoVariableRegistry("wanderer");
 WandererRobotModel robotModel = new WandererRobotModel(true, true);
 PeriodicThreadSchedulerFactory scheduler = new PeriodicRealtimeThreadSchedulerFactory(45);
 YoVariableServer variableServer = new YoVariableServer(WandererSingleThreadedController.class, scheduler, robotModel.getLogModelProvider(), robotModel.getLogSettings(), 0.01);
 AcsellSetup wandererSetup = new AcsellSetup(variableServer);
 PriorityParameters priority = new PriorityParameters(PriorityParameters.getMaximumPriority());
 WandererSingleThreadedController communicator = new WandererSingleThreadedController(robotModel, priority, variableServer, wandererController, registry);
 variableServer.start();
 wandererSetup.start();
 communicator.start();
 ThreadTools.sleepForever();
}

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

yoVariableServer = new YoVariableServer(getClass(), scheduler, modelProvider, LogSettings.BEHAVIOR, BEHAVIOR_YO_VARIABLE_SERVER_DT);

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

public static void startController(StepprController stepprController)
{
 AcsellSetup.startStreamingData();
 YoVariableRegistry registry = new YoVariableRegistry("steppr");
 BonoRobotModel robotModel = new BonoRobotModel(true, true);
 PeriodicThreadSchedulerFactory scheduler = new PeriodicRealtimeThreadSchedulerFactory(45);
 YoVariableServer variableServer = new YoVariableServer(StepprSingleThreadedController.class, scheduler, robotModel.getLogModelProvider(), robotModel.getLogSettings(), 0.01);
 AcsellSetup stepprSetup = new AcsellSetup(variableServer);
 PriorityParameters priority = new PriorityParameters(PriorityParameters.getMaximumPriority());
 StepprSingleThreadedController communicator = new StepprSingleThreadedController(robotModel, priority, variableServer, stepprController, registry);
 variableServer.start();
 stepprSetup.start();
 communicator.start();
 ThreadTools.sleepForever();
}

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

yoVariableServer = new YoVariableServer(getClass(), scheduler, modelProvider, LogSettings.BEHAVIOR, BEHAVIOR_YO_VARIABLE_SERVER_DT);

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

YoVariableServer yoVariableServer = new YoVariableServer(getClass(), new PeriodicRealtimeThreadSchedulerFactory(loggerPriority), robotModel.getLogModelProvider(), robotModel.getLogSettings(),
   robotModel.getEstimatorDT());
HumanoidGlobalDataProducer dataProducer = new HumanoidGlobalDataProducer(controllerPacketCommunicator);

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

YoVariableServer yoVariableServer = new YoVariableServer(getClass(), new PeriodicRealtimeThreadSchedulerFactory(loggerPriority), robotModel.getLogModelProvider(), robotModel.getLogSettings(),
   robotModel.getEstimatorDT());
HumanoidGlobalDataProducer dataProducer = new HumanoidGlobalDataProducer(controllerPacketCommunicator);

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