edgexfoundry / device-usb-camera

Owner: Device WG
Apache License 2.0
12 stars 28 forks source link

feat: Extend discovery to support Intel real sense cameras #264

Closed presatish closed 1 year ago

presatish commented 1 year ago

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

Testing Instructions

  1. Make sure a realsense camera is plugged into your device.
  2. Use v4l2-ctl --list-devices to check that the device is recognized by your system and to check the paths of the device.
  3. Build the usb device service using make docker.
  4. Run the edgex core services along with the device service.
  5. Check the discovered devices (http://0.0.0.0:59881/api/v3/device/service/name/device-usb-camera), make sure that the paths match. Note that only the 1sat, 3rd and 5th paths are saved in the device, as these are the only streaming paths.
  6. Test for rediscovery by deleting the device or restarting the service, etc.
  7. Make sure the paths are updated if ports are changed.

New Dependency Instructions (If applicable)

vyshali-chitikeshi commented 1 year ago

Validation looks good, provided details of test cases in internal group channel

presatish commented 1 year ago

This PR is based out of https://github.com/edgexfoundry/device-usb-camera/pull/262 whose comments pertaining to this PR have already been addressed. Validation also has been fully done.

codecov-commenter commented 1 year ago

Codecov Report

Merging #264 (13798fe) into main (c5a4cd9) will increase coverage by 2.56%. The diff coverage is 19.73%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff            @@
##            main    #264      +/-   ##
========================================
+ Coverage   2.38%   4.95%   +2.56%     
========================================
  Files          8       8              
  Lines        879     908      +29     
========================================
+ Hits          21      45      +24     
- Misses       858     863       +5     
Impacted Files Coverage Δ
internal/driver/device.go 11.42% <ø> (ø)
internal/driver/routes.go 0.00% <0.00%> (ø)
internal/driver/driver.go 4.30% <20.00%> (+4.30%) :arrow_up: