us.ihmc.robotics.robotSide.RobotSide.getShortLowerCaseName()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(84)

本文整理了Java中us.ihmc.robotics.robotSide.RobotSide.getShortLowerCaseName方法的一些代码示例,展示了RobotSide.getShortLowerCaseName的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RobotSide.getShortLowerCaseName方法的具体详情如下:
包路径:us.ihmc.robotics.robotSide.RobotSide
类名称:RobotSide
方法名:getShortLowerCaseName

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());

相关文章