Does the Driveworks samples support Logtiech USB Webcam?

Hi, whom it may concern,
I used the Logitech webcam, but I got error.
Bus 001 Device 009: ID 046d:0825 Logitech, Inc. Webcam C270

nvidia@tegra-ubuntu:/usr/local/driveworks/bin$ ./sample_camera_usb --device=9
[6-5-2019 20:29:44] Initialize DriveWorks SDK v1.2.400
[6-5-2019 20:29:44] Release build with GNU 4.9.4 from v1.2.0-rc11-0-ga7f5475 against Vibrante PDK v5.0.10.3
[6-5-2019 20:29:44] Platform: Detected Drive PX2 - Tegra A
[6-5-2019 20:29:44] TimeSource: monotonic epoch time offset is 1557172715517075
[6-5-2019 20:29:44] TimeSource: PTP ioctl returned error. Synchronized time will not be available.
[6-5-2019 20:29:44] TimeSource: Could not detect valid PTP time source at ‘eth0’. Fallback to CLOCK_MONOTONIC.
[6-5-2019 20:29:44] Platform: number of GPU devices detected 1
[6-5-2019 20:29:44] Platform: currently selected GPU device integrated ID 0
[6-5-2019 20:29:44] SDK: Resources mounted from …/./data/resources
[6-5-2019 20:29:44] SDK: Create NvMediaDevice
[6-5-2019 20:29:44] SDK: Create NvMediaIPPManager
[6-5-2019 20:29:44] SDK: use EGL display as provided
[6-5-2019 20:29:44] SensorFactory::createSensor() → camera.usb, device=9
VIDEOIO ERROR: V4L: index 9 is not correct!
[6-5-2019 20:29:44] Driveworks exception thrown: DW_SAL_CANNOT_CREATE_SENSOR: CameraOpenCV: cannot open camera device

terminate called after throwing an instance of ‘std::runtime_error’
what(): [2019-05-06 20:29:44] DW Error DW_SAL_CANNOT_CREATE_SENSOR executing DW function:
dwSAL_createSensor(&m_camera, params, m_sal)
at /builds/driveav/dw/sdk/samples/sensors/camera_usb/main.cpp:119
Aborted (core dumped)

I solved the issue. used ./sample_camera_usb --device=0.
One more quick question, could I use the usbcam to run object detection and lane detection these samples code?
If not, could I edit the source code? which is changed to switch gsml to webcam?

Dear jieyng,

Unfortunately, DriveWorks object & lane detection samples don’t support USB camera.
Could you please consider purchasing a GMSL camera for your topic?

Regarding DriveWorks ISP pipeline, please refer to DriveWorks doc on your hostPC or DrivePX2. Thanks.
file:///usr/local/driveworks-1.2/doc/nvsdk_html/isp_mainsection.html