1 min read
XML-Based application configuration and prototyping
Antonio Sánchez Navarro : June 19, 2012
RTI Connext® opens a new horizon to make life easier for users. Proof of that is the new and experimental XML-Based application creation feature that allows defining the static part of a DDS system in a XML configuration file. By means of a new set of APIs, all the entities defined in the configuration file can be created automatically at run time so that they can directly be retrieved and used.
For example, let's consider the following Participant configuration:
<participant_library ="participantLibrary">
<domain_participant name="participant">
<register_type name="myType" type_ref= "typeLibrary::myType">
<topic name="myTopic" register_type_ref="myType">
<data_writer name="writer" topic_ref="myTopic"/>
<data_reader name="reader" topic_ref="myTopic">
<datareader_qos base_name="qosLibrary::reader_qos">
</data_reader>
</domain_participant>
</participant_library>
Essentially it describes a DomainParticipant
, which has a Topic
, a DataWriter
and a DataReader
. The following C++ code would create a DomainParticipant
from such configuration with entity name "MyParticipant"
:
DDSDomainParticipant * myParticipant = DDSTheParticipantFactory->create_participant_from_config_exp(
"participantLibrary::participant",
"MyParticipant");
The first consequence as result of this functionality is that users don't need to create programmatically a DDS system anymore. Instead, the system is described in a more readable and understandable format that is interpreted by RTI Connext hence users only have to focus on how to use the entities in such system. For instance, from the previous example, the C++ code to retrieve the DataWriter
is as follows:
DDSDataWriter * writer = myParticipant->lookup_datawriter_by_name_exp("writer")
This workflow significantly decreases the deployment time, mainly as the system size increases -it also decreases the number of "copy-and-paste" that programmers love to do with repetitive tasks. In addition, describing a system in a configuration file serves as a mechanism for system designing as well as sharing with other members of the team.
In this context, RTI Connext furthermore helps out to test DDS communications with the also new and experimental utility RTI Prototyper: It is able not to only create the entities but to automatically write and read data on them, providing a zero-coding solution for running DDS
The entry point of these features begins with RTI Connext. The default package contains the new set of APIs whereas RTI Prototyper and detailed documentation can be obtained from the downloads section of the RTI Community and Research Portal – everything is contained in the Prototyper package.
Learn More:
Autonomous Vehicle Production »
Posts by Tag
- Developers/Engineer (301)
- Connext DDS Suite (186)
- IIoT (125)
- Standards & Consortia (122)
- News & Events (120)
- Leadership (73)
- Technology (73)
- 2020 (54)
- Automotive (49)
- Aerospace & Defense (45)
- 2023 (35)
- Culture & Careers (31)
- Healthcare (31)
- 2022 (29)
- Connext DDS Secure (25)
- Connext DDS Tools (21)
- 2021 (19)
- Connext DDS Pro (19)
- Cybersecurity (18)
- Energy Systems (16)
- Military Avionics (15)
- FACE (13)
- Connext DDS Micro (12)
- JADC2 (10)
- ROS 2 (10)
- Transportation (9)
- Connext DDS Cert (7)
- Databus (7)
- Connectivity Technology (6)
- 2024 (5)
- Oil & Gas (5)
- Connext Conference (4)
- Connext DDS (4)
- RTI Labs (4)
- Case + Code (3)
- FACE Technical Standard (3)
- Research (3)
- Robotics (3)
- #A&D (2)
- Edge Computing (2)
- MDO (2)
- MS&T (2)
- Other Markets (2)
- TSN (2)
- ABMS (1)
- C4ISR (1)
- ISO 26262 (1)
- L3Harris (1)
- LabView (1)
- MathWorks (1)
- National Instruments (1)
- Simulation (1)
- Tech Talks (1)
- UAM (1)
- Videos (1)
- eVTOL (1)