本文整理了Java中us.ihmc.robotics.robotSide.RobotSide.getShortLowerCaseName
方法的一些代码示例,展示了RobotSide.getShortLowerCaseName
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RobotSide.getShortLowerCaseName
方法的具体详情如下:
包路径:us.ihmc.robotics.robotSide.RobotSide
类名称:RobotSide
方法名:getShortLowerCaseName
暂无
代码示例来源:origin: us.ihmc/thor
private static String getRobotSidePrefix(RobotSide robotSide)
{
return robotSide.getShortLowerCaseName();// "l" or "r"
}
代码示例来源:origin: us.ihmc/RobotiqHandDrivers
@Override
public String getJointName(RobotSide robotSide)
{
return robotSide.getShortLowerCaseName() + "_" + this.toString().toLowerCase();
}
代码示例来源:origin: us.ihmc/robotiq-hand-drivers
@Override
public String getJointName(RobotSide robotSide)
{
return robotSide.getShortLowerCaseName() + "_" + this.toString().toLowerCase();
}
代码示例来源:origin: us.ihmc/ihmc-robot-models
private void addLeg(RobotSide robotSide, Random random)
String prefix = robotSide.getShortLowerCaseName();
代码示例来源:origin: us.ihmc/ihmc-robot-models
private void addArm(RobotSide robotSide, Random random)
String prefix = robotSide.getShortLowerCaseName();
代码示例来源:origin: us.ihmc/acsell
public StepprKneeHysterisisCompensationLogProcessor(YoVariableHolder yoVariableHolder)
{
for (RobotSide robotSide : RobotSide.values)
{
String sideLowerCase = robotSide.getCamelCaseNameForStartOfExpression();
String sideUpperCase = robotSide.getCamelCaseNameForMiddleOfExpression();
String actuatorName = sideLowerCase + "Ankle" + sideUpperCase + "Actuator";
YoDouble ankleOutsideMotorPosition = (YoDouble) yoVariableHolder.getVariable(actuatorName, actuatorName + "MotorEncoderPosition");
ankleOutsideMotorPositions.put(robotSide, ankleOutsideMotorPosition);
YoDouble ankleOutsideMotorVelocity = (YoDouble) yoVariableHolder.getVariable(actuatorName, actuatorName + "MotorVelocityEstimate");
ankleOutsideMotorVelocities.put(robotSide, ankleOutsideMotorVelocity);
qKnees.put(robotSide, (YoDouble) yoVariableHolder.getVariable("bono", "q_" + robotSide.getSideNameFirstLetter().toLowerCase() + "_leg_kny"));
}
for (RobotSide robotSide : RobotSide.values)
{
YoDouble hysteresisAmount = new YoDouble(robotSide.getCamelCaseNameForStartOfExpression() + "KneeHysteresisAmount", registry);
hysteresisAmount.set(0.015);
HysteresisFilteredYoVariable qKneeWithHysteresis = new HysteresisFilteredYoVariable("hyst_q_" + robotSide.getShortLowerCaseName() + "_leg_kny", registry, hysteresisAmount);
kneeHysteresisAmounts.put(robotSide, hysteresisAmount);
qKneesWithHysteresis.put(robotSide, qKneeWithHysteresis);
}
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
assertEquals(leftRobotSide, rightRobotSide.getOppositeSide());
assertEquals("r", rightRobotSide.getShortLowerCaseName());
assertEquals("l", leftRobotSide.getShortLowerCaseName());
内容来源于网络,如有侵权,请联系作者删除!