Skip to content

Extrinsics depth to color gives wrong translation array #172

@theWoogle

Description

@theWoogle

The transformation array of a depth profile extrinsic to color profile with Gemini 336L does not match the output when using print.

# Configure depth stream
depth_profile_list = pipeline.get_stream_profile_list(ob.OBSensorType.DEPTH_SENSOR)
depth_profile = depth_profile_list.get_video_stream_profile(
    1280, 800, ob.OBFormat.Y16, 5
)
config.enable_stream(depth_profile)
d2c_extrinsic = depth_profile.get_extrinsic_to(color_profile)
print("extrinsic depth to color {} [mm]".format(d2c_extrinsic))
print(d2c_extrinsic.transform)

First output:
extrinsic depth to color <OBD2CTransform rot=[0.999995, 0.00177309, -0.00269853, -0.00176806, 0.999997, 0.00186701, 0.00270184, -0.00186223, 0.999995] transform=[-23.6961, -0.0629519, 0.303361] [mm]

Second output:
array([-23.69613, -23.69613, -23.69613], dtype=float32)

Expected second output:
array([-23.69613, -0.0629519, 0.303361], dtype=float32)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions