- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中us.ihmc.robotics.math.frames.YoFrameOrientation.getPitch()
方法的一些代码示例,展示了YoFrameOrientation.getPitch()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFrameOrientation.getPitch()
方法的具体详情如下:
包路径:us.ihmc.robotics.math.frames.YoFrameOrientation
类名称:YoFrameOrientation
方法名:getPitch
暂无
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public DoubleYoVariable getYoPitch()
{
return getOrientation().getPitch();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public double getPitch()
{
return getOrientation().getPitch().getDoubleValue();
}
代码示例来源:origin: us.ihmc/IHMCRoboticsToolkit
public void add(YoFrameOrientation orientation)
{
yaw.add(orientation.getYaw());
pitch.add(orientation.getPitch());
roll.add(orientation.getRoll());
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
public YoGraphicCoordinateSystem(String name, YoFramePoint framePoint, YoFrameOrientation orientation, double scale)
{
super(name);
ReferenceFrame.getWorldFrame().checkReferenceFrameMatch(framePoint);
framePoint.checkReferenceFrameMatch(orientation.getReferenceFrame());
x = framePoint.getYoX();
y = framePoint.getYoY();
z = framePoint.getYoZ();
yaw = orientation.getYaw();
pitch = orientation.getPitch();
roll = orientation.getRoll();
this.scale = scale;
}
代码示例来源:origin: us.ihmc/IHMCGraphicsDescription
@Override
public YoVariable<?>[] getVariables()
{
//poly + framePoint + frameOrientation
YoVariable<?>[] vars = new YoVariable[1 + 2 * yoFrameConvexPolygon2d.getMaxNumberOfVertices() + 6];
int i = 0;
vars[i++] = yoFrameConvexPolygon2d.getYoNumberVertices();
for (YoFramePoint2d p : yoFrameConvexPolygon2d.getYoFramePoints())
{
vars[i++] = p.getYoX();
vars[i++] = p.getYoY();
}
vars[i++] = yoFramePoint.getYoX();
vars[i++] = yoFramePoint.getYoY();
vars[i++] = yoFramePoint.getYoZ();
vars[i++] = yoFrameOrientation.getYaw();
vars[i++] = yoFrameOrientation.getPitch();
vars[i++] = yoFrameOrientation.getRoll();
return vars;
}
代码示例来源:origin: us.ihmc/IHMCFootstepPlanning
@Override
public double calculateCost(FramePose stanceFoot, FramePose swingStartFoot, FramePose idealFootstep, FramePose candidateFootstep, double percentageOfFoothold)
{
double cost = footstepBaseCost.getDoubleValue();
setXYVectorFromPoseToPoseNormalize(forwardCostVector, swingStartFoot, idealFootstep);
setXYVectorFromPoseToPoseNormalize(backwardCostVector, idealFootstep, swingStartFoot);
inwardCostVector.set(forwardCostVector.getY(), -forwardCostVector.getX());
outwardCostVector.set(-forwardCostVector.getY(), forwardCostVector.getX());
upwardCostVector.set(0.0, 0.0, 1.0);
downwardVector.set(0.0, 0.0, -1.0);
setVectorFromPoseToPose(idealToCandidateVector, idealFootstep, candidateFootstep);
setOrientationFromPoseToPose(idealToCandidateOrientation, idealFootstep, candidateFootstep);
double downwardPenalizationWeightConsideringStancePitch = downwardCostScalar.getDoubleValue();
if (stanceFoot.getPitch() < 0)
{
downwardPenalizationWeightConsideringStancePitch += -stanceFoot.getPitch() * stancePitchDownwardCostScalar.getDoubleValue();
}
cost += penalizeCandidateFootstep(forwardCostVector, forwardCostScalar.getDoubleValue());
cost += penalizeCandidateFootstep(backwardCostVector, backwardCostScalar.getDoubleValue());
cost += penalizeCandidateFootstep(inwardCostVector, inwardCostScalar.getDoubleValue());
cost += penalizeCandidateFootstep(outwardCostVector, outwardCostScalar.getDoubleValue());
cost += penalizeCandidateFootstep(upwardCostVector, upwardCostScalar.getDoubleValue());
cost += penalizeCandidateFootstep(downwardVector, downwardPenalizationWeightConsideringStancePitch);
cost += angularCostScalar.getDoubleValue() * Math.abs(idealToCandidateOrientation.getYaw().getDoubleValue());
cost += angularCostScalar.getDoubleValue() * Math.abs(idealToCandidateOrientation.getPitch().getDoubleValue());
cost += angularCostScalar.getDoubleValue() * Math.abs(idealToCandidateOrientation.getRoll().getDoubleValue());
cost += (1.0 - percentageOfFoothold) * negativeFootholdLinearCostScalar.getDoubleValue();
return cost;
}
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
sliderBoard.setSlider(sliderChannel++, yoFramePose.getOrientation().getPitch(), -Math.PI, Math.PI);
sliderBoard.setSlider(sliderChannel++, yoFramePose.getOrientation().getRoll(), -Math.PI, Math.PI);
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
sliderBoard.setSlider(sliderChannel++, yoFramePose.getOrientation().getPitch(), -Math.PI, Math.PI);
sliderBoard.setSlider(sliderChannel++, yoFramePose.getOrientation().getRoll(), -Math.PI, Math.PI);
代码示例来源:origin: us.ihmc/IHMCAvatarInterfaces
sliderBoard.setSlider(sliderChannel++, yoFramePose.getOrientation().getPitch(), -Math.PI, Math.PI);
sliderBoard.setSlider(sliderChannel++, yoFramePose.getOrientation().getRoll(), -Math.PI, Math.PI);
代码示例来源:origin: us.ihmc/DarpaRoboticsChallenge
sliderBoard.setSlider(sliderChannel++, yoFramePose.getOrientation().getPitch(), -Math.PI, Math.PI);
sliderBoard.setSlider(sliderChannel++, yoFramePose.getOrientation().getRoll(), -Math.PI, Math.PI);
本文整理了Java中us.ihmc.yoVariables.variable.YoFrameYawPitchRoll.getPitch()方法的一些代码示例,展示了YoFrameYawPitchRol
本文整理了Java中us.ihmc.robotics.math.frames.YoFrameOrientation.getPitch()方法的一些代码示例,展示了YoFrameOrientation.
我是一名优秀的程序员,十分优秀!