librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Not getting the aligned depth map when using the D435i

Open pedrombmachado opened this issue 7 years ago • 16 comments


Required Info
Camera Model D435i
Firmware Version 05.11.01.100
Operating System & Version Linux (Ubuntu 18.04)
Kernel Version (Linux Only) 4.15
Platform PC
SDK Version 2.19.1
Language Python 3
Segment Robot

Issue Description

Cannot grab the aligned depth frame from the D435i. I have tested the same code with a D435 and it works perfectly. Screenshot from 2019-03-12 14-32-54 Figure 1: Output generated with a D435i

Screenshot from 2019-03-12 14-32-16 Figure 2: Output generated with a D435

Source code:

## License: Apache 2.0. See LICENSE file in root directory.
## Copyright(c) 2017 Intel Corporation. All Rights Reserved.

#####################################################
##              Align Depth to Color               ##
#####################################################

# First import the library
import pyrealsense2 as rs
# Import Numpy for easy array manipulation
import numpy as np
# Import OpenCV for easy image rendering
import cv2

# Create a pipeline
pipeline = rs.pipeline()

# Create a config and configure the pipeline to stream
#  different resolutions of color and depth streams
config = rs.config()
config.enable_stream(rs.stream.depth, 640, 360, rs.format.z16, 30)
config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)

# Start streaming
profile = pipeline.start(config)

# Getting the depth sensor's depth scale (see rs-align example for explanation)
depth_sensor = profile.get_device().first_depth_sensor()
depth_scale = depth_sensor.get_depth_scale()
print("Depth Scale is: ", depth_scale)

# We will be removing the background of objects more than
#  clipping_distance_in_meters meters away
clipping_distance_in_meters = 3  # 1 meter
clipping_distance = clipping_distance_in_meters / depth_scale

# Create an align object
# rs.align allows us to perform alignment of depth frames to others frames
# The "align_to" is the stream type to which we plan to align depth frames.
align_to = rs.stream.color
align = rs.align(align_to)

# Streaming loop
try:
    while True:
        # Get frameset of color and depth
        frames = pipeline.wait_for_frames()

        # frames.get_depth_frame() is a 640x360 depth image

        # Align the depth frame to color frame
        aligned_frames = align.process(frames)
        # Get aligned frames
        aligned_depth_frame = aligned_frames.get_depth_frame().as_depth_frame()  # aligned_depth_frame is a 640x480 depth image
        color_frame = aligned_frames.get_color_frame()

        depth_frame1 = frames.get_depth_frame()
        color_frame1 = frames.get_color_frame()

        # Validate that both frames are valid
        if not aligned_depth_frame or not color_frame or not depth_frame1 or not color_frame1:
            continue

        depth_image = np.asanyarray(aligned_depth_frame.get_data())
        color_image = np.asanyarray(color_frame.get_data())
        depth_image1 = np.asanyarray(depth_frame1.get_data())
        color_image1 = np.asanyarray(color_frame1.get_data())
        # Apply colormap on depth image (image must be converted to 8-bit per pixel first)


        # Remove background - Set pixels further than clipping_distance to grey
        grey_color = 153
        depth_image_3d = np.dstack((depth_image, depth_image, depth_image))  # depth image is 1 channel, color is 3 channels
        depth_image_3d1 = np.dstack((depth_image1, depth_image1, depth_image1))  # depth image is 1 channel, color is 3 channels
        bg_removed = np.where((depth_image_3d > clipping_distance) | (depth_image_3d <= 0), grey_color, color_image)
        # Render images
        depth_colormap = cv2.applyColorMap(cv2.convertScaleAbs(depth_image, alpha=0.03), cv2.COLORMAP_JET)
        depth_colormap1 = cv2.applyColorMap(cv2.convertScaleAbs(depth_image1, alpha=0.03), cv2.COLORMAP_JET)
        images = np.hstack((color_image, bg_removed))
        cv2.namedWindow('Align Example', cv2.WINDOW_AUTOSIZE)
        cv2.imshow('Align Example', images)
        cv2.imshow('Example RGB', color_image1)
        cv2.imshow('Example depth', depth_colormap1)
        key = cv2.waitKey(1)
        # Press esc or 'q' to close the image window
        if key & 0xFF == ord('q') or key == 27:
            cv2.destroyAllWindows()
            break
finally:
    pipeline.stop()

pedrombmachado avatar Mar 12 '19 14:03 pedrombmachado

Hi @dorodnic , Does this situation also happens in C/C++?

pedrombmachado avatar Mar 13 '19 23:03 pedrombmachado

This is a similar issue with #3201. How about running "rs-enumerate-devices -c" to see the calibration data there?

freemanlo avatar Mar 20 '19 06:03 freemanlo


Hi @pedrombmachado,

As #3201, I suspect probably the extrinsic calibration data has something wrong. You can consider to have a replacement or have a try of the dynamic calibration tool.

Hi @RealSense-Customer-Engineering , I tried to get the calibration tool but I am getting the following error: image Can you please advise on what to do next?

pedrombmachado avatar Mar 30 '19 22:03 pedrombmachado


Hi @pedrombmachado,

The calibration table has the compatibility issue. A factory calibration is required to recover from this status. Please have a replacement.


Hi @pedrombmachado,

Before the replacemnt of the camera, can you also install and try the dynamic calibration tool to dump the raw active calibration tables? In Win10, the Intel.Realsense.CustomRW.exe tool in DC package under C:\CalibrationToolAPI<version>\bin. (now, the version is 2.6.8.0) In Ubuntu, the Intel.Realsense.CustomRW tool ins in /usr/bin.

Try to read raw calibration table from device and save into a binary file, supported table id 19, 1F, and 20, for example, Intel.Realsense.CustomRW -r -raw 19 -f mytable-19.bin Intel.Realsense.CustomRW -r -raw 1F -f mytable-1F.bin Intel.Realsense.CustomRW -r -raw 20 -f mytable-20.bin

Hi @RealSense-Customer-Engineering I Please download the 3 files from here However I thinkt the problem are not the calibration tables because I can see the depth map when I run the realsense-viewer. Please check Figure 1

Screenshot from 2019-04-02 10-37-01 Figure1: Screenshot of the realsense-viewer

Can you please provide an Intel direct contact if you think that I should send the D435i back. Please advise. BW Pedro

pedrombmachado avatar Apr 02 '19 09:04 pedrombmachado


Thanks for the files, @pedrombmachado. Will further analyze since the mismatched table info shows in the dynamic calibration tool with D435i. If any update, will let you know ASAP.

Hi @RealSense-Customer-Engineering , I forgot to mention that I am getting the depth map. I am not getting any image from the aligned_frames. Please check below. image The problem is only with the aligned frames.

pedrombmachado avatar Apr 02 '19 10:04 pedrombmachado

@pedrombmachado, to add on @RealSenseCustomerSupport response - this is how you can check Depth<->RGB extrinsic in less than 3 min:

  1. The fastest way is to run rs-pointcloud or realsense-viewers 3D view with RGB as texture source and to see that the RGB fits the Depth nicely.
  2. It is also useful to examine rs-enumerate-devices -c:
  • The rotation matrix should be ~roughly~ diagonal identity matrix
  • The translation vector norm should be ~15mm .

You can also post the result of rs-enumerate.. for review

ev-mp avatar Apr 02 '19 11:04 ev-mp

Hi @ev-mp and @RealSense-Customer-Engineering , Please find below the output of the rs-pointcloud

image The output of rs-enumerate-devices -c is as follows:

Device info: Name : Intel RealSense D435I Serial Number : 841512071491 Firmware Version : 05.11.01.100 255.255.255.255 Recommended Firmware Version : 05.10.03.00 Physical Port : /sys/devices/pci0000:00/0000:00:14.0/usb2/2-5/2-5:1.0/video4linux/video1 Debug Op Code : 15 Advanced Mode : YES Product Id : 0B3A Usb Type Descriptor : 3.2

Stream Profiles supported by Stereo Module Supported modes: stream resolution fps format
Infrared 1 1280x800 @ 30Hz Y8 Infrared 2 1280x800 @ 30Hz Y8 Infrared 1 1280x800 @ 25Hz Y16 Infrared 2 1280x800 @ 25Hz Y16 Infrared 1 1280x800 @ 15Hz Y16 Infrared 2 1280x800 @ 15Hz Y16 Infrared 2 1280x800 @ 15Hz Y8 Infrared 1 1280x800 @ 15Hz Y8 Infrared 1 1280x720 @ 30Hz Y8 Infrared 2 1280x720 @ 30Hz Y8 Infrared 1 1280x720 @ 15Hz Y8 Infrared 2 1280x720 @ 15Hz Y8 Infrared 1 1280x720 @ 6Hz Y8 Infrared 2 1280x720 @ 6Hz Y8 Infrared 1 848x480 @ 90Hz Y8 Infrared 2 848x480 @ 90Hz Y8 Infrared 1 848x480 @ 60Hz Y8 Infrared 2 848x480 @ 60Hz Y8 Infrared 2 848x480 @ 30Hz Y8 Infrared 1 848x480 @ 30Hz Y8 Infrared 2 848x480 @ 15Hz Y8 Infrared 1 848x480 @ 15Hz Y8 Infrared 1 848x480 @ 6Hz Y8 Infrared 2 848x480 @ 6Hz Y8 Infrared 1 640x480 @ 90Hz Y8 Infrared 2 640x480 @ 90Hz Y8 Infrared 2 640x480 @ 60Hz Y8 Infrared 1 640x480 @ 60Hz Y8 Infrared 2 640x480 @ 30Hz Y8 Infrared 1 640x480 @ 30Hz Y8 Infrared 2 640x480 @ 15Hz Y8 Infrared 1 640x480 @ 15Hz Y8 Infrared 2 640x480 @ 6Hz Y8 Infrared 1 640x480 @ 6Hz Y8 Infrared 2 640x400 @ 25Hz Y16 Infrared 1 640x400 @ 25Hz Y16 Infrared 1 640x400 @ 15Hz Y16 Infrared 2 640x400 @ 15Hz Y16 Infrared 2 640x360 @ 90Hz Y8 Infrared 1 640x360 @ 90Hz Y8 Infrared 2 640x360 @ 60Hz Y8 Infrared 1 640x360 @ 60Hz Y8 Infrared 2 640x360 @ 30Hz Y8 Infrared 1 640x360 @ 30Hz Y8 Infrared 2 640x360 @ 15Hz Y8 Infrared 1 640x360 @ 15Hz Y8 Infrared 2 640x360 @ 6Hz Y8 Infrared 1 640x360 @ 6Hz Y8 Infrared 2 480x270 @ 90Hz Y8 Infrared 1 480x270 @ 90Hz Y8 Infrared 2 480x270 @ 60Hz Y8 Infrared 1 480x270 @ 60Hz Y8 Infrared 2 480x270 @ 30Hz Y8 Infrared 1 480x270 @ 30Hz Y8 Infrared 2 480x270 @ 15Hz Y8 Infrared 1 480x270 @ 15Hz Y8 Infrared 1 480x270 @ 6Hz Y8 Infrared 2 480x270 @ 6Hz Y8 Infrared 1 424x240 @ 90Hz Y8 Infrared 2 424x240 @ 90Hz Y8 Infrared 2 424x240 @ 60Hz Y8 Infrared 1 424x240 @ 60Hz Y8 Infrared 2 424x240 @ 30Hz Y8 Infrared 1 424x240 @ 30Hz Y8 Infrared 2 424x240 @ 15Hz Y8 Infrared 1 424x240 @ 15Hz Y8 Infrared 1 424x240 @ 6Hz Y8 Infrared 2 424x240 @ 6Hz Y8 Depth 1280x720 @ 30Hz Z16 Depth 1280x720 @ 15Hz Z16 Depth 1280x720 @ 6Hz Z16 Depth 848x480 @ 90Hz Z16 Depth 848x480 @ 60Hz Z16 Depth 848x480 @ 30Hz Z16 Depth 848x480 @ 15Hz Z16 Depth 848x480 @ 6Hz Z16 Depth 640x480 @ 90Hz Z16 Depth 640x480 @ 60Hz Z16 Depth 640x480 @ 30Hz Z16 Depth 640x480 @ 15Hz Z16 Depth 640x480 @ 6Hz Z16 Depth 640x360 @ 90Hz Z16 Depth 640x360 @ 60Hz Z16 Depth 640x360 @ 30Hz Z16 Depth 640x360 @ 15Hz Z16 Depth 640x360 @ 6Hz Z16 Depth 480x270 @ 90Hz Z16 Depth 480x270 @ 60Hz Z16 Depth 480x270 @ 30Hz Z16 Depth 480x270 @ 15Hz Z16 Depth 480x270 @ 6Hz Z16 Depth 424x240 @ 90Hz Z16 Depth 424x240 @ 60Hz Z16 Depth 424x240 @ 30Hz Z16 Depth 424x240 @ 15Hz Z16 Depth 424x240 @ 6Hz Z16

Stream Profiles supported by RGB Camera Supported modes: stream resolution fps format
Color 1920x1080 @ 30Hz RGB8 Color 1920x1080 @ 30Hz RAW16 Color 1920x1080 @ 30Hz Y16 Color 1920x1080 @ 30Hz BGRA8 Color 1920x1080 @ 30Hz RGBA8 Color 1920x1080 @ 30Hz BGR8 Color 1920x1080 @ 30Hz YUYV Color 1920x1080 @ 15Hz RGB8 Color 1920x1080 @ 15Hz Y16 Color 1920x1080 @ 15Hz BGRA8 Color 1920x1080 @ 15Hz RGBA8 Color 1920x1080 @ 15Hz BGR8 Color 1920x1080 @ 15Hz YUYV Color 1920x1080 @ 6Hz RGB8 Color 1920x1080 @ 6Hz Y16 Color 1920x1080 @ 6Hz BGRA8 Color 1920x1080 @ 6Hz RGBA8 Color 1920x1080 @ 6Hz BGR8 Color 1920x1080 @ 6Hz YUYV Color 1280x720 @ 30Hz RGB8 Color 1280x720 @ 30Hz Y16 Color 1280x720 @ 30Hz BGRA8 Color 1280x720 @ 30Hz RGBA8 Color 1280x720 @ 30Hz BGR8 Color 1280x720 @ 30Hz YUYV Color 1280x720 @ 15Hz RGB8 Color 1280x720 @ 15Hz Y16 Color 1280x720 @ 15Hz BGRA8 Color 1280x720 @ 15Hz RGBA8 Color 1280x720 @ 15Hz BGR8 Color 1280x720 @ 15Hz YUYV Color 1280x720 @ 6Hz RGB8 Color 1280x720 @ 6Hz Y16 Color 1280x720 @ 6Hz BGRA8 Color 1280x720 @ 6Hz RGBA8 Color 1280x720 @ 6Hz BGR8 Color 1280x720 @ 6Hz YUYV Color 960x540 @ 60Hz RGB8 Color 960x540 @ 60Hz Y16 Color 960x540 @ 60Hz BGRA8 Color 960x540 @ 60Hz RGBA8 Color 960x540 @ 60Hz BGR8 Color 960x540 @ 60Hz YUYV Color 960x540 @ 30Hz RGB8 Color 960x540 @ 30Hz Y16 Color 960x540 @ 30Hz BGRA8 Color 960x540 @ 30Hz RGBA8 Color 960x540 @ 30Hz BGR8 Color 960x540 @ 30Hz YUYV Color 960x540 @ 15Hz RGB8 Color 960x540 @ 15Hz Y16 Color 960x540 @ 15Hz BGRA8 Color 960x540 @ 15Hz RGBA8 Color 960x540 @ 15Hz BGR8 Color 960x540 @ 15Hz YUYV Color 960x540 @ 6Hz RGB8 Color 960x540 @ 6Hz Y16 Color 960x540 @ 6Hz BGRA8 Color 960x540 @ 6Hz RGBA8 Color 960x540 @ 6Hz BGR8 Color 960x540 @ 6Hz YUYV Color 848x480 @ 60Hz RGB8 Color 848x480 @ 60Hz Y16 Color 848x480 @ 60Hz BGRA8 Color 848x480 @ 60Hz RGBA8 Color 848x480 @ 60Hz BGR8 Color 848x480 @ 60Hz YUYV Color 848x480 @ 30Hz RGB8 Color 848x480 @ 30Hz Y16 Color 848x480 @ 30Hz BGRA8 Color 848x480 @ 30Hz RGBA8 Color 848x480 @ 30Hz BGR8 Color 848x480 @ 30Hz YUYV Color 848x480 @ 15Hz RGB8 Color 848x480 @ 15Hz Y16 Color 848x480 @ 15Hz BGRA8 Color 848x480 @ 15Hz RGBA8 Color 848x480 @ 15Hz BGR8 Color 848x480 @ 15Hz YUYV Color 848x480 @ 6Hz RGB8 Color 848x480 @ 6Hz Y16 Color 848x480 @ 6Hz BGRA8 Color 848x480 @ 6Hz RGBA8 Color 848x480 @ 6Hz BGR8 Color 848x480 @ 6Hz YUYV Color 640x480 @ 60Hz RGB8 Color 640x480 @ 60Hz Y16 Color 640x480 @ 60Hz BGRA8 Color 640x480 @ 60Hz RGBA8 Color 640x480 @ 60Hz BGR8 Color 640x480 @ 60Hz YUYV Color 640x480 @ 30Hz RGB8 Color 640x480 @ 30Hz Y16 Color 640x480 @ 30Hz BGRA8 Color 640x480 @ 30Hz RGBA8 Color 640x480 @ 30Hz BGR8 Color 640x480 @ 30Hz YUYV Color 640x480 @ 15Hz RGB8 Color 640x480 @ 15Hz Y16 Color 640x480 @ 15Hz BGRA8 Color 640x480 @ 15Hz RGBA8 Color 640x480 @ 15Hz BGR8 Color 640x480 @ 15Hz YUYV Color 640x480 @ 6Hz RGB8 Color 640x480 @ 6Hz Y16 Color 640x480 @ 6Hz BGRA8 Color 640x480 @ 6Hz RGBA8 Color 640x480 @ 6Hz BGR8 Color 640x480 @ 6Hz YUYV Color 640x360 @ 60Hz RGB8 Color 640x360 @ 60Hz Y16 Color 640x360 @ 60Hz BGRA8 Color 640x360 @ 60Hz RGBA8 Color 640x360 @ 60Hz BGR8 Color 640x360 @ 60Hz YUYV Color 640x360 @ 30Hz RGB8 Color 640x360 @ 30Hz Y16 Color 640x360 @ 30Hz BGRA8 Color 640x360 @ 30Hz RGBA8 Color 640x360 @ 30Hz BGR8 Color 640x360 @ 30Hz YUYV Color 640x360 @ 15Hz RGB8 Color 640x360 @ 15Hz Y16 Color 640x360 @ 15Hz BGRA8 Color 640x360 @ 15Hz RGBA8 Color 640x360 @ 15Hz BGR8 Color 640x360 @ 15Hz YUYV Color 640x360 @ 6Hz RGB8 Color 640x360 @ 6Hz Y16 Color 640x360 @ 6Hz BGRA8 Color 640x360 @ 6Hz RGBA8 Color 640x360 @ 6Hz BGR8 Color 640x360 @ 6Hz YUYV Color 424x240 @ 60Hz RGB8 Color 424x240 @ 60Hz Y16 Color 424x240 @ 60Hz BGRA8 Color 424x240 @ 60Hz RGBA8 Color 424x240 @ 60Hz BGR8 Color 424x240 @ 60Hz YUYV Color 424x240 @ 30Hz RGB8 Color 424x240 @ 30Hz Y16 Color 424x240 @ 30Hz BGRA8 Color 424x240 @ 30Hz RGBA8 Color 424x240 @ 30Hz BGR8 Color 424x240 @ 30Hz YUYV Color 424x240 @ 15Hz RGB8 Color 424x240 @ 15Hz Y16 Color 424x240 @ 15Hz BGRA8 Color 424x240 @ 15Hz RGBA8 Color 424x240 @ 15Hz BGR8 Color 424x240 @ 15Hz YUYV Color 424x240 @ 6Hz RGB8 Color 424x240 @ 6Hz Y16 Color 424x240 @ 6Hz BGRA8 Color 424x240 @ 6Hz RGBA8 Color 424x240 @ 6Hz BGR8 Color 424x240 @ 6Hz YUYV Color 320x240 @ 60Hz RGB8 Color 320x240 @ 60Hz Y16 Color 320x240 @ 60Hz BGRA8 Color 320x240 @ 60Hz RGBA8 Color 320x240 @ 60Hz BGR8 Color 320x240 @ 60Hz YUYV Color 320x240 @ 30Hz RGB8 Color 320x240 @ 30Hz Y16 Color 320x240 @ 30Hz BGRA8 Color 320x240 @ 30Hz RGBA8 Color 320x240 @ 30Hz BGR8 Color 320x240 @ 30Hz YUYV Color 320x240 @ 6Hz RGB8 Color 320x240 @ 6Hz Y16 Color 320x240 @ 6Hz BGRA8 Color 320x240 @ 6Hz RGBA8 Color 320x240 @ 6Hz BGR8 Color 320x240 @ 6Hz YUYV Color 320x180 @ 60Hz RGB8 Color 320x180 @ 60Hz Y16 Color 320x180 @ 60Hz BGRA8 Color 320x180 @ 60Hz RGBA8 Color 320x180 @ 60Hz BGR8 Color 320x180 @ 60Hz YUYV Color 320x180 @ 30Hz RGB8 Color 320x180 @ 30Hz Y16 Color 320x180 @ 30Hz BGRA8 Color 320x180 @ 30Hz RGBA8 Color 320x180 @ 30Hz BGR8 Color 320x180 @ 30Hz YUYV Color 320x180 @ 6Hz RGB8 Color 320x180 @ 6Hz Y16 Color 320x180 @ 6Hz BGRA8 Color 320x180 @ 6Hz RGBA8 Color 320x180 @ 6Hz BGR8 Color 320x180 @ 6Hz YUYV

Stream Profiles supported by Motion Module Supported modes: stream resolution fps format
Accel N/A @ 63Hz MOTION_XYZ32F Accel N/A @ 250Hz MOTION_XYZ32F Gyro N/A @ 200Hz MOTION_XYZ32F Gyro N/A @ 400Hz MOTION_XYZ32F

Provided Intrinsic: Intrinsic of "Depth" / 424x240 / {Z16} Width: 424 Height: 240 PPX: 212.560424804688 PPY: 117.725318908691 Fx: 211.403137207031 Fy: 211.403137207031 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Depth" / 480x270 / {Z16} Width: 480 Height: 270 PPX: 240.63444519043 PPY: 132.424880981445 Fx: 239.324310302734 Fy: 239.324310302734 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Depth" / 640x360 / {Z16} Width: 640 Height: 360 PPX: 320.845916748047 PPY: 176.566513061523 Fx: 319.099060058594 Fy: 319.099060058594 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Depth" / 640x480 / {Z16} Width: 640 Height: 480 PPX: 321.015106201172 PPY: 235.879821777344 Fx: 382.918884277344 Fy: 382.918884277344 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Depth" / 848x480 / {Z16} Width: 848 Height: 480 PPX: 425.120849609375 PPY: 235.450637817383 Fx: 422.806274414062 Fy: 422.806274414062 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Depth" / 1280x720 / {Z16} Width: 1280 Height: 720 PPX: 641.691833496094 PPY: 353.133026123047 Fx: 638.198120117188 Fy: 638.198120117188 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Color" / 320x180 / {YUYV/RGB8/BGR8/RGBA8/BGRA8/Y16} Width: 320 Height: 180 PPX: 157.844299316406 PPY: 89.1665802001953 Fx: 229.652008056641 Fy: 228.993255615234 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Color" / 320x240 / {YUYV/RGB8/BGR8/RGBA8/BGRA8/Y16} Width: 320 Height: 240 PPX: 157.125732421875 PPY: 118.888778686523 Fx: 306.202667236328 Fy: 305.324340820312 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Color" / 424x240 / {YUYV/RGB8/BGR8/RGBA8/BGRA8/Y16} Width: 424 Height: 240 PPX: 209.125732421875 PPY: 118.888778686523 Fx: 306.202667236328 Fy: 305.324340820312 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Color" / 640x360 / {YUYV/RGB8/BGR8/RGBA8/BGRA8/Y16} Width: 640 Height: 360 PPX: 315.688598632812 PPY: 178.333160400391 Fx: 459.304016113281 Fy: 457.986511230469 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Color" / 640x480 / {YUYV/RGB8/BGR8/RGBA8/BGRA8/Y16} Width: 640 Height: 480 PPX: 314.25146484375 PPY: 237.777557373047 Fx: 612.405334472656 Fy: 610.648681640625 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Color" / 848x480 / {YUYV/RGB8/BGR8/RGBA8/BGRA8/Y16} Width: 848 Height: 480 PPX: 418.25146484375 PPY: 237.777557373047 Fx: 612.405334472656 Fy: 610.648681640625 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Color" / 960x540 / {YUYV/RGB8/BGR8/RGBA8/BGRA8/Y16} Width: 960 Height: 540 PPX: 473.532928466797 PPY: 267.499755859375 Fx: 688.955993652344 Fy: 686.979736328125 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Color" / 1280x720 / {YUYV/RGB8/BGR8/RGBA8/BGRA8/Y16} Width: 1280 Height: 720 PPX: 631.377197265625 PPY: 356.666320800781 Fx: 918.608032226562 Fy: 915.973022460938 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Color" / 1920x1080 / {YUYV/RGB8/BGR8/RGBA8/BGRA8/Y16/RAW16} Width: 1920 Height: 1080 PPX: 947.065856933594 PPY: 534.99951171875 Fx: 1377.91198730469 Fy: 1373.95947265625 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 1" / 424x240 / {Y8} Width: 424 Height: 240 PPX: 212.560424804688 PPY: 117.725318908691 Fx: 211.403137207031 Fy: 211.403137207031 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 1" / 480x270 / {Y8} Width: 480 Height: 270 PPX: 240.63444519043 PPY: 132.424880981445 Fx: 239.324310302734 Fy: 239.324310302734 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 1" / 640x360 / {Y8} Width: 640 Height: 360 PPX: 320.845916748047 PPY: 176.566513061523 Fx: 319.099060058594 Fy: 319.099060058594 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 1" / 640x480 / {Y8} Width: 640 Height: 480 PPX: 321.015106201172 PPY: 235.879821777344 Fx: 382.918884277344 Fy: 382.918884277344 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 1" / 848x480 / {Y8} Width: 848 Height: 480 PPX: 425.120849609375 PPY: 235.450637817383 Fx: 422.806274414062 Fy: 422.806274414062 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 1" / 1280x720 / {Y8} Width: 1280 Height: 720 PPX: 641.691833496094 PPY: 353.133026123047 Fx: 638.198120117188 Fy: 638.198120117188 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 1" / 1280x800 / {Y8} Width: 1280 Height: 800 PPX: 641.691833496094 PPY: 393.133026123047 Fx: 638.198120117188 Fy: 638.198120117188 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 2" / 424x240 / {Y8} Width: 424 Height: 240 PPX: 212.560424804688 PPY: 117.725318908691 Fx: 211.403137207031 Fy: 211.403137207031 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 2" / 480x270 / {Y8} Width: 480 Height: 270 PPX: 240.63444519043 PPY: 132.424880981445 Fx: 239.324310302734 Fy: 239.324310302734 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 2" / 640x360 / {Y8} Width: 640 Height: 360 PPX: 320.845916748047 PPY: 176.566513061523 Fx: 319.099060058594 Fy: 319.099060058594 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 2" / 640x480 / {Y8} Width: 640 Height: 480 PPX: 321.015106201172 PPY: 235.879821777344 Fx: 382.918884277344 Fy: 382.918884277344 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 2" / 848x480 / {Y8} Width: 848 Height: 480 PPX: 425.120849609375 PPY: 235.450637817383 Fx: 422.806274414062 Fy: 422.806274414062 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 2" / 1280x720 / {Y8} Width: 1280 Height: 720 PPX: 641.691833496094 PPY: 353.133026123047 Fx: 638.198120117188 Fy: 638.198120117188 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Intrinsic of "Infrared 2" / 1280x800 / {Y8} Width: 1280 Height: 800 PPX: 641.691833496094 PPY: 393.133026123047 Fx: 638.198120117188 Fy: 638.198120117188 Distortion: Brown Conrady Coeffs: 0 0 0 0 0

Provided Motion Intrinsic:

Provided Extrinsic: Extrinsic from "Depth" To "Depth" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

Extrinsic from "Depth" To "Color" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: 0 0 0

Extrinsic from "Depth" To "Infrared 1" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

Extrinsic from "Depth" To "Infrared 2" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: -0.0499882847070694 0 0

Extrinsic from "Depth" To "Gyro" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0.00552000012248755 -0.00510000018402934 -0.011739999987185

Extrinsic from "Depth" To "Accel" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0.00552000012248755 -0.00510000018402934 -0.011739999987185

Extrinsic from "Color" To "Depth" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: 0 0 0

Extrinsic from "Color" To "Color" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

Extrinsic from "Color" To "Infrared 1" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: 0 0 0

Extrinsic from "Color" To "Infrared 2" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: 0 0 0

Extrinsic from "Color" To "Gyro" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: 0 0 0

Extrinsic from "Color" To "Accel" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: 0 0 0

Extrinsic from "Infrared 1" To "Depth" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

Extrinsic from "Infrared 1" To "Color" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: 0 0 0

Extrinsic from "Infrared 1" To "Infrared 1" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

Extrinsic from "Infrared 1" To "Infrared 2" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: -0.0499882847070694 0 0

Extrinsic from "Infrared 1" To "Gyro" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0.00552000012248755 -0.00510000018402934 -0.011739999987185

Extrinsic from "Infrared 1" To "Accel" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0.00552000012248755 -0.00510000018402934 -0.011739999987185

Extrinsic from "Infrared 2" To "Depth" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0.0499882847070694 0 0

Extrinsic from "Infrared 2" To "Color" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: 0.0499882847070694 0 0

Extrinsic from "Infrared 2" To "Infrared 1" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0.0499882847070694 0 0

Extrinsic from "Infrared 2" To "Infrared 2" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

Extrinsic from "Infrared 2" To "Gyro" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0.0555082857608795 -0.00510000018402934 -0.011739999987185

Extrinsic from "Infrared 2" To "Accel" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0.0555082857608795 -0.00510000018402934 -0.011739999987185

Extrinsic from "Gyro" To "Depth" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: -0.00552000012248755 0.00510000018402934 0.011739999987185

Extrinsic from "Gyro" To "Color" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: -0.00552000012248755 0.00510000018402934 0.011739999987185

Extrinsic from "Gyro" To "Infrared 1" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: -0.00552000012248755 0.00510000018402934 0.011739999987185

Extrinsic from "Gyro" To "Infrared 2" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: -0.0555082857608795 0.00510000018402934 0.011739999987185

Extrinsic from "Gyro" To "Gyro" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

Extrinsic from "Gyro" To "Accel" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

Extrinsic from "Accel" To "Depth" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: -0.00552000012248755 0.00510000018402934 0.011739999987185

Extrinsic from "Accel" To "Color" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

Translation Vector: -0.00552000012248755 0.00510000018402934 0.011739999987185

Extrinsic from "Accel" To "Infrared 1" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: -0.00552000012248755 0.00510000018402934 0.011739999987185

Extrinsic from "Accel" To "Infrared 2" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: -0.0555082857608795 0.00510000018402934 0.011739999987185

Extrinsic from "Accel" To "Gyro" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

Extrinsic from "Accel" To "Accel" : Rotation Matrix: 1 0 0 0 1 0 0 0 1

Translation Vector: 0 0 0

pedrombmachado avatar Apr 02 '19 14:04 pedrombmachado

Hello @pedrombmachado , Unfortunately ( but also anticipated) the depth-color extrinsic is not valid indeed:

Extrinsic from "Color" To "Depth" : Rotation Matrix: 0 0 0 0 0 0 0 0 0 Translation Vector: 0 0 0

You can also see that the texture mapping in 3D view is broken. Did you try to use the dynamic calibration tool to recalculate the extrinsic or flash with factory reset ?

ev-mp avatar Apr 02 '19 15:04 ev-mp

@ev-mp The dynamic calibration doesn't work (check the error above). I will flash it (again) and then come back to you. Thanks for the tips. Bw Pedro

pedrombmachado avatar Apr 02 '19 15:04 pedrombmachado

@ev-mp Did the firmware upgrade and I am still getting the same issue. Could this an issue be caused by the firmware version? Because, this is exactly same version of firmware that I had running on the D435i. image image

Extrinsic from "Depth" To "Color" : Rotation Matrix: 0 0 0 0 0 0 0 0 0

pedrombmachado avatar Apr 02 '19 15:04 pedrombmachado

Problem solved. The solution was to replace the camera. image

pedrombmachado avatar Apr 10 '19 14:04 pedrombmachado

@pedrombmachado hello, A brief update - even though it could be less relevant now - at least in some cases downgrading the firmware results in compatibility issue with the firmware being not able to access the calibration data properly. Since the actual data is not impaired, the situation seem to be reverse-able by re-burning the new/latest FW version.

Follow #3788 for updates

ev-mp avatar Apr 22 '19 12:04 ev-mp