本文整理了Java中us.ihmc.yoVariables.variable.YoFramePoint3D.add()
方法的一些代码示例,展示了YoFramePoint3D.add()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YoFramePoint3D.add()
方法的具体详情如下:
包路径:us.ihmc.yoVariables.variable.YoFramePoint3D
类名称:YoFramePoint3D
方法名:add
暂无
代码示例来源:origin: us.ihmc/ihmc-yovariables
public void add(YoFramePoseUsingYawPitchRoll yoFramePose)
{
getPosition().add(yoFramePose.getPosition());
getOrientation().add(yoFramePose.getOrientation());
}
代码示例来源:origin: us.ihmc/ihmc-humanoid-behaviors
yoForcePointPosition.add(amp * 2.0 * (Math.random() - 0.5) + bias, amp * 2.0 * (Math.random() - 0.5) + bias, amp * 2.0 * (Math.random() - 0.5) + bias);
代码示例来源:origin: us.ihmc/ihmc-path-planning-test
public static void showPlotter(WaypointDefinedBodyPathPlanner plan, String testName)
{
int markers = 5;
YoVariableRegistry registry = new YoVariableRegistry(testName);
YoGraphicsListRegistry graphicsList = new YoGraphicsListRegistry();
for (int i = 0; i < markers; i++)
{
double alpha = (double) i / (double) (markers - 1);
Pose2D pose = new Pose2D();
plan.getPointAlongPath(alpha, pose);
YoFramePoint3D yoStartPoint = new YoFramePoint3D("PointStart" + i, worldFrame, registry);
yoStartPoint.set(pose.getX(), pose.getY(), 0.0);
double length = 0.1;
YoFrameVector3D direction = new YoFrameVector3D("Direction" + i, worldFrame, registry);
direction.set(length * Math.cos(pose.getYaw()), length * Math.sin(pose.getYaw()), 0.0);
YoFramePoint3D yoEndPoint = new YoFramePoint3D("PointEnd" + i, worldFrame, registry);
yoEndPoint.set(yoStartPoint);
yoEndPoint.add(direction);
YoGraphicPosition poseStartVis = new YoGraphicPosition("PointStart" + i, yoStartPoint, 0.01, YoAppearance.Blue());
YoGraphicPosition poseEndVis = new YoGraphicPosition("PointEnd" + i, yoEndPoint, 0.01, YoAppearance.Red());
graphicsList.registerArtifact(testName, poseStartVis.createArtifact());
graphicsList.registerArtifact(testName, poseEndVis.createArtifact());
}
showPlotter(graphicsList, testName);
}
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
integratedCoMPosition.add(dummyPoint);
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
integratedCoMPosition.add(dummyPoint);
代码示例来源:origin: us.ihmc/ihmc-common-walking-control-modules-test
integratedCoMPosition.add(dummyPoint);
内容来源于网络,如有侵权,请联系作者删除!