langroodi / Adaptive-AUTOSAR

Adaptive Runtime AUTOSAR Linux Simulator
MIT License
386 stars 155 forks source link

Wrong implementation of StateClient within ara::exec #15

Closed langroodi closed 1 year ago

langroodi commented 1 year ago

Describe the bug StateClient would have an instance at SM side to interact with EM. So, the StateClient object should not keep any local state at SM side and the states should be communicated back to EM.

To Reproduce Please refer to https://github.com/langroodi/Adaptive-AUTOSAR/blob/532d5b2777307bc104b410e044e7d1ecb5247819/src/ara/exec/state_client.cpp#L41

Expected behavior The requested states from SM should be communicated back to EM (via SOME/IP, REST, etc.).