Door Standalone Example#
Note
<output-folder>/examples/bin
:
The example shows how to write an application independent from the underlying vehicle. It request the interfaces of the doors and will use the available interfaces and ignores the rest. Therefore the service is independent from the number of doors.
The standalone application loads all components in its own process. The Complex Service will automatically started in another process. Therefore the Proxy and Stub of the Basic Service Interface s is required while for the Vehicle Device Interface it is not. Proxy and Stub is created by the sdv_idl_compiler
when compiling the IDL files.
Because the Data Dispatch Service and Vehicle Device is in the same process the values can be read and displayed.
Note
There is one difference to the other examples: It does not use the utility sdv_vss_util
to autogenerate Vehicle Device s and Basic Service s . Instead, the RX and TX are handled in one component. The code is checked in while in the other examples the code for the Vehicle Device s and Basic Service is created in the CMake configuration.