Door Standalone Example#

Note

Example can be found in <output-folder>/examples/bin:
door_demo_example
../../../_images/door_standalone_example.png

The example shows how to write an application independent from the underlying vehicle. It requests the interfaces of the doors and uses the available interfaces while ignoring the rest. Therefore, the service is independent from the number of doors.

The standalone application loads dispatch, timer, vehicle device/basic service components, and the complex service by loading local TOML configuration files. Proxies and stubs are generated by sdv_idl_compiler from the IDL files used by the example.

Because the Data Dispatch Service and Vehicle Device are available in this standalone setup, the values can be read and displayed.

Note

In this example family, the utility sdv_vss_util is used from CMake to generate Vehicle Device and Basic Service code for the door signals.