本文整理了Java中us.ihmc.simulationconstructionset.Robot.getName
方法的一些代码示例,展示了Robot.getName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Robot.getName
方法的具体详情如下:
包路径:us.ihmc.simulationconstructionset.Robot
类名称:Robot
方法名:getName
暂无
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
@Override
public String getDescription()
{
return robot.getName();
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
public TorqueSpeedDataExporter(SimulationConstructionSet scs, Robot robot, Class<?> rootClassForDirectory)
{
this(scs, robot, rootClassForDirectory, robot.getName());
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
@Override
public String getName()
{
return robot.getName();
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
public TorqueSpeedDataExporter(SimulationConstructionSet scs, Robot robot)
{
this(scs, robot, robot.getClass(), robot.getName());
}
代码示例来源:origin: us.ihmc/simulation-construction-set-test
private boolean scsContainsTheRobot(SimulationConstructionSet scs, String robotName)
{
Robot[] robots = scs.getRobots();
boolean ret = false;
for (int i = 0; i < robots.length; i++)
{
ret = ret || robots[i].getName().equals(robotName);
}
return ret;
}
代码示例来源:origin: us.ihmc/ihmc-simulation-toolkit
public SDFRobotWriter(Class<? extends Robot> robotClass) throws JAXBException, InstantiationException, IllegalAccessException
{
System.out.println("Creating SDFRobot for: " + robotClass.getSimpleName());
scsRobot = robotClass.newInstance();
scsRobot.update();
String resourceDirectory = robotClass.getResource(".").getFile();
sdfModelName = scsRobot.getName();
sdfFilePath = resourceDirectory + sdfModelName + ".sdf";
System.out.println("SDF file location: " + sdfFilePath);
writeSDFRobotDescriptionFile();
}
代码示例来源:origin: us.ihmc/IHMCSimulationToolkit
public SDFRobotWriter(Class<? extends Robot> robotClass) throws JAXBException, InstantiationException, IllegalAccessException
{
System.out.println("Creating SDFRobot for: " + robotClass.getSimpleName());
scsRobot = robotClass.newInstance();
scsRobot.update();
String resourceDirectory = robotClass.getResource(".").getFile();
sdfModelName = scsRobot.getName();
sdfFilePath = resourceDirectory + sdfModelName + ".sdf";
System.out.println("SDF file location: " + sdfFilePath);
writeSDFRobotDescriptionFile();
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
ConservedQuantitiesChecker(Robot robot)
{
this.robot = robot;
this.rootJoint = (FloatingJoint) robot.getRootJoints().get(0);
this.registry = new YoVariableRegistry(robot.getName() + getClass().getSimpleName());
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
SinusoidalTorqueController(Robot robot)
{
this.t = robot.getYoTime();
this.registry = new YoVariableRegistry(robot.getName() + getClass().getSimpleName());
Joint rootJoint = robot.getRootJoints().get(0);
for(Joint childJoint : rootJoint.getChildrenJoints())
{
recursivelyAddJointTorqueProfile(childJoint);
}
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools-test
public void concludeTesting(int additionalStackDepthForRelevantCallingMethod)
{
if (simulationTestingParameters.getKeepSCSUp())
{
ThreadTools.sleepForever();
}
if (simulationTestingParameters.getCreateSCSVideos())
{
BambooTools.createVideoWithDateTimeClassMethodAndShareOnSharedDriveIfAvailable(scs.getRobots()[0].getName(), scs, additionalStackDepthForRelevantCallingMethod + 1);
}
ThreadTools.sleep(200);
scs.closeAndDispose();
}
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
String tagName = timeStamp + "_" + robot.getName();
代码示例来源:origin: us.ihmc/simulation-construction-set-tools
private void writeInfoToWorkBook(WritableWorkbook workbook)
{
WritableSheet infoSheet = workbook.createSheet("Run info", workbook.getNumberOfSheets());
int labelColumn = 0;
int dataColumn = 1;
int row = 0;
addStringToSheet(infoSheet, labelColumn, row, "Date: ", headerCellFormat);
WritableCell dateCell = new DateTime(dataColumn, row, Date.from(ZonedDateTime.now().toInstant()));
addCell(infoSheet, dateCell);
row++;
addStringToSheet(infoSheet, labelColumn, row, "Robot type: ", headerCellFormat);
addStringToSheet(infoSheet, dataColumn, row, robot.getClass().getSimpleName());
row++;
addStringToSheet(infoSheet, labelColumn, row, "Robot name: ", headerCellFormat);
addStringToSheet(infoSheet, dataColumn, row, robot.getName());
row++;
addStringToSheet(infoSheet, labelColumn, row, "Total mass [kg]: ", headerCellFormat);
addNumberToSheet(infoSheet, dataColumn, row, robot.computeCenterOfMass(new Point3D()));
row++;
addStringToSheet(infoSheet, labelColumn, row, "Run time [s]: ", headerCellFormat);
addNumberToSheet(infoSheet, dataColumn, row, dataBuffer.getEntry(robot.getYoTime()).getMax());
row++;
addStringToSheet(infoSheet, labelColumn, row, "Mechanical cost of transport: ", headerCellFormat);
addNumberToSheet(infoSheet, dataColumn, row, computeMechanicalCostOfTransport());
row++;
}
内容来源于网络,如有侵权,请联系作者删除!