1.30.2.8. rsbext – Support for advanced Scope handling¶
This module provides 4 directives. The following 2 directives are used to define scopes. They will not be shown though. To display collections of defined scopes refer to Show Scopes.
1.30.2.8.1. Define Scopes¶
-
.. rsbpubsub::type scope message_type description¶ Example:
.. rsbpubsub:: OUT /io/display/mirror/face string Detektierte Person vor dem Spiegel
rsbpubsubexpects 4 arguments. The first 3 arguments must not contain whitespaces. The first argument defines thetypeof how the scope is used. UseINto express that the component in question expects to receive data on this scope. UseOUTif the component sends information.Second, the RSB scope is expected. Third, the
message_typecan be a primitive (int, string, boolean) or an RST type, such asrst.generic.Value. Thedescriptionshould define the purpose of the received or sent data in respect to the documented component.
-
.. rsbrpc::type scope method in_type out_type description¶ Example:
.. rsbrpc:: CALLS /service/kognidb/ register_app string string Registriert Anwendung 'kognichef'
rsbrpcis used in a similar fashion.typecan be eitherCALLSfor consumer of an RPC orPROVIDESif the endpoint is provided by the component.scopeandmethodare separated by a whitespace.
1.30.2.8.2. Show Scopes¶
-
.. rsbpubsublist::¶ Example:
This is a list of all PubSub scopes defined in this document .. rsbpubsublist:: This is a list of all components which send information on scopes related to sensors .. rsbpubsublist:: :global: :type: OUT :filter: sensor- The following options are supported:
type– filter scopes by kindglobal– use all defined scopesfilter– only show scopes that contain the filter string
The list directive will only consider scopes defined in the same file as the directive if
globalis not used. Theglobaloption can be used to create overview sections. In combination withfilterit is possible to create collections for complex systems.
-
.. rsbrpclist::¶ Example:
.. rsbrpclist:: :global: :type: PROVIDES :filter: registerrsbrpclistsupports the same options asrsbpubsublist.