当前位置: 首页>>代码示例>>Java>>正文


Java TangoPoseData.COORDINATE_FRAME_IMU属性代码示例

本文整理汇总了Java中com.google.atap.tangoservice.TangoPoseData.COORDINATE_FRAME_IMU属性的典型用法代码示例。如果您正苦于以下问题:Java TangoPoseData.COORDINATE_FRAME_IMU属性的具体用法?Java TangoPoseData.COORDINATE_FRAME_IMU怎么用?Java TangoPoseData.COORDINATE_FRAME_IMU使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.google.atap.tangoservice.TangoPoseData的用法示例。


在下文中一共展示了TangoPoseData.COORDINATE_FRAME_IMU属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupExtrinsics

private static DeviceExtrinsics setupExtrinsics(Tango tango) {
    // Create camera to IMU transform.
    TangoCoordinateFramePair framePair = new TangoCoordinateFramePair();
    framePair.baseFrame = TangoPoseData.COORDINATE_FRAME_IMU;
    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_CAMERA_COLOR;
    TangoPoseData imuToRgbPose = tango.getPoseAtTime(0.0, framePair);

    // Create device to IMU transform.
    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_DEVICE;
    TangoPoseData imuToDevicePose = tango.getPoseAtTime(0.0, framePair);

    // Create depth camera to IMU transform.
    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_CAMERA_DEPTH;
    TangoPoseData imuToDepthPose = tango.getPoseAtTime(0.0, framePair);

    return new DeviceExtrinsics(imuToDevicePose, imuToRgbPose, imuToDepthPose);
}
 
开发者ID:inovex,项目名称:tango-ar-navigation-example,代码行数:17,代码来源:MainActivity.java

示例2: setUpExtrinsics

/**
 * Setup the extrinsics of the device.
 */
private void setUpExtrinsics() {
    // Get device to imu matrix.
    TangoPoseData device2IMUPose = new TangoPoseData();
    TangoCoordinateFramePair framePair = new TangoCoordinateFramePair();
    framePair.baseFrame = TangoPoseData.COORDINATE_FRAME_IMU;
    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_DEVICE;
    device2IMUPose = mTango.getPoseAtTime(0.0, framePair);
    mRenderer.getModelMatCalculator().SetDevice2IMUMatrix(
            device2IMUPose.getTranslationAsFloats(), device2IMUPose.getRotationAsFloats());

    // Get color camera to imu matrix.
    TangoPoseData color2IMUPose = new TangoPoseData();
    framePair.baseFrame = TangoPoseData.COORDINATE_FRAME_IMU;
    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_CAMERA_COLOR;
    color2IMUPose = mTango.getPoseAtTime(0.0, framePair);

    mRenderer.getModelMatCalculator().SetColorCamera2IMUMatrix(
            color2IMUPose.getTranslationAsFloats(), color2IMUPose.getRotationAsFloats());
}
 
开发者ID:erlandsona,项目名称:Bat-Vision,代码行数:22,代码来源:MotionTrackingActivity.java

示例3: setupExtrinsics

/**
 * Calculates and stores the fixed transformations between the device and the various sensors
 * to be used later for transformations between frames.
 */
private void setupExtrinsics() {
    // Create Camera to IMU Transform
    TangoCoordinateFramePair framePair = new TangoCoordinateFramePair();
    framePair.baseFrame = TangoPoseData.COORDINATE_FRAME_IMU;
    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_CAMERA_COLOR;
    TangoPoseData imuTrgbPose = mTango.getPoseAtTime(0.0, framePair);

    // Create Device to IMU Transform
    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_DEVICE;
    TangoPoseData imuTdevicePose = mTango.getPoseAtTime(0.0, framePair);

    // Create Depth camera to IMU Transform
    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_CAMERA_DEPTH;
    TangoPoseData imuTdepthPose = mTango.getPoseAtTime(0.0, framePair);

    mRenderer.setupExtrinsics(imuTdevicePose, imuTrgbPose, imuTdepthPose);
}
 
开发者ID:kupoko,项目名称:Tiresias,代码行数:21,代码来源:AugmentedRealityActivity.java

示例4: setupExtrinsics

private void setupExtrinsics() {
    TangoCoordinateFramePair framePair = new TangoCoordinateFramePair();
    framePair.baseFrame = TangoPoseData.COORDINATE_FRAME_IMU;
    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_CAMERA_COLOR;
    TangoPoseData imuTColorCameraPose = mTango.getPoseAtTime(0.0, framePair);

    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_CAMERA_DEPTH;
    TangoPoseData imuTDepthCameraPose = mTango.getPoseAtTime(0.0, framePair);

    framePair.targetFrame = TangoPoseData.COORDINATE_FRAME_DEVICE;
    TangoPoseData imuTDevicePose = mTango.getPoseAtTime(0.0, framePair);

    mRenderer.setupExtrinsics(imuTDevicePose, imuTColorCameraPose, imuTDepthCameraPose);
}
 
开发者ID:kupoko,项目名称:Tiresias,代码行数:14,代码来源:PointCloudActivity.java


注:本文中的com.google.atap.tangoservice.TangoPoseData.COORDINATE_FRAME_IMU属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。