FastDDS ShapesDemo Can not Communicate with DDS Blockset ShapesDemo

15 ビュー (過去 30 日間)
Chuguang Pan
Chuguang Pan 2024 年 4 月 11 日
コメント済み: Chuguang Pan 2024 年 10 月 13 日
I followed the steps illustrated in DDS Blockset ShapeExample.mlx file and have build the shapesdemo.exe successfully. I first start the eProsima FastDDS Shapes Demo Application and set the Square Publisher and Circle Subscriber. When I run the shapesdemo.exe in MATLAB Command Windows, it quickly finished running and there is no display in FastDDS Shapes Demo Application.

採用された回答

Allan
Allan 2024 年 7 月 30 日
I have also encountered this problem.Finally, the problem was solved by modifying the XML file.
shapesdemo_1.xml content:
<?xml version="1.0" encoding="UTF-8"?>
<dds>
<profiles>
<participant profile_name="shapesdemo_Library_shapesdemo_ShapesDomainLibrary_ShapesDomain_0">
<domainId>0</domainId>
<rtps>
<builtin>
<discovery_config>
<leaseDuration>
<sec>DURATION_INFINITY</sec>
</leaseDuration>
</discovery_config>
</builtin>
</rtps>
</participant>
<publisher profile_name="shapesdemo_DataWriter_Pub_DataWriter_Writer">
<topic>
<name>Circle</name>
<dataType>ShapeType</dataType>
<kind>WITH_KEY</kind>
</topic>
</publisher>
<subscriber profile_name="shapesdemo_DataReader_Sub_DataReader_Reader">
<topic>
<name>Square</name>
<dataType>ShapeType</dataType>
<kind>WITH_KEY</kind>
</topic>
</subscriber>
</profiles>
</dds>
result:

その他の回答 (1 件)

Mark McBroom
Mark McBroom 2024 年 4 月 27 日
What is the stop time for the Simuilnk model? Set it to "inf" and regenerate code.
  1 件のコメント
Chuguang Pan
Chuguang Pan 2024 年 4 月 28 日
編集済み: Chuguang Pan 2024 年 4 月 28 日
Hello @Mark McBroom, thanks for your answer. I have set the stop time to inf, but it still has no display in matlab command window. Howerver, I configured shapesdemo model with RTI Connext DDS, it works correctly.
The image illustrated as follows is the runing result of FastDDS configuration

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with DDS Blockset についてさらに検索

製品


リリース

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by