.XML FILE Fast DDS for DDS Blockset
Show older comments
I’ve been trying for a few weeks to connect the Matlab-Simulink software with some subscriber nodes and publishers via FastDS, making use of the DDS Blockset block.
To do this, I need to create an . XML file in which the domain, themes, and subscriber/publisher nodes I want to create are declared. As much as I try to look for examples, I cannot create a correct code, since Simulink never recognizes the topics when I assign it to the DDS Blockset. The code is as follows:
<types>
<struct name="Header">
<member name="data" type="int32"/>
</struct>
</types>
<domainLibrary profile_name="domainLibrary_profile">
<profiles>
<participant profile_name="participant_xml_profile">
<rtps>
<name>my_participant</name>
<builtin>
<domainId>0</domainId>
</builtin>
</rtps>
</participant>
<publisher profile_name="PublicoEnJuan">
<topic>
<name>juan</name>
<dataType>Header</dataType>
</topic>
</publisher>
<subscriber profile_name="LeoEnAndres">
<topic>
<name>andres</name>
<dataType>Header</dataType>
</topic>
</subscriber>
</profiles>
As I mentioned earlier, the Simulink block does detect for example the type "Header" that I have declared, but it does not recognize either the domain library, the specified domain or the topics within that domain. The only thing I want to implement is a file .XML that works in such a way that a subscriber node (andres) subscribes to a topic by which integers arrive and publish them through a publishing node (juan) on a different topic.
A greeting and thanks in advance
1 Comment
ANDRES GALLEGO FERNANDEZ
on 7 Mar 2024
Accepted Answer
More Answers (0)
Categories
Find more on Get Started with DDS Blockset in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!