- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.robotDataLogger.handshake.YoVariableHandshakeParser
类的一些代码示例,展示了YoVariableHandshakeParser
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoVariableHandshakeParser
类的具体详情如下:
包路径:us.ihmc.robotDataLogger.handshake.YoVariableHandshakeParser
类名称:YoVariableHandshakeParser
暂无
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
public YoVariableExtracter(File logFile) throws IOException
{
LogPropertiesReader logProperties = new LogPropertiesReader(new File(logFile, YoVariableLoggerListener.propertyFile));
File handshake = new File(logFile, logProperties.getVariables().getHandshakeAsString());
if (!handshake.exists())
{
throw new RuntimeException("Cannot find " + logProperties.getVariables().getHandshakeAsString());
}
DataInputStream handshakeStream = new DataInputStream(new FileInputStream(handshake));
byte[] handshakeData = new byte[(int) handshake.length()];
handshakeStream.readFully(handshakeData);
handshakeStream.close();
YoVariableHandshakeParser parser = YoVariableHandshakeParser.create(logProperties.getVariables().getHandshakeFileType());
parser.parseFrom(handshakeData);
YoVariableRegistry registry = parser.getRootRegistry();
File logdata = new File(logFile, logProperties.getVariables().getDataAsString());
if(!logdata.exists())
{
throw new RuntimeException("Cannot find " + logProperties.getVariables().getDataAsString());
}
@SuppressWarnings("resource")
final FileChannel logChannel = new FileInputStream(logdata).getChannel();
List<YoVariable<?>> variables = parser.getYoVariablesList();
int jointStateOffset = variables.size();
int numberOfJointStates = JointState.getNumberOfJointStates(parser.getJointStates());
int bufferSize = (1 + jointStateOffset + numberOfJointStates) * 8;
new YoVariableDialog(bufferSize, logChannel, variables, registry);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
public static int getNumberOfStateVariables(HandshakeFileType type, byte[] data) throws IOException
{
YoVariableHandshakeParser parser = create(type);
parser.parseFrom(data);
return parser.getNumberOfStates();
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
static YoVariableHandshakeParser getHandshake(HandshakeFileType type, File handshake) throws IOException
{
if (!handshake.exists())
{
throw new RuntimeException("Cannot find " + handshake);
}
DataInputStream handshakeStream = new DataInputStream(new FileInputStream(handshake));
byte[] handshakeData = new byte[(int) handshake.length()];
handshakeStream.readFully(handshakeData);
handshakeStream.close();
YoVariableHandshakeParser parser = YoVariableHandshakeParser.create(type);
parser.parseFrom(handshakeData);
return parser;
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
handshakeStream.close();
YoVariableHandshakeParser parser = YoVariableHandshakeParser.create(logProperties.getVariables().getHandshakeFileType());
parser.parseFrom(handshakeData);
System.out.println("This log contains " + parser.getNumberOfVariables() + " YoVariables");
List<JointState> jointStates = parser.getJointStates();
robot = new YoVariableLogPlaybackRobot(selectedFile, robotDescription, jointStates, parser.getYoVariablesList(), logProperties ,scs);
scs.setTimeVariableName(robot.getRobotsYoVariableRegistry().getName() + ".robotTime");
double dt = parser.getDt();
System.out.println(getClass().getSimpleName() + ": dt set to " + dt);
scs.setDT(dt, 1);
scs.setPlaybackDesiredFrameRate(0.04);
YoGraphicsListRegistry yoGraphicsListRegistry = parser.getYoGraphicsListRegistry();
scs.addYoGraphicsListRegistry(yoGraphicsListRegistry, false);
scs.attachPlaybackListener(createYoGraphicsUpdater(yoGraphicsListRegistry));
simulationOverheadPlotterFactory.addYoGraphicsListRegistries(yoGraphicsListRegistry);
simulationOverheadPlotterFactory.createOverheadPlotter();
scs.getRootRegistry().addChild(parser.getRootRegistry());
scs.setParameterRootPath(parser.getRootRegistry());
scs.setGroundVisible(false);
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
int bufferSize = handshakeParser.getBufferSize();
this.compressedBuffer = ByteBuffer.allocate(SnappyUtils.maxCompressedLength(bufferSize));
this.variables = handshakeParser.getYoVariablesList();
this.jointStates = handshakeParser.getJointStates();
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
scs.addJLabel(new JLabel("ms"));
YoVariableRegistry yoVariableRegistry = handshakeParser.getRootRegistry();
this.registry.addChild(yoVariableRegistry);
this.registry.addChild(yoVariableClientInterface.getDebugRegistry());
scs.setParameterRootPath(yoVariableRegistry);
List<JointState> jointStates = handshakeParser.getJointStates();
JointUpdater.getJointUpdaterList(robot.getRootJoints(), jointStates, jointUpdaters);
yoGraphicsListRegistry = handshakeParser.getYoGraphicsListRegistry();
scs.addYoGraphicsListRegistry(yoGraphicsListRegistry, false);
SimulationOverheadPlotterFactory simulationOverheadPlotterFactory = scs.createSimulationOverheadPlotterFactory();
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
handshakeStream.readFully(handshakeData);
handshakeStream.close();
logLineLength = YoVariableHandshakeParser.getNumberOfStateVariables(logProperties.getVariables().getHandshakeFileType(), handshakeData);
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
public YoVariableLogVisualizerGUI(File directory, LogProperties properties, MultiVideoDataPlayer player, YoVariableHandshakeParser parser, YoVariableLogPlaybackRobot robot,
SimulationConstructionSet scs)
{
super();
this.multiPlayer = player;
this.robot = robot;
this.scs = scs;
this.directory = directory;
if(properties.getVariables().getCompressed())
{
yoVariableLogCropper = new YoVariableLogCropper(player, directory, properties);
exporter = new YoVariableExporter(scs, directory, properties, parser.getYoVariablesList());
}
else
{
yoVariableLogCropper = null;
exporter = null;
}
setLayout(new GridLayout(1, 2));
addGUIElements(directory, properties);
setVisible(true);
}
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
int bufferSize = handshake.getBufferSize();
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
handshakeStream.readFully(handshakeData);
handshakeStream.close();
int numberOfVariables = YoVariableHandshakeParser.getNumberOfStateVariables(logProperties.getVariables().getHandshakeFileType(), handshakeData);
代码示例来源:origin: us.ihmc/ihmc-robot-data-logger
yoVariableSummarizer = new YoVariableSummarizer(handshakeParser.getYoVariablesList(), handshake.getHandshake().getSummary().getSummaryTriggerVariableAsString(), handshake.getHandshake().getSummary().getSummarizedVariables().toStringArray());
logProperties.getVariables().setSummary(summaryFilename);
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
handshakeStream.close();
YoVariableHandshakeParser parser = YoVariableHandshakeParser.create(logProperties.getVariables().getHandshakeFileType());
parser.parseFrom(handshakeData);
robotDescription = loader.loadRobotDescriptionFromSDF(generalizedSDFRobotModel, null, null, useCollisionMeshes);
YoVariable<?>[] yoVariablesToUpdate = playbackListener.getYovariablesToUpdate(parser.getRootRegistry(), robotDescription);
robot = new SpecificLogVariableUpdater(selectedFile, robotDescription, parser.getJointStates(), parser.getYoVariablesList(), logProperties,
yoVariablesToUpdate);
dt = parser.getDt();
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
handshakeStream.readFully(handshakeData);
handshakeStream.close();
int logLineLength = YoVariableHandshakeParser.getNumberOfStateVariables(logProperties.getVariables().getHandshakeFileType(), handshakeData);
本文整理了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
我是一名优秀的程序员,十分优秀!