Repository navigation
Support argus camera for camera_viz - #833
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Docstring Coverage | Docstring coverage is 13.51% which is insufficient. The required threshold is 80.00%. | Write docstrings for the functions missing them to satisfy the coverage threshold. |
✅ Passed checks (4 passed)
-
Check name Status Explanation Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled. Title check ✅ Passed The title clearly matches the main change: adding Argus camera support to camera_viz. Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request. Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create PR with unit tests
- Commit unit tests in branch
teng/df82f4a
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@examples/camera_viz/argus/argus_camera.cpp`:
- Around line 783-799: Prevent published device buffers from being reused while
the consumer still holds them: update the latest() buffer handoff and
pick_write_index() selection to track the index currently leased by the consumer
and exclude it from writes until release, or implement an equivalent FrameView
lease/refcount lifecycle. Preserve existing publication behavior while ensuring
producer reuse waits for or skips any buffer still in use.
- Around line 731-753: Update the CU_EGL_FRAME_TYPE_PITCH handling around
launch_yuv420_pitch_to_rgba so planar U/V strides are not derived from
frame.pitch / 2. Read each plane’s pitch from the available buffer metadata and
pass those per-plane values, or explicitly reject planar pitch frames when
metadata is unavailable; preserve the existing non-planar path.
- Around line 671-684: Update the acquire call in the frame acquisition flow
around cuEGLStreamConsumerAcquireFrame to pass config_.acquire_timeout_ms
converted from milliseconds to microseconds. Treat both CUDA_ERROR_TIMEOUT and
CUDA_ERROR_LAUNCH_TIMEOUT as retryable timeout results that return false, while
preserving existing handling for other CUDA errors.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 8c1004b5-6560-4cd1-a0a7-d91a0c7813c4
📒 Files selected for processing (16)
examples/camera_viz/README.mdexamples/camera_viz/argus/CMakeLists.txtexamples/camera_viz/argus/__init__.pyexamples/camera_viz/argus/argus_bindings.cppexamples/camera_viz/argus/argus_camera.cppexamples/camera_viz/argus/argus_camera.hppexamples/camera_viz/argus/build.shexamples/camera_viz/argus/yuv_to_rgba.cuexamples/camera_viz/argus/yuv_to_rgba.cuhexamples/camera_viz/camera_viz.shexamples/camera_viz/configs/argus_shw5g.yamlexamples/camera_viz/scripts/_install_deps.shexamples/camera_viz/sources/__init__.pyexamples/camera_viz/sources/_helpers.pyexamples/camera_viz/sources/argus.pyexamples/camera_viz/tests/test_paired_frame_source_race.py
^ just an agent review. ignore if already addressed/irrelevent. Let's also add argus to the public docs too. Otherwise LGTM |
8817011 to
724621f
Compare
Signed-off-by: Teng Wei <tengw@nvidia.com>
Signed-off-by: Teng Wei <tengw@nvidia.com>
0db7796 to
023855c
Compare
|
✅ Preview deployed: https://NVIDIA.github.io/IsaacCapture/preview/pr-833/ Built from commit 023855c. It may take a minute for the updated preview to appear. |
Description
Implement argus camera driver support in the camera_viz example
Fixes #(issue)
Type of change
Testing
Tested with camera that supports argus driver
Checklist
SKIP=check-copyright-year pre-commit run --all-filesgit commit -s) per the DCOSummary by CodeRabbit
New Features
--with-argussetup support and improved setup guidance.Bug Fixes
Tests