Skip to content

feat(mw::com): Implement Field Notifier support for Generic Skeleton#455

Open
ShoroukRamzy wants to merge 4 commits into
eclipse-score:mainfrom
Valeo-S-CORE-Organization:generic_skeleton_field_notifier
Open

feat(mw::com): Implement Field Notifier support for Generic Skeleton#455
ShoroukRamzy wants to merge 4 commits into
eclipse-score:mainfrom
Valeo-S-CORE-Organization:generic_skeleton_field_notifier

Conversation

@ShoroukRamzy
Copy link
Copy Markdown
Contributor

Summary:
This PR extends the GenericSkeleton to support type-erased Fields and solves this issue #181

Key Changes:

GenericSkeletonField: Introduced as a type-erased facade for fields. It takes ownership of a GenericSkeletonEvent under the hood to handle shared memory interactions and broadcasts.
Initial Value Caching: Calling Update() before OfferService() caches the field payload locally. Once the service is offered, DoDeferredUpdate() automatically allocates memory and dispatches this initial value to subscribers.
Zero-copy Notifications: Added support for Allocate() and Update(SampleAllocateePtr) to push new field values to subscribers after the service is actively running.
Skeleton Orchestration: Updated GenericSkeleton::Create to parse field configurations, spawn the fields, and properly populate the internal fields_ map.

Next Steps / Future Work:

Generic Getters & Setters: Currently, RegisterGetHandler and RegisterSetHandler are stubbed out as WIP and return ComErrc::kCouldNotExecute. In the next step, this generic field will be extended with full set and get method support over shared memory once those features are fully implemented.

@ShoroukRamzy ShoroukRamzy force-pushed the generic_skeleton_field_notifier branch from 1cb68f8 to e8cdd9f Compare May 20, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant