本文整理了Java中us.ihmc.simulationconstructionset.SimulationConstructionSet.readData()
方法的一些代码示例,展示了SimulationConstructionSet.readData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimulationConstructionSet.readData()
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.SimulationConstructionSet
类名称:SimulationConstructionSet
方法名:readData
暂无
代码示例来源:origin: us.ihmc/valkyrie
private void loadDataAndDoSomeOptimizationTests(HumanoidDiagnosticsWhenHangingSimulation humanoidDiagnosticsWhenHangingSimulation)
{
SimulationConstructionSet simulationConstructionSet = humanoidDiagnosticsWhenHangingSimulation.getSimulationConstructionSet();
simulationConstructionSet.readData("/home/val/Desktop/diagnosticsWhenHangingRenamed.data.gz.data");
humanoidDiagnosticsWhenHangingSimulation.restoreCorruptorVariableValues();
// setInitialCorruptorValues(simulationConstructionSet);
String side = "left";
String[] containsToOptimizeCoM = new String[]{side + "ShoulderPitchLinkCoM", side + "leftShoulderRollLinkCoM", side + "ShoulderYawLinkCoM", side + "ElbowPitchLinkCoM", side + "ForearmLinkCoM"};
String[] containsToOptimizeTorqueScore = new String[]{"ShoulderPitch", "ShoulderRoll", "ShoulderYaw", "ElbowPitch"};
humanoidDiagnosticsWhenHangingSimulation.setVariablesToOptimize(containsToOptimizeCoM, containsToOptimizeTorqueScore);
}
代码示例来源:origin: us.ihmc/valkyrie
private void loadLegDataAndDoSomeOptimizationTests(HumanoidDiagnosticsWhenHangingSimulation humanoidDiagnosticsWhenHangingSimulation)
{
SimulationConstructionSet simulationConstructionSet = humanoidDiagnosticsWhenHangingSimulation.getSimulationConstructionSet();
// simulationConstructionSet.readData("D:/20141205_115537_Valkyrie_VerySlowLegMotions_Processed.data.gz");
simulationConstructionSet.readData("D:/RobotLogData/20141212_155658_Valkyrie_HangingDiagnostics_Renamed.data.gz");
humanoidDiagnosticsWhenHangingSimulation.restoreCorruptorVariableValues();
String side = ""; //"right";
// String[] containsToOptimizeCoM = new String[]{side + "ThighCoM", side + "ShinCoM"};
String[] containsToOptimizeCoM = new String[]{side + "ShinCoM"};
side = ""; //"Right";
// String[] containsToOptimizeTorqueScore = new String[]{"Waist", side + "Hip", side + "Knee", side + "Ankle"};
String[] containsToOptimizeTorqueScore = new String[]{side + "Knee"};
humanoidDiagnosticsWhenHangingSimulation.setVariablesToOptimize(containsToOptimizeCoM, containsToOptimizeTorqueScore);
}
代码示例来源:origin: us.ihmc/valkyrie
private void loadUpperBodyDataAndDoSomeOptimizationTests(HumanoidDiagnosticsWhenHangingSimulation humanoidDiagnosticsWhenHangingSimulation)
{
SimulationConstructionSet simulationConstructionSet = humanoidDiagnosticsWhenHangingSimulation.getSimulationConstructionSet();
// simulationConstructionSet.readData("D:/RobotLogData/20141208_115309_Valkyrie_SlowChestMotionLastSequence/20141208_115309_Valkyrie_SlowChestMotionLastSequence_Processed.data.gz");
simulationConstructionSet.readData("D:/RobotLogData/20141212_125659_Valkyrie_ChestMotionsDiagnostic_Processed.data.gz");
humanoidDiagnosticsWhenHangingSimulation.restoreCorruptorVariableValues();
// setInitialCorruptorLegCoMOffsetValues(simulationConstructionSet);
// String[] containsToOptimizeCoM = new String[]{"chestCoMOffsetX", "chestCoMOffsetZ"}; //, "ShoulderRotatorCoM", "ShoulderAdductorCoM", "ForearmCoM"};
//// String[] containsToOptimizeCoM = new String[]{"chestCoMOffset", "chestMass"}; //, "ShoulderRotatorCoM", "ShoulderAdductorCoM", "ForearmCoM"};
// String[] containsToOptimizeTorqueScore = new String[]{"Waist"};
String[] containsToOptimizeCoM = new String[]{"chestCoMOffset", "ShoulderRotatorCoM", "ShoulderAdductorCoM", "ForearmCoM"};
String[] containsToOptimizeTorqueScore = new String[]{"Waist", "Shoulder", "Elbow"};
humanoidDiagnosticsWhenHangingSimulation.setVariablesToOptimize(containsToOptimizeCoM, containsToOptimizeTorqueScore);
}
代码示例来源:origin: us.ihmc/acsell
private void loadDataAndDoSomeOptimizationTests(HumanoidDiagnosticsWhenHangingSimulation humanoidDiagnosticsWhenHangingSimulation)
{
SimulationConstructionSet simulationConstructionSet = humanoidDiagnosticsWhenHangingSimulation.getSimulationConstructionSet();
// simulationConstructionSet.readData("D:/RobotLogData/20150108_212041_StepprDiagAfterKtScaling_Processed.data.gz");
// simulationConstructionSet.readData("D:/RobotLogData/20150109_120549_StepprDiagSplineTime10s_Processed.data.gz");
simulationConstructionSet.readData("D:/RobotLogData/20150116_150646_Steppr_Diagnosis_Processed.data.gz");
humanoidDiagnosticsWhenHangingSimulation.restoreCorruptorVariableValues();
// setInitialCorruptorValues(simulationConstructionSet);
// humanoidDiagnosticsWhenHangingSimulation.setCorruptorVariableValuesToOptimizeToZero();
String side = "left";
// Forearm only:
// String[] containsToOptimizeCoM = new String[]{side + "ShinCoM"};
String[] containsToOptimizeCoM = new String[]{side + "ThighCoM", side + "ShinCoM", side + "FootCoM"};
// String[] containsToOptimizeCoM = new String[]{side + "ThighCoM", side + "ShinCoM"};
String[] containsToOptimizeTorqueScore = new String[]{"leg_uhz", "leg_lhy", "leg_mhx", "leg_kny", "leg_uay", "leg_lax"};
// String[] containsToOptimizeTorqueScore = new String[]{"kny"};
// String[] containsToOptimizeTorqueScore = new String[]{"uay", "lax"};
humanoidDiagnosticsWhenHangingSimulation.setVariablesToOptimize(containsToOptimizeCoM, containsToOptimizeTorqueScore);
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
scs.writeData(file2);
SimulationConstructionSet scs2 = createNewSCSWithEmptyRobot("simpleRobot2");
scs2.readData(file2);
assertSCSContainsTheVariables(scs2, cameraTrackingXYZVarNames);
closeGivenSCSAndDeleteFile(scs2, file2);
scs.writeSpreadsheetFormattedData("all", file3);
SimulationConstructionSet scs3 = createNewSCSWithEmptyRobot("simpleRobot3");
scs3.readData(file3);
assertSCSContainsTheVariables(scs3, cameraTrackingXYZVarNames);
closeGivenSCSAndDeleteFile(scs3, file3);
内容来源于网络,如有侵权,请联系作者删除!