{
  "mode": "diagnostic_only_count_or_confidence_gate",
  "actions": [],
  "skipped_actions": [],
  "gates": {
    "pred_count": 3,
    "template_count": 3,
    "count_close": true,
    "assignment_mean_confidence": 0.6658558630616788,
    "assignment_min_confidence": 0.4997136299262155,
    "confident": true,
    "contact_cost_delta": 0.0,
    "contact_better": false
  },
  "assignment": {
    "mean_confidence": 0.6658558630616788,
    "min_confidence": 0.4997136299262155,
    "pairs": [
      {
        "pred_id": 0,
        "pred_name": "door",
        "template_id": 1,
        "template_name": "surface_board",
        "cost": 0.45,
        "confidence": 0.4997136299262155
      },
      {
        "pred_id": 1,
        "pred_name": "base",
        "template_id": 0,
        "template_name": "outside_frame",
        "cost": 0.45,
        "confidence": 0.9981403293326053
      },
      {
        "pred_id": 2,
        "pred_name": "knob",
        "template_id": 2,
        "template_name": "fixed_part",
        "cost": 0.45,
        "confidence": 0.4997136299262155
      }
    ],
    "cost_matrix": [
      [
        1.0,
        0.45,
        0.45
      ],
      [
        0.45,
        1.0,
        1.0
      ],
      [
        1.0,
        0.45,
        0.45
      ]
    ],
    "plan": [
      [
        0.00019084504204105172,
        0.1665115831612678,
        0.1665115831612678
      ],
      [
        0.3329516432492512,
        0.00031016701079775074,
        0.00031016701079775074
      ],
      [
        0.00019084504204105172,
        0.1665115831612678,
        0.1665115831612678
      ]
    ]
  },
  "contact_assignment": {
    "baseline_cost": 0.20949560454615093,
    "contact_ot_cost": 0.20949560454615093,
    "cost_delta": 0.0,
    "selected_pairs": [
      {
        "parent_id": 1,
        "parent_name": "base",
        "child_id": 0,
        "child_name": "door",
        "template_joint_id": 1,
        "template_joint_name": "surface_board",
        "template_joint_type": "revolute",
        "template_axis": [
          0.0,
          1.0,
          0.0
        ],
        "cost": 0.1600150796577256,
        "features": {
          "gap": 0.0,
          "contact_overlap": 0.9911189369282095,
          "pivot_child_surface": 0.0,
          "pivot_parent_surface": 0.00025132762876007913,
          "pivot_contact": 0.00012566381438003957,
          "axis_principal_error": 0.0,
          "relation": 0.0,
          "semantic": 1.0,
          "type": 0.0,
          "axis": 0.0
        }
      },
      {
        "parent_id": 1,
        "parent_name": "base",
        "child_id": 2,
        "child_name": "knob",
        "template_joint_id": 2,
        "template_joint_name": "fixed_part",
        "template_joint_type": "revolute",
        "template_axis": [
          -0.7071076016277473,
          1.6327306245056322e-08,
          -0.7071059607443956
        ],
        "cost": 0.25897612943457626,
        "features": {
          "gap": 0.0,
          "contact_overlap": 0.0301804149706214,
          "pivot_child_surface": 0.40396195434478993,
          "pivot_parent_surface": 0.1299175432328948,
          "pivot_contact": 0.26693974878884236,
          "axis_principal_error": 0.0006715505199409444,
          "relation": 0.0,
          "semantic": 1.0,
          "type": 0.0,
          "axis": 0.4777831109879995
        }
      }
    ],
    "cost_matrix": [
      [
        0.6305423178571881,
        0.6305423178571881
      ],
      [
        0.4052023544683602,
        0.33307161015668413
      ],
      [
        0.1600150796577256,
        0.3000150782025256
      ],
      [
        0.3311068737462524,
        0.25897612943457626
      ],
      [
        0.34514743981227813,
        0.4851474383570781
      ],
      [
        0.6922594081860577,
        0.6922594081860577
      ]
    ]
  },
  "template": {
    "pm_id": "8867",
    "category": "Door",
    "node_count": 3,
    "movable_joint_count": 2
  }
}
