- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.robotDataLogger.YoVariableServer
类的一些代码示例,展示了YoVariableServer
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoVariableServer
类的具体详情如下:
包路径:us.ihmc.robotDataLogger.YoVariableServer
类名称:YoVariableServer
暂无
代码示例来源: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/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
public void addVariablesToStatisticsGenerator(YoVariableServer server)
{
ArrayList<Object> objects = new ArrayList<>();
objects.add(this);
objects.addAll(gcBeanHolders);
for(Object object : objects)
{
Field[] allFields = object.getClass().getDeclaredFields();
for (Field field : allFields)
{
if (YoVariable.class.isAssignableFrom(field.getType()))
{
try
{
YoVariable<?> variable = (YoVariable<?>) field.get(object);
server.addSummarizedVariable(variable);
}
catch (IllegalArgumentException | IllegalAccessException e)
{
e.printStackTrace();
}
}
}
}
}
}
代码示例来源: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-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/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
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/valkyrie
selectedJoint.notifyVariableChangedListeners();
yoVariableServer.setMainRegistry(registry, fullRobotModel.getElevator(), null);
yoVariableServer.start();
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
@Override
public void run()
{
yoVariableServer.start();
}
}).start();
代码示例来源: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/IHMCRobotDataLogger
public void addSummarizedVariable(String variable)
{
if(findVariableInRegistries(variable) == null)
{
throw new RuntimeException("Variable " + variable + " is not registered with the logger");
}
this.summaryProvider.addSummarizedVariable(variable);
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
public void destroy()
{
footstepPlanningController.destroy();
if (yoVariableServerScheduled != null)
{
yoVariableServerScheduled.cancel(true);
}
executorService.shutdownNow();
if (yoVariableServer != null)
{
yoVariableServer.close();
}
realtimeRos2Node.destroy();
if (DEBUG)
PrintTools.debug(this, "Destroyed");
}
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
public void createSummary(YoVariable<?> isWalkingVariable)
{
createSummary(isWalkingVariable.getFullNameWithNameSpace());
}
代码示例来源: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/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
@Override
public void run()
{
yoVariableServer.start();
}
}).start();
代码示例来源: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-robot-data-logger
public void addSummarizedVariable(String variable)
{
if (findVariableInRegistries(variable) == null)
{
throw new RuntimeException("Variable " + variable + " is not registered with the logger");
}
this.summaryProvider.addSummarizedVariable(variable);
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
public void destroy()
{
sleep();
if (yoVariableServerScheduled != null)
{
yoVariableServerScheduled.cancel(true);
yoVariableServerScheduled = null;
}
executorService.shutdownNow();
if (yoVariableServer != null)
{
yoVariableServer.close();
yoVariableServer = null;
}
realtimeRos2Node.destroy();
if (DEBUG)
PrintTools.debug(this, "Destroyed");
}
代码示例来源:origin: us.ihmc/IHMCRobotDataLogger
public void createSummary(YoVariable<?> isWalkingVariable)
{
createSummary(isWalkingVariable.getFullNameWithNameSpace());
}
本文整理了Java中us.ihmc.robotDataLogger.YoVariableServer类的一些代码示例,展示了YoVariableServer类的具体用法。这些代码示例主要来源于Gith
本文整理了Java中us.ihmc.robotDataLogger.YoVariableClient类的一些代码示例,展示了YoVariableClient类的具体用法。这些代码示例主要来源于Gith
本文整理了Java中us.ihmc.kalman.YoKalmanFilter类的一些代码示例,展示了YoKalmanFilter类的具体用法。这些代码示例主要来源于Github/Stackoverf
本文整理了Java中us.ihmc.robotDataLogger.YoVariablesUpdatedListener类的一些代码示例,展示了YoVariablesUpdatedListener类的
本文整理了Java中us.ihmc.robotics.screwTheory.Wrench类的一些代码示例,展示了Wrench类的具体用法。这些代码示例主要来源于Github/Stackoverflo
本文整理了Java中us.ihmc.mecano.spatial.Wrench类的一些代码示例,展示了Wrench类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Mave
本文整理了Java中us.ihmc.yoVariables.variable.YoVariable类的一些代码示例,展示了YoVariable类的具体用法。这些代码示例主要来源于Github/Stac
本文整理了Java中us.ihmc.yoVariables.variable.YoLong类的一些代码示例,展示了YoLong类的具体用法。这些代码示例主要来源于Github/Stackoverflo
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameVector3D类的一些代码示例,展示了YoFrameVector3D类的具体用法。这些代码示例主要来源于G
本文整理了Java中us.ihmc.yoVariables.variable.YoEnum类的一些代码示例,展示了YoEnum类的具体用法。这些代码示例主要来源于Github/Stackoverflo
本文整理了Java中us.ihmc.yoVariables.variable.YoFramePoint3D类的一些代码示例,展示了YoFramePoint3D类的具体用法。这些代码示例主要来源于Git
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicsList类的一些代码示例,展示了YoGraphicsList类的具体用法。这些代码
本文整理了Java中us.ihmc.yoVariables.variable.YoBoolean类的一些代码示例,展示了YoBoolean类的具体用法。这些代码示例主要来源于Github/Stacko
本文整理了Java中us.ihmc.yoVariables.variable.YoInteger类的一些代码示例,展示了YoInteger类的具体用法。这些代码示例主要来源于Github/Stacko
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicPosition类的一些代码示例,展示了YoGraphicPosition类的具体用
本文整理了Java中us.ihmc.graphicsDescription.appearance.YoAppearance类的一些代码示例,展示了YoAppearance类的具体用法。这些代码示例主要
本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry类的一些代码示例,展示了YoGraphicsListReg
本文整理了Java中us.ihmc.yoVariables.variable.YoDouble类的一些代码示例,展示了YoDouble类的具体用法。这些代码示例主要来源于Github/Stackove
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameVector2D类的一些代码示例,展示了YoFrameVector2D类的具体用法。这些代码示例主要来源于G
本文整理了Java中us.ihmc.codecs.yuv.YUVPictureConverter类的一些代码示例,展示了YUVPictureConverter类的具体用法。这些代码示例主要来源于Git
我是一名优秀的程序员,十分优秀!