本文整理了Java中us.ihmc.robotics.robotSide.RobotSide.getCamelCaseNameForMiddleOfExpression
方法的一些代码示例,展示了RobotSide.getCamelCaseNameForMiddleOfExpression
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RobotSide.getCamelCaseNameForMiddleOfExpression
方法的具体详情如下:
包路径:us.ihmc.robotics.robotSide.RobotSide
类名称:RobotSide
方法名:getCamelCaseNameForMiddleOfExpression
暂无
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public String getPascalCaseName()
{
return getCamelCaseNameForMiddleOfExpression();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public String getShortLowerCaseName()
{
return getCamelCaseNameForMiddleOfExpression().substring(0, 1).toLowerCase();
}
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit
public String getShortLowerCaseName()
{
return getCamelCaseNameForMiddleOfExpression().substring(0, 1).toLowerCase();
}
代码示例来源:origin: us.ihmc/SensorProcessing
private String removeSidePrefixFromName(String name)
{
for (RobotSide robotSide : RobotSide.values)
{
name = name.replace(robotSide.getCamelCaseNameForMiddleOfExpression(), "");
name = name.replace(robotSide.getCamelCaseNameForStartOfExpression(), "");
}
return name;
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
String side = robotSide.getCamelCaseNameForMiddleOfExpression();
String desiredCoPNameSpace = PlaneContactWrenchProcessor.class.getSimpleName();
String desiredCoPName = side + "SoleCoP2d";
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public AbstractDesiredFootstepCalculator(YoVariableRegistry parentRegistry)
{
for (RobotSide robotSide : RobotSide.values)
{
String namePrefix = robotSide.getCamelCaseNameForMiddleOfExpression() + "Footstep";
YoFramePoint footstepPosition = new YoFramePoint(namePrefix + "Position", worldFrame, registry);
footstepPositions.put(robotSide, footstepPosition);
YoFrameQuaternion footstepOrientation = new YoFrameQuaternion(namePrefix + "Orientation", "", worldFrame, registry);
footstepOrientations.put(robotSide, footstepOrientation);
}
parentRegistry.addChild(registry);
}
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
String side = robotSide.getCamelCaseNameForMiddleOfExpression();
String desiredCoPNameSpace = PlaneContactWrenchProcessor.class.getSimpleName();
String desiredCoPName = side + "SoleCoP2d";
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
String side = robotSide.getCamelCaseNameForMiddleOfExpression();
String desiredCoPNameSpace = PlaneContactWrenchProcessor.class.getSimpleName();
String desiredCoPName = side + "SoleCoP2d";
代码示例来源: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-avatar-interfaces-test
+ robotSide.getCamelCaseNameForMiddleOfExpression(), registry);
touchdownTimeForSlipMap.put(robotSide, touchdownTimeForSlip);
YoEnum<SlipState> slipState = new YoEnum<SlipState>(name + "SlipState" + robotSide.getCamelCaseNameForMiddleOfExpression(), registry,
SlipState.class);
slipState.set(SlipState.NO_CONTACT);
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
public BipedSupportPolygons(SideDependentList<ReferenceFrame> ankleZUpFrames, ReferenceFrame midFeetZUpFrame,
SideDependentList<ReferenceFrame> soleZUpFrames, YoVariableRegistry parentRegistry, YoGraphicsListRegistry yoGraphicsListRegistry)
{
this.ankleZUpFrames = ankleZUpFrames;
this.midFeetZUp = midFeetZUpFrame;
this.soleZUpFrames = soleZUpFrames;
supportPolygonViz = new YoFrameConvexPolygon2d("combinedPolygon", "", worldFrame, 2 * maxNumberOfContactPointsPerFoot, registry);
ArtifactList artifactList = new ArtifactList(getClass().getSimpleName());
YoArtifactPolygon supportPolygonArtifact = new YoArtifactPolygon("Combined Polygon", supportPolygonViz, Color.pink, false);
artifactList.add(supportPolygonArtifact);
for (RobotSide robotSide : RobotSide.values)
{
footPolygonsInWorldFrame.put(robotSide, new FrameConvexPolygon2d());
footPolygonsInSoleFrame.put(robotSide, new FrameConvexPolygon2d());
footPolygonsInSoleZUpFrame.put(robotSide, new FrameConvexPolygon2d());
footPolygonsInAnkleZUp.put(robotSide, new FrameConvexPolygon2d());
footPolygonsInMidFeetZUp.put(robotSide, new FrameConvexPolygon2d());
String robotSidePrefix = robotSide.getCamelCaseNameForStartOfExpression();
YoFrameConvexPolygon2d footPolygonViz = new YoFrameConvexPolygon2d(robotSidePrefix + "FootPolygon", "", worldFrame, maxNumberOfContactPointsPerFoot, registry);
footPolygonsViz.put(robotSide, footPolygonViz);
YoArtifactPolygon footPolygonArtifact = new YoArtifactPolygon(robotSide.getCamelCaseNameForMiddleOfExpression() + " Foot Polygon", footPolygonViz, defaultFeetColors.get(robotSide), false);
artifactList.add(footPolygonArtifact);
}
if (yoGraphicsListRegistry != null)
{
yoGraphicsListRegistry.registerArtifactList(artifactList);
}
parentRegistry.addChild(registry);
}
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
String side = robotSide.getCamelCaseNameForMiddleOfExpression();
String bodyName = contactableFeet.get(robotSide).getName();
String copNamePrefix = bodyName + "StateEstimator";
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
String side = robotSide.getCamelCaseNameForMiddleOfExpression();
String bodyName = contactableFeet.get(robotSide).getName();
String copNamePrefix = bodyName + "StateEstimator";
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces
public HumanoidKinematicsToolboxController(CommandInputManager commandInputManager, StatusMessageOutputManager statusOutputManager,
FullHumanoidRobotModel desiredFullRobotModel, YoGraphicsListRegistry yoGraphicsListRegistry,
YoVariableRegistry parentRegistry)
{
super(commandInputManager, statusOutputManager, desiredFullRobotModel.getRootJoint(), getAllJointsExcludingHands(desiredFullRobotModel),
createListOfControllableRigidBodies(desiredFullRobotModel), yoGraphicsListRegistry, parentRegistry);
this.desiredFullRobotModel = desiredFullRobotModel;
footWeight.set(200.0);
momentumWeight.set(1.0);
for (RobotSide robotSide : RobotSide.values)
{
if (desiredFullRobotModel.getHand(robotSide) != null)
setupVisualization(desiredFullRobotModel.getHand(robotSide));
setupVisualization(desiredFullRobotModel.getFoot(robotSide));
}
for (RobotSide robotSide : RobotSide.values)
{
String side = robotSide.getCamelCaseNameForMiddleOfExpression();
String sidePrefix = robotSide.getCamelCaseNameForStartOfExpression();
isFootInSupport.put(robotSide, new YoBoolean("is" + side + "FootInSupport", registry));
initialFootPoses.put(robotSide, new YoFramePose3D(sidePrefix + "FootInitial", worldFrame, registry));
}
populateJointLimitReductionFactors();
}
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
defaultFootPolygons.put(robotSide, defaultFootPolygon.getConvexPolygon2d());
String sidePrefix = robotSide.getCamelCaseNameForMiddleOfExpression();
YoFrameVector2d entryCMPUserOffset = new YoFrameVector2d(namePrefix + sidePrefix + "EntryCMPConstantOffsets", null, registry);
entryCMPUserOffsets.put(robotSide, entryCMPUserOffset);
代码示例来源:origin: us.ihmc/IHMCHumanoidBehaviors
public WholeBodyInverseKinematicsBehavior(String namePrefix, FullHumanoidRobotModelFactory fullRobotModelFactory, DoubleYoVariable yoTime,
CommunicationBridgeInterface outgoingCommunicationBridge, FullHumanoidRobotModel fullRobotModel)
{
super(namePrefix, outgoingCommunicationBridge);
this.yoTime = yoTime;
this.fullRobotModel = fullRobotModel;
solutionQualityThreshold = new DoubleYoVariable(behaviorName + "SolutionQualityThreshold", registry);
solutionQualityThreshold.set(0.005);
isPaused = new BooleanYoVariable(behaviorName + "IsPaused", registry);
isStopped = new BooleanYoVariable(behaviorName + "IsStopped", registry);
isDone = new BooleanYoVariable(behaviorName + "IsDone", registry);
hasSolverFailed = new BooleanYoVariable(behaviorName + "HasSolverFailed", registry);
hasSentMessageToController = new BooleanYoVariable(behaviorName + "HasSentMessageToController", registry);
currentSolutionQuality = new DoubleYoVariable(behaviorName + "CurrentSolutionQuality", registry);
trajectoryTime = new DoubleYoVariable(behaviorName + "TrajectoryTime", registry);
timeSolutionSentToController = new DoubleYoVariable(behaviorName + "TimeSolutionSentToController", registry);
for (RobotSide robotSide : RobotSide.values)
{
String side = robotSide.getCamelCaseNameForMiddleOfExpression();
YoFramePoint desiredHandPosition = new YoFramePoint(behaviorName + "Desired" + side + "Hand", worldFrame, registry);
yoDesiredHandPositions.put(robotSide, desiredHandPosition);
YoFrameQuaternion desiredHandOrientation = new YoFrameQuaternion(behaviorName + "Desired" + side + "Hand", worldFrame, registry);
yoDesiredHandOrientations.put(robotSide, desiredHandOrientation);
}
yoDesiredChestOrientation = new YoFrameQuaternion(behaviorName + "DesiredChest", worldFrame, registry);
yoDesiredPelvisOrientation = new YoFrameQuaternion(behaviorName + "DesiredPelvis", worldFrame, registry);
outputConverter = new KinematicsToolboxOutputConverter(fullRobotModelFactory);
attachNetworkListeningQueue(kinematicsToolboxOutputQueue, KinematicsToolboxOutputStatus.class);
clear();
}
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
String side = robotSide.getCamelCaseNameForMiddleOfExpression();
YoFramePoint3D desiredHandPosition = new YoFramePoint3D(behaviorName + "Desired" + side + "Hand", worldFrame, registry);
yoDesiredHandPositions.put(robotSide, desiredHandPosition);
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
String Prefix = robotSide.getCamelCaseNameForMiddleOfExpression();
YoFrameConvexPolygon2D yoFootPolygon = new YoFrameConvexPolygon2D(prefix + "FootPolygon", worldFrame, 10, registry);
artifacts.add(new YoArtifactPolygon(Prefix + " Foot Polygon", yoFootPolygon, Color.BLACK, false, 1));
代码示例来源:origin: us.ihmc/CommonWalkingControlModules
String side = robotSide.getCamelCaseNameForMiddleOfExpression();
DoubleYoVariable distanceICPToFoot = new DoubleYoVariable("DistanceICPTo" + side + "Foot", registry);
distanceICPToFeet.put(robotSide, distanceICPToFoot);
代码示例来源:origin: us.ihmc/ihmc-robotics-toolkit-test
assertEquals("left", leftRobotSide.getCamelCaseNameForStartOfExpression());
assertEquals("Right", rightRobotSide.getCamelCaseNameForMiddleOfExpression());
assertEquals("Left", leftRobotSide.getCamelCaseNameForMiddleOfExpression());
内容来源于网络,如有侵权,请联系作者删除!