fix: Make engine set name of controller(s)
Closes #47 (closed)
Merge request reports
Activity
assigned to @rparisha2
requested review from @arauschert
- Resolved by René Paris
Would work, but a bit weird that the name is not defined upon construction of the controller and only set later optionally by each engine. Did you think about moving the "name" member from ExternalControllerConfig to IControllerConfig? https://gitlab.eclipse.org/eclipse/openpass/mantle-api/-/blob/master/include/MantleAPI/Traffic/i_controller_config.h?ref_type=heads#L83 Then every controller could get its name directly upon construction.
Edited by Andreas RauschertNo - I was not aware of that option.
I like make the mantle_api even more agnostic w.r.t openSCENARIO and NOT to differentiate between internal and external controller.
We could simply use a
ControllerConfig
. The simulator then has to know when to internal controller is instantiated. I could imagine, that the differentiation is done by the simulator when receiving a controller with name"OpenScenarioEngine::v1_2::Default"
, an empty string, or simply the first controller created.added 4 commits
-
360c9d17...5bc8f9a7 - 2 commits from branch
main
- abf1da15 - fix: Make engine set name of controller(s)
- d96b1acb - refactor: Use field 'name' instead of SetName
-
360c9d17...5bc8f9a7 - 2 commits from branch
- Resolved by René Paris
- Resolved by René Paris
added 2 commits
mentioned in issue eclipsefdn/helpdesk#3665 (closed)