赞
踩
要通过DDS可靠地发送大数据,您需要使用异步发布器,它在外部中间件线程中发送用户数据。
你可以使用:
Generic.StrictReliable.LargeData ,它使用默认流控制器启用异步发布(即,无流控制)。
Generic.StrictReliable.LargeData.FastFlow ,它使用100 MB /秒(838 Mb / sec流量控制器实现对大数据的严格可靠通信。
Generic.StrictReliable.LargeData.MediumFlow,使用25 MB /秒(209 Mb / sec)流量控制器实现对大数据的严格可靠通信。实例的qos文件
<?xml version="1.0"?>
<dds xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://community.rti.com/schema/5.3.0/rti_dds_qos_profiles.xsd"
version="5.3.0">
<!-- QoS Library containing the QoS profile used in the generated example.
A QoS library is a named set of QoS profiles.
-->
<qos_library name="async_Library">
<!-- QoS profile used to configure reliable communication between the DataWriter
and DataReader created in the example code.
A QoS profile groups a set of related QoS.
-->
<qos_profile name="async_Profile" is_default_qos="true">
<!-- QoS used to configure the data writer created in the example code -->
<datawriter_qos>
<!-- QoS for asynchronous publishing -->
<publish_mode>
<kind>ASYNCHRONOUS_PUBLISH_MODE_QOS</kind>
<flow_controller_name>DDS_FIXED_RATE_FLOW_CONTROLLER_NAME</flow_controller_name>
</publish_mode>
<reliability>
<kind>RELIABLE_RELIABILITY_QOS</kind>
<max_blocking_time>
<sec>60</sec>
</max_blocking_time>
</reliability>
<history>
<kind>KEEP_LAST_HISTORY_QOS</kind>
<depth>12</depth>
</history>
<protocol>
<rtps_reliable_writer>
<min_send_window_size>50</min_send_window_size>
<max_send_window_size>50</max_send_window_size>
</rtps_reliable_writer>
</protocol>
</datawriter_qos>
<!-- QoS used to configure the data reader created in the example code -->
<datareader_qos>
<reliability>
<kind>RELIABLE_RELIABILITY_QOS</kind>
</reliability>
<history>
<kind>KEEP_ALL_HISTORY_QOS</kind>
</history>
</datareader_qos>
<participant_qos>
<!--
The participant name, if it is set, will be displayed in the
RTI Analyzer tool, making it easier for you to tell one
application from another when you're debugging.
-->
<participant_name>
<name>Asynchronous Publisher Example</name>
</participant_name>
</participant_qos>
</qos_profile>
</qos_library>
</dds>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。