rticonnextdds-connector
Version:
RTI Connector for JavaScript
113 lines (104 loc) • 5.11 kB
text/xml
<!--
(c) 2005-2015 Copyright, Real-Time Innovations. All rights reserved.
No duplications, whole or partial, manual or electronic, may be made
without express written permission. Any such copies, or revisions thereof,
must display this notice unaltered.
This code contains trade secrets of Real-Time Innovations, Inc.
-->
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://community.rti.com/schema/current/rti_dds_profiles.xsd">
<!-- Qos Library -->
<qos_library name="QosLibrary">
<qos_profile name="DefaultProfile"
base_name="BuiltinQosLibExp::Generic.StrictReliable"
is_default_qos="true">
<domain_participant_qos>
<participant_name>
<name>Connector Shape Example</name>
</participant_name>
</domain_participant_qos>
</qos_profile>
</qos_library>
<!-- types -->
<types>
<struct name="ShapeType" extensibility="extensible">
<member name="color" stringMaxLength="128" type="string" key="true"/>
<member name="x" type="long"/>
<member name="y" type="long"/>
<member name="shapesize" type="long"/>
</struct>
<enum name="ShapeFillKind" extensibility="extensible">
<enumerator name="SOLID_FILL" value="0"/>
<enumerator name="TRANSPARENT_FILL" value="1"/>
<enumerator name="HORIZONTAL_HATCH_FILL" value="2"/>
<enumerator name="VERTICAL_HATCH_FILL" value="3"/>
</enum>
<struct name="ShapeTypeExtended" baseType="ShapeType" extensibility="extensible">
<member name="fillKind" type="nonBasic" nonBasicTypeName="ShapeFillKind"/>
<member name="angle" type="float"/>
</struct>
</types>
<!-- Domain Library -->
<domain_library name="MyDomainLibrary">
<domain name="MyDomain" domain_id="0">
<register_type name="ShapeType" type_ref="ShapeType" />
<topic name="Square" register_type_ref="ShapeType"/>
<topic name="Circle" register_type_ref="ShapeType"/>
<topic name="Triangle" register_type_ref="ShapeType"/>
</domain>
</domain_library>
<!-- Participant library -->
<domain_participant_library name="MyParticipantLibrary">
<domain_participant name="MyPubParticipant" domain_ref="MyDomainLibrary::MyDomain">
<publisher name="MyPublisher">
<data_writer name="MySquareWriter" topic_ref="Square" />
</publisher>
</domain_participant>
<!-- We use separate participants because we run the writer and the reader
on different applications, and wouldn't want to create the reader
in writer.py, or the writer in reader.py -->
<domain_participant name="MySubParticipant" domain_ref="MyDomainLibrary::MyDomain">
<subscriber name="MySubscriber">
<data_reader name="MySquareReader" topic_ref="Square" />
<data_reader name="MyCircleReader" topic_ref="Circle" />
<data_reader name="MyTriangleReader" topic_ref="Triangle" />
</subscriber>
</domain_participant>
<!-- You can also define the reader and writer inside the same
connector instance if you plan to use both in the same application.
-->
<domain_participant name="MyParticipant" domain_ref="MyDomainLibrary::MyDomain">
<publisher name="MyPublisher">
<data_writer name="MySquareWriter" topic_ref="Square" />
</publisher>
<subscriber name="MySubscriber">
<!-- Uncomment this if you don't want the Input to start receiving
data before you call Connector.get_input()
-->
<!--
<subscriber_qos>
<entity_factory>
<autoenable_created_entities>false</autoenable_created_entities>
</entity_factory>
</subscriber_qos>
-->
<data_reader name="MySquareReader" topic_ref="Square" />
</subscriber>
</domain_participant>
<!-- The transform.py script reads Squares and writes Circles -->
<domain_participant name="TransformationParticipant" domain_ref="MyDomainLibrary::MyDomain">
<subscriber name="MySubscriber">
<data_reader name="MySquareReader" topic_ref="Square" />
</subscriber>
<publisher name="MyPublisher">
<data_writer name="MyCircleWriter" topic_ref="Circle" />
</publisher>
</domain_participant>
<domain_participant name="CircleSubParticipant" domain_ref="MyDomainLibrary::MyDomain">
<subscriber name="MySubscriber">
<data_reader name="MyCircleReader" topic_ref="Circle" />
</subscriber>
</domain_participant>
</domain_participant_library>
</dds>