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

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

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

RobotSide.getCamelCaseName介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/valkyrie

public String getCamelCaseJointName(RobotSide side)
{
 return side.getCamelCaseName() + name();
}

代码示例来源:origin: us.ihmc/valkyrie

public String getCamelCaseJointName(RobotSide side)
{
 return side.getCamelCaseName() + name();
}

代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test

private void setupCurrentFootPoseVisualization()
{
 currentFootLocations = new SideDependentList<>();
 for (RobotSide side : RobotSide.values())
 {
   Graphics3DObject footstepGraphic = new Graphics3DObject();
   footstepGraphic.addExtrudedPolygon(contactPointsInFootFrame, footstepHeight, side == RobotSide.LEFT ? leftFootstepColor : rightFootstepColor);
   YoFramePoseUsingYawPitchRoll footPose = new YoFramePoseUsingYawPitchRoll(side.getCamelCaseName() + "FootPose", worldFrame, registry);
   currentFootLocations.put(side, footPose);
   graphicsListRegistry.registerYoGraphic("currentFootPose", new YoGraphicShape(side.getCamelCaseName() + "FootViz", footstepGraphic, footPose, 1.0));
 }
}

代码示例来源:origin: us.ihmc/valkyrie

public ValkyrieFingerSetController(RobotSide robotSide, YoDouble yoTime, double controlDT, ValkyrieRosControlFingerStateEstimator fingerStateEstimator,
                 YoPIDGains gains, EnumMap<ValkyrieFingerMotorName, YoEffortJointHandleHolder> jointHandles,
                 YoVariableRegistry parentRegistry)
{
 this.robotSide = robotSide;
 this.controlDT = controlDT;
 this.fingerStateEstimator = fingerStateEstimator;
 this.gains = gains;
 this.jointHandles = jointHandles;
 String sidePrefix = robotSide.getCamelCaseName();
 registry = new YoVariableRegistry(sidePrefix + name);
 mapJointsAndVariables(gains);
 fingerSetTrajectoryGenerator = new ValkyrieFingerSetTrajectoryGenerator<>(ValkyrieFingerMotorName.class, robotSide, yoTime, desiredAngles, registry);
 parentRegistry.addChild(registry);
}

代码示例来源:origin: us.ihmc/ihmc-footstep-planning-test

public Controller(YoGraphicsListRegistry graphicsListRegistry)
{
  for (int i = 0; i < numberOfPoints; i++)
  {
   YoFramePoint3D yoPoint = new YoFramePoint3D("Position" + i, ReferenceFrame.getWorldFrame(), registry);
   YoGraphicPosition position = new YoGraphicPosition("Position" + i, yoPoint, 0.02, YoAppearance.Blue());
   points.add(yoPoint);
   graphicsListRegistry.registerYoGraphic("BodyPath", position);
  }
  YoFrameConvexPolygon2D yoDefaultFootPolygon = new YoFrameConvexPolygon2D("DefaultFootPolygon", ReferenceFrame.getWorldFrame(), 4, registry);
  yoDefaultFootPolygon.set(PlannerTools.createDefaultFootPolygon());
  for (RobotSide side : RobotSide.values)
  {
   AppearanceDefinition appearance = side == RobotSide.RIGHT ? YoAppearance.Green() : YoAppearance.Red();
   ArrayList<YoFramePoseUsingYawPitchRoll> poses = new ArrayList<>();
   for (int i = 0; i < stepsPerSide; i++)
   {
     YoFramePoseUsingYawPitchRoll yoFootstepPose = new YoFramePoseUsingYawPitchRoll("footPose" + side.getCamelCaseName() + i, ReferenceFrame.getWorldFrame(), registry);
     YoGraphicPolygon footstepViz = new YoGraphicPolygon("footstep" + side.getCamelCaseName() + i, yoDefaultFootPolygon, yoFootstepPose, 1.0,
                               appearance);
     poses.add(yoFootstepPose);
     yoFootstepPose.setToNaN();
     graphicsListRegistry.registerYoGraphic("viz", footstepViz);
   }
   yoSteps.put(side, poses);
  }
  planner.setTimeout(1.0);
}

代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test

FootSpoof foot = new FootSpoof(testName + side.getCamelCaseName() + "Foot", 0.0, 0.0, 0.084, contactPoints, 0.1);
getFootLocationFromCoMLocation(tempFramePoint1, side, currentLocation, walkingDirectionUnitVector, stepLength, stepWidth);
foot.setPose(tempFramePoint1, robotOrientation);
soleFrames.put(side, foot.getSoleFrame());
ankleFrames.put(side, foot.getFrameAfterParentJoint());
YoPlaneContactState yoPlaneContactState = new YoPlaneContactState(side.getCamelCaseName(), foot.getRigidBody(), foot.getSoleFrame(),
                                 foot.getContactPoints2d(), foot.getCoefficientOfFriction(), testRegistry);
yoPlaneContactState.setFullyConstrained();

代码示例来源:origin: us.ihmc/ihmc-footstep-planning-test

String sideName = robotSide.getCamelCaseName();
YoFramePoseUsingYawPitchRoll yoPose = new YoFramePoseUsingYawPitchRoll("footPose" + sideName + i, worldFrame, registry);
yoPose.setToNaN();

代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test

String footName = side.getCamelCaseName();
FootSpoof foot = new FootSpoof(footName + "Foot", xToAnkle, yToAnkle, zToAnkle, contactPointsInFootFrame, coefficientOfFriction);
FramePose3D footPose = new FramePose3D(initialPose);

相关文章