v4l2_camera sample app.json

small changes lead to unexpected error in execution
i removed the scopes in the “name”

"graph": {
    "nodes": [
      {
        "name": "camera",
        "components": [
...       {
            "name": "isaac::V4L2Camera",
            "type": "isaac::V4L2Camera"
          }
        ]
      },
      {
        "name": "viewer",
        "components": [
...       {
            "name": "isaac::viewers::ColorCameraViewer",
            "type": "isaac::viewers::ColorCameraViewer"
          }
        ]
      }
    ],
    "edges": [
      {
        "source": "camera/isaac::V4L2Camera/frame",
        "target": "viewer/isaac::viewers::ColorCameraViewer/color_listener"
      }
    ]
"name": "isaac::V4L2Camera"                   => "name": "V4L2Camera"
"name": "isaac::viewers::ColorCameraViewer"   => "name": "ColorCameraViewer"
    "edges": [
      {
        "source": "camera/V4L2Camera/frame",
        "target": "viewer/ColorCameraViewer/color_listener"
      }
    ]

on execution i get PANIC, without changes all works well

PANIC packages/sensors/V4L2Camera.cpp@172: [V4L2Camera] Driver changed desired frame rate from 1/30 to 1/10.

I expected i can call my components what i want

I think you haven’t changed the configuration of the camera…If you want to have a different name in the component, you have to change the name in the configuration as well.

Should look something like this:

....
 "config": {
    "camera": {
      "V4L2Camera": {
        "device_id": 0,
        "rows": 448,
        "cols": 800,
        "rate_hz": 10
      }
    }
....

Hope it helps.

ok, the problem is in v4l2_camera implementation or the config parsing.
The config row, col should not be optional or the driver should be allowed to change rate_hz if set to default.
Or parsing should report that the config object was not found in components.