本文整理了Java中us.ihmc.robotDataLogger.handshake.YoVariableHandshakeParser.getYoVariablesList()
方法的一些代码示例,展示了YoVariableHandshakeParser.getYoVariablesList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoVariableHandshakeParser.getYoVariablesList()
方法的具体详情如下:
包路径:us.ihmc.robotDataLogger.handshake.YoVariableHandshakeParser
类名称:YoVariableHandshakeParser
方法名:getYoVariablesList
暂无
代码示例来源: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
this.variables = handshakeParser.getYoVariablesList();
this.jointStates = handshakeParser.getJointStates();
代码示例来源:origin: us.ihmc/ihmc-robot-data-visualizer
robot = new SpecificLogVariableUpdater(selectedFile, robotDescription, parser.getJointStates(), parser.getYoVariablesList(), logProperties,
yoVariablesToUpdate);
dt = parser.getDt();
代码示例来源: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
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
robot = new YoVariableLogPlaybackRobot(selectedFile, robotDescription, jointStates, parser.getYoVariablesList(), logProperties ,scs);
scs.setTimeVariableName(robot.getRobotsYoVariableRegistry().getName() + ".robotTime");
内容来源于网络,如有侵权,请联系作者删除!