当前位置:   article > 正文

通过RTI_DDS传输大数据?_rti launcher

rti launcher

要通过DDS可靠地发送大数据,您需要使用异步发布器,它在外部中间件线程中发送用户数据。


 你可以使用:

Generic.StrictReliable.LargeData ,它使用默认流控制器启用异步发布(即,无流控制)。

Generic.StrictReliable.LargeData.FastFlow ,它使用100 MB /秒(838 Mb / sec流量控制器实现对大数据的严格可靠通信。

Generic.StrictReliable.LargeData.MediumFlow,使用25 MB /秒(209 Mb / sec)流量控制器实现对大数据的严格可靠通信。
Generic.StrictReliable.LargeData.SlowFlow ,使用6.25 MB /秒(52 Mb /秒)流量控制器为大数据提供严格可靠的通信。
如果这些解决方案适合您,请告诉我。 否则,我们可以查看您的示例以获取更具体的配置。



实例的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>

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/862715
推荐阅读
相关标签
  

闽ICP备14008679号