FastDDS ShapesDemo Can not Communicate with DDS Blockset ShapesDemo
조회 수: 15 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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
2024년 4월 27일
What is the stop time for the Simuilnk model? Set it to "inf" and regenerate code.
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with DDS Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!