-
Notifications
You must be signed in to change notification settings - Fork 34
[DO NOT MERGE] [ITEP-82754] POC: Consume Tracker data from MQTT topic by Analytics #674
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements functionality for Analytics to consume tracked object data from MQTT topics published by the Tracker service, replacing direct tracker calls with a message-based approach. The key changes include:
- Adding MQTT subscription handling for tracked object data from the DATA_SCENE topic
- Implementing a caching mechanism for tracked objects received via MQTT with fallback to direct tracker calls
- Adding deserialization logic to convert MQTT message payloads into MovingObject-compatible structures
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| controller/src/controller/scene_controller.py | Adds handleSceneDataMessage method to process tracked objects from MQTT and subscribes to DATA_SCENE topic for analytics consumption |
| controller/src/controller/scene.py | Implements tracked objects cache, deserialization logic, and getTrackedObjects method with MQTT-first approach and tracker fallback |
| controller/src/controller/detections_builder.py | Adds frame_count field to object dictionary for analytics tracking |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
….com/open-edge-platform/scenescape into dmytroye/subscribe-analytics-to-mqtt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…from MQTT - Add _normalize_camera_bounds() to convert int->float for consistency - Extract ref_camera_frame_rate before early returns in analytics mode - Preserve camera_bounds from MQTT in _deserializeTrackedObjects() - Add safety check in computeCameraBounds() for missing visibility key - Add field ordering (similarity, first_seen before camera_bounds)
📝 Description
This PR implements functionality for Analytics to consume tracked object data from MQTT topics published by the Tracker service, replacing direct tracker calls with a message-based approach. The key changes include:
✨ Type of Change
Select the type of change your PR introduces:
🧪 Testing Scenarios
Describe how the changes were tested and how reviewers can test them too:
✅ Checklist
Before submitting the PR, ensure the following: