本文整理了Java中us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry.setYoGraphicsUpdatedRemotely()
方法的一些代码示例,展示了YoGraphicsListRegistry.setYoGraphicsUpdatedRemotely()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoGraphicsListRegistry.setYoGraphicsUpdatedRemotely()
方法的具体详情如下:
包路径:us.ihmc.graphicsDescription.yoGraphics.YoGraphicsListRegistry
类名称:YoGraphicsListRegistry
方法名:setYoGraphicsUpdatedRemotely
暂无
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
private void setupYoRegistries()
{
yoGraphicsListRegistry = new YoGraphicsListRegistry();
yoGraphicsListRegistry.setYoGraphicsUpdatedRemotely(true);
yoGraphicsListRegistryForDetachedOverhead = new YoGraphicsListRegistry();
}
代码示例来源:origin: us.ihmc/IHMCHumanoidBehaviors
yoGraphicsListRegistry.setYoGraphicsUpdatedRemotely(false);
ForceSensorDataHolder forceSensorDataHolder = new ForceSensorDataHolder(Arrays.asList(fullRobotModel.getForceSensorDefinitions()));
HumanoidRobotDataReceiver robotDataReceiver = new HumanoidRobotDataReceiver(fullRobotModel, forceSensorDataHolder);
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
private void createGraphicsAndArtifacts(YoGraphicsListRegistry yoGraphicsListRegistry)
{
yoGraphicsListRegistry.registerYoGraphic("Frames", leftMidZUpFrameViz);
yoGraphicsListRegistry.registerYoGraphic("Frames", rightMidZUpFrameViz);
yoGraphicsListRegistry.registerYoGraphic("target", targetViz);
yoGraphicsListRegistry.registerArtifact("target", targetViz.createArtifact());
yoGraphicsListRegistry.registerArtifact("centroidViz", centroidViz.createArtifact());
yoGraphicsListRegistry.registerYoGraphic("nominalYaw", nominalYawGraphic);
YoArtifactPolygon supportPolygonArtifact = new YoArtifactPolygon("quadSupportPolygonArtifact", supportPolygon, Color.blue, false);
YoArtifactPolygon currentTriplePolygonArtifact = new YoArtifactPolygon("currentTriplePolygonArtifact", currentTriplePolygon, Color.GREEN, false);
yoGraphicsListRegistry.registerArtifact("nominalYawArtifact", nominalYawArtifact);
yoGraphicsListRegistry.registerArtifact("supportPolygon", supportPolygonArtifact);
yoGraphicsListRegistry.registerArtifact("currentTriplePolygon", currentTriplePolygonArtifact);
yoGraphicsListRegistry.setYoGraphicsUpdatedRemotely(true);
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
private BehaviorDispatcher<HumanoidBehaviorType> setupBehaviorDispatcher(String robotName, FullHumanoidRobotModel fullRobotModel, Ros2Node ros2Node,
YoGraphicsListRegistry yoGraphicsListRegistry, YoVariableRegistry registry)
{
ForceSensorDataHolder forceSensorDataHolder = new ForceSensorDataHolder(Arrays.asList(fullRobotModel.getForceSensorDefinitions()));
robotDataReceiver = new HumanoidRobotDataReceiver(fullRobotModel, forceSensorDataHolder);
ROS2Tools.createCallbackSubscription(ros2Node, RobotConfigurationData.class, ControllerAPIDefinition.getPublisherTopicNameGenerator(robotName),
s -> robotDataReceiver.receivedPacket(s.takeNextData()));
BehaviorControlModeSubscriber desiredBehaviorControlSubscriber = new BehaviorControlModeSubscriber();
ROS2Tools.createCallbackSubscription(ros2Node, BehaviorControlModePacket.class, IHMCHumanoidBehaviorManager.getSubscriberTopicNameGenerator(robotName),
s -> desiredBehaviorControlSubscriber.receivedPacket(s.takeNextData()));
HumanoidBehaviorTypeSubscriber desiredBehaviorSubscriber = new HumanoidBehaviorTypeSubscriber();
ROS2Tools.createCallbackSubscription(ros2Node, HumanoidBehaviorTypePacket.class, IHMCHumanoidBehaviorManager.getSubscriberTopicNameGenerator(robotName),
s -> desiredBehaviorSubscriber.receivedPacket(s.takeNextData()));
YoVariableServer yoVariableServer = null;
yoGraphicsListRegistry.setYoGraphicsUpdatedRemotely(false);
BehaviorDispatcher<HumanoidBehaviorType> ret = new BehaviorDispatcher<>(robotName, yoTime, robotDataReceiver, desiredBehaviorControlSubscriber,
desiredBehaviorSubscriber, ros2Node, yoVariableServer, HumanoidBehaviorType.class,
HumanoidBehaviorType.STOP, registry, yoGraphicsListRegistry);
return ret;
}
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
yoGraphicsListRegistry.setYoGraphicsUpdatedRemotely(false);
ForceSensorDataHolder forceSensorDataHolder = new ForceSensorDataHolder(Arrays.asList(fullRobotModel.getForceSensorDefinitions()));
HumanoidRobotDataReceiver robotDataReceiver = new HumanoidRobotDataReceiver(fullRobotModel, forceSensorDataHolder);
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
private BehaviorDispatcher setupBehaviorDispatcher(FullRobotModel fullRobotModel, Ros2Node ros2Node, HumanoidRobotDataReceiver robotDataReceiver,
YoGraphicsListRegistry yoGraphicsListRegistry)
{
BehaviorControlModeSubscriber desiredBehaviorControlSubscriber = new BehaviorControlModeSubscriber();
ROS2Tools.createCallbackSubscription(ros2Node, BehaviorControlModePacket.class, IHMCHumanoidBehaviorManager.getSubscriberTopicNameGenerator(robotName),
s -> desiredBehaviorControlSubscriber.receivedPacket(s.takeNextData()));
HumanoidBehaviorTypeSubscriber desiredBehaviorSubscriber = new HumanoidBehaviorTypeSubscriber();
ROS2Tools.createCallbackSubscription(ros2Node, HumanoidBehaviorTypePacket.class, IHMCHumanoidBehaviorManager.getSubscriberTopicNameGenerator(robotName),
s -> desiredBehaviorSubscriber.receivedPacket(s.takeNextData()));
YoVariableServer yoVariableServer = null;
yoGraphicsListRegistry.setYoGraphicsUpdatedRemotely(false);
BehaviorDispatcher<HumanoidBehaviorType> ret = new BehaviorDispatcher<>(robotName, yoTimeBehaviorDispatcher, robotDataReceiver,
desiredBehaviorControlSubscriber, desiredBehaviorSubscriber, ros2Node,
yoVariableServer, HumanoidBehaviorType.class, HumanoidBehaviorType.STOP, registry,
yoGraphicsListRegistry);
ret.addUpdatable(capturePointUpdatable);
if (wristForceSensorUpdatables != null)
{
ret.addUpdatable(wristForceSensorUpdatables.get(RobotSide.LEFT));
ret.addUpdatable(wristForceSensorUpdatables.get(RobotSide.RIGHT));
}
ret.finalizeStateMachine();
return ret;
}
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
scs.setRobot(robot);
yoGraphicsListRegistry.setYoGraphicsUpdatedRemotely(true);
yoGraphicsListRegistry.registerYoGraphic("centroid", centroidGraphic);
yoGraphicsListRegistry.registerArtifact("copSnapping", centerOfMassViz.createArtifact());
内容来源于网络,如有侵权,请联系作者删除!