Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Health & Error Callback Implementation , Improved Abs Control Module #377

Merged
merged 43 commits into from
Aug 7, 2024

Conversation

yashrajsapra
Copy link
Collaborator

IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).

Description
-> Added Health & Error Callbacks
-> Improved Abs Control Module
-> Added Simple Control Module

Alternative(s) considered

Have you considered any alternatives? And if so, why have you chosen the approach in this PR?

Type

Type Choose one: (Bug fix | Feature | Documentation | Testing | Other)

Screenshots (if applicable)

Checklist

  • I have read the Contribution Guidelines
  • I have written Unit Tests
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach

Copy link

github-actions bot commented Jul 30, 2024

Test Results Windows-cuda

  1 files  ±0    1 suites  ±0   12m 7s ⏱️ ±0s
408 tests ±0  292 ✅ ±0  116 💤 ±0  0 ❌ ±0 
292 runs  ±0  176 ✅ ±0  116 💤 ±0  0 ❌ ±0 

Results for commit 11b71c8. ± Comparison against base commit 320408d.

♻️ This comment has been updated with latest results.

base/test/ImageEncodeCV_tests.cpp Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Jul 30, 2024

Test Results Linux-CudaT

  1 files  ±0    1 suites  ±0   11m 53s ⏱️ -1s
414 tests +1  249 ✅ ±0  161 💤 +1  4 ❌ ±0 
253 runs  ±0   88 ✅  - 1  161 💤 +1  4 ❌ ±0 

For more details on these failures, see this check.

Results for commit 11b71c8. ± Comparison against base commit 320408d.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 30, 2024

Test Results Linux

  1 files  ±0    1 suites  ±0   10m 9s ⏱️ ±0s
313 tests +1  227 ✅ ±0  82 💤 +1  4 ❌ ±0 
231 runs  ±0  145 ✅  - 1  82 💤 +1  4 ❌ ±0 

For more details on these failures, see this check.

Results for commit 11b71c8. ± Comparison against base commit 320408d.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@mraduldubey mraduldubey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go through comments, rename errorobject and healhobject - they are too generic

base/CMakeLists.txt Outdated Show resolved Hide resolved
base/include/AbsControlModule.h Outdated Show resolved Hide resolved
base/include/BrightnessContrastControlXform.h Show resolved Hide resolved
base/include/Module.h Show resolved Hide resolved
base/include/Module.h Outdated Show resolved Hide resolved
base/src/ImageEncoderCV.cpp Outdated Show resolved Hide resolved
base/src/ImageEncoderCV.cpp Outdated Show resolved Hide resolved
base/src/ImageEncoderCV.cpp Outdated Show resolved Hide resolved
base/src/SimpleControlModule.cpp Outdated Show resolved Hide resolved
base/test/ImageEncodeCV_tests.cpp Show resolved Hide resolved
Copy link

github-actions bot commented Jul 30, 2024

Test Results Linux_ARM64

  1 files  ±0    1 suites  ±0   10m 55s ⏱️ -9s
436 tests +1  263 ✅ ±0  173 💤 +1  0 ❌ ±0 
263 runs  ±0   90 ✅  - 1  173 💤 +1  0 ❌ ±0 

Results for commit 11b71c8. ± Comparison against base commit 320408d.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jul 30, 2024

Test Results Win-nocuda

  1 files  ±0    1 suites  ±0   10m 29s ⏱️ -1s
307 tests ±0  231 ✅ ±0  76 💤 ±0  0 ❌ ±0 
231 runs  ±0  155 ✅ ±0  76 💤 ±0  0 ❌ ±0 

Results for commit 11b71c8. ± Comparison against base commit 320408d.

♻️ This comment has been updated with latest results.

base/src/APHealthObject.cpp Outdated Show resolved Hide resolved
@mraduldubey mraduldubey merged commit 9ecea0d into main Aug 7, 2024
16 of 20 checks passed
@mraduldubey mraduldubey deleted the yash/CallbackImpl branch August 7, 2024 08:07
Vinayak-YB pushed a commit that referenced this pull request Aug 7, 2024
…377)

* Added Error & Health  Status Objects

* Added Error & Health Callbacks

* Removed unwanted Header Declarartion

* Added Health & Error Callback Listener

* Fixed Build Issue

* -> Added Virtual Function to register error callback
-> Added Health Callback strategy

* Added Error & Health Callback in ImageEncoder Module

* control module changes wip

* 1. defined Control module type at framework level 2. enforced data frame checks for control modules

* added a virtual method to add control module so that it can be overriden for custom behaviour in some modules

* resolved conflict

* Fixed Build Issue

* Fixed Linking Error

* Fixed Typo

* revert the multiple pipelines with  control module idea

* Do not allow roles to be updated once registered

* Added COndition to check for input and output pins

* Updated handleError and Callback as a virtual function

* Added handle Error & Healthback method in Simple Control Module

* Removed Dummy Error Callbacks from ImageEncoder Module

* USing Simple Control Module in ImageEncoder Tests

* Fixed Indentation and typo

* Renamed Error, Health and Callback class

* Code Cleanup

* Fixed warning

* Using Updated Health & Error Object class

* -> Fixed Formatting
->  Added Register Error callback
-> Sending Error Callback when frame is not there to render

* Renamed Health & ErrorCallback function

* Updated GtkGL to use updated APErrorCallback method

* Update Module.h

* Added Generic Implementation of Error Callback

* Formatted APErrorObject class

* Updated GtkGLRenderer to Use Generic Error Callbacks, Added Test for same

* Removed Unwanted errors

* Added healthUpdateIntervalInSec in ModuleProps, To make HealtCallback Frequency configurable

* Added Defination of getCurrentTimestamp

---------

Co-authored-by: mradul <mradul@apra.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants