-
Notifications
You must be signed in to change notification settings - Fork 0
/
Square.xml
104 lines (86 loc) · 3.19 KB
/
Square.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="utf-8"?>
<!--
*****************************************************************************
* (c) 2005-2017 Copyright, Real-Time Innovations, All rights reserved. *
* *
* Permission to modify and use for internal purposes granted. *
* This software is provided "as is", without warranty, express or implied. *
* *
*****************************************************************************
-->
<!--
=======================================================================
=== Square Service ===
=======================================================================
RTI Connext DDS XML App Creation
Define a service as a set of data-oriented interfaces.
The 'square' service has two interfaces:
- a publication (output) of squares
- a subscription (input) of squares
These interfaces can be composed with other service interfaces
(if desired) to define component interfaces.
Author: Rajive Joshi, Real-Time Innovations Inc. Copyright (C) 2017.
-->
<dds
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://community.rti.com/schema/latest/rti_dds_profiles.xsd">
<!-- Data Types -->
<types>
<include file="$(TYPES_DIR)/ShapeType.xml" />
</types>
<!-- Participants : each participant defines a data-oriented interface -->
<domain_participant_library name="SquareIfLib">
<!-- Define a data-oriented interface -->
<domain_participant
name="Square_Root"
base_name="$(BASE_NAME_Square_Root)">
<register_type
name="ShapeType"
type_ref="rti::example::ShapeType" />
<topic
name="Square"
register_type_ref="ShapeType" />
</domain_participant>
<!-- Define a data-oriented interface -->
<domain_participant
name="Square_Pub"
base_name="$(BASE_NAME_Square_Pub)">
<publisher name="Square_Pub_publisher">
<data_writer
name="Square_writer"
topic_ref="Square">
<datawriter_qos base_name="SquareQosLib::Square_Pub" />
</data_writer>
<publisher_qos base_name="SquareQosLib::Square_Pub" />
</publisher>
<participant_qos base_name="SquareQosLib::Square_Pub"/>
</domain_participant>
<!-- Define a data-oriented interface -->
<domain_participant
name="Square_Sub"
base_name="$(BASE_NAME_Square_Sub)">
<subscriber name="Square_Sub_subscriber">
<data_reader
name="Square_reader"
topic_ref="Square">
<filter
name="SquareTopic_ContentFiltered"
kind="builtin.sql">
<expression> x > %0 AND x < %1 AND
y > %2 AND y < %3
</expression>
<parameter_list>
<param>100</param>
<param>200</param>
<param>100</param>
<param>200</param>
</parameter_list>
</filter>
<datareader_qos base_name="SquareQosLib::Square_Sub" />
</data_reader>
<subscriber_qos base_name="SquareQosLib::Square_Sub" />
</subscriber>
<participant_qos base_name="SquareQosLib::Square_Sub"/>
</domain_participant>
</domain_participant_library>
</dds>