本文整理了Java中us.ihmc.yoVariables.variable.YoFramePoseUsingYawPitchRoll.setFromReferenceFrame()
方法的一些代码示例,展示了YoFramePoseUsingYawPitchRoll.setFromReferenceFrame()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFramePoseUsingYawPitchRoll.setFromReferenceFrame()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoFramePoseUsingYawPitchRoll
类名称:YoFramePoseUsingYawPitchRoll
方法名:setFromReferenceFrame
[英]Sets this frame pose to the origin of the passed in reference frame.
[中]将此帧姿势设置为传入参照帧的原点。
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
private void updateCurrentFootsteps()
{
for (RobotSide side : RobotSide.values)
{
YoFramePoseUsingYawPitchRoll footPose = currentFootLocations.get(side);
if (contactStates.get(side).inContact())
{
footPose.setFromReferenceFrame(feet.get(side).getSoleFrame());
}
else
{
footPose.setToNaN();
}
}
}
代码示例来源:origin: us.ihmc/ihmc-avatar-interfaces-test
private void update(double dt)
{
solePose.setFromReferenceFrame(swingOverPlanarRegionsTrajectoryExpander.getSolePoseReferenceFrame());
for (SwingOverPlanarRegionsTrajectoryCollisionType swingOverPlanarRegionsTrajectoryCollisionType : SwingOverPlanarRegionsTrajectoryCollisionType.values())
{
intersectionMap.get(swingOverPlanarRegionsTrajectoryCollisionType)
.setPosition(swingOverPlanarRegionsTrajectoryExpander.getClosestPolygonPoint(swingOverPlanarRegionsTrajectoryCollisionType));
}
double sphereRadius = swingOverPlanarRegionsTrajectoryExpander.getSphereRadius();
collisionSphere.setRadii(new Vector3D(sphereRadius, sphereRadius, sphereRadius));
collisionSphere.update();
scs.tickAndUpdate(scs.getTime() + dt);
}
内容来源于网络,如有侵权,请联系作者删除!