vectorgrp / sil-kit

Vector SIL Kit – Open-Source Library for Connecting Software-in-the-Loop Environments
https://vectorgrp.github.io/sil-kit-docs
MIT License
107 stars 32 forks source link

dev: Add missing controllerType in ServiceDescriptor of SimulatedController #128

Closed KonradBkd closed 1 month ago

KonradBkd commented 1 month ago

Subject

Using Trace Logging in the NetSim API caused the exception supplementalData.size() > 0

Description

This was the case because the controllerType (by name) was not saved on the supplemental data of the mirrored controller in the NetSim API when a new controller got discovered.

With log level Trace, the mirrored controller then caused the exeption when trying to log the controller type in its service descriptor.

Finally, the exception got catched in the hourglass CAPI_CATCH_EXCEPTIONS.

Fixed by writing the controller type in the suppl. info map of the mirrored controller. Also made the exception more specific.

Instructions for review / testing

Developer checklist (address before review)