Intrinsic camera calibration error

Hello,

we followed your tutorial and recorded a short video using the following command to test the intrinsic calibration.

./sample_camera_gmsl --camera-port=a --write-file=/home/nvidia/Desktop/intrCali2.h264 --serializer-type=h264

Then we created the directory as instructed, edited the targets.json and used

./calibration-intrinsics-constraints --targetDB=/home/nvidia/Documents/calibration/targets.json --input-video=/home/nvidia/Documents/intrCali2.h264 --output=/home/nvidia/Documents/calibration/intrinsics/camera-0.json

and

./calibration-graph-cli --dir=/home/nvidia/Documents/calibration/

without a problem. But if we want to do the last step

./calibration-graph-to-rig --graph=/home/nvidia/Documents/calibration/

the follwing error occurs:

ERROR: [26-9-2019 12:12:54] Terminating app due to unexpected exception:
DW_BAD_ALLOC: Can not allocate more bytes for dynamically constructed object

here is our directory and video: https://fh-aachen.sciebo.de/s/NDA5U932NfIZExv

We tried recording different videos and used our host pc, same error. Our system memory doesn’t exceed 4.4 gb /6.

Thanks for any help!

Dear andy.reinartz,

I can run the command w/o any error with you provided data and get rig.json file like below.

./calibration-graph-to-rig --graph=/home/nvidia/Downloads/calibration/calibrated-graph.json
root@tegra-ubuntu:/usr/local/driveworks-1.2/tools/calibration# cat rig.json 
{
    "rig": {
        "sensors": [
            {
                "correction_rig_T": [
                    0.0,
                    0.0,
                    0.0
                ],
                "correction_sensor_R_FLU": {
                    "roll-pitch-yaw": [
                        0.0,
                        -0.0,
                        0.0
                    ]
                },
                "name": "camera-0",
                "nominalSensor2Rig_FLU": {
                    "quaternion": [
                        0.5,
                        -0.5,
                        0.5,
                        0.5
                    ],
                    "t": [
                        0.0,
                        0.0,
                        0.0
                    ]
                },
                "parameter": "",
                "properties": {
                    "Model": "ocam",
                    "c": "1.0016",
                    "cx": "960.00000",
                    "cy": "604.00000",
                    "d": "0.00000",
                    "e": "0.00000",
                    "height": "1208",
                    "poly": "9.37559020996094e+2 1.67558323591948e-2 -4.07801271649078e-4 -3.55975089405547e-7 5.46129363954151e-10 ",
                    "width": "1920"
                },
                "protocol": "camera"
            }
        ],
        "vehicle": {
            "valid": false,
            "value": {
                "axlebaseFront": 0.0,
                "axlebaseRear": 0.0,
                "bumperFront": 0.0,
                "bumperRear": 0.0,
                "centerOfMassToRearAxle": 0.0,
                "frontCorneringStiffness": 0.0,
                "height": 0.0,
                "inertia": 0.0,
                "length": 0.0,
                "mass": 0.0,
                "rearCorneringStiffness": 0.0,
                "steeringCoefficient": 0.0,
                "wheelDiameter": 0.0,
                "wheelbase": 0.0,
                "width": 0.0,
                "widthWithMirrors": 0.0
            }
        }
    },
    "version": 2