Skip to content

can't recv the subscriber data from fastdds by websocket. #200

@taoyonggang

Description

@taoyonggang
types:
  idls:
    - >
      module cn{
        module seisys {
          module dds {
                @topic
                struct TopicMonInfo{
                     string uuid;       
                     @key short domain;       
                     @key string srcNodeId;   
                     string srcNodeName;     
                     @key string toNodeId;       
                     string toNodeName;    
                     @key string topicName;
                     @key long cycle;        
                     long long  updateTime;   
                     long  nCount;          
                     long  nSize;            
                     short srcType;          
              };
           };
        };
      };

systems:
  dds: 
    type: fastdds
    participant:
      domain_id: 10
      #partition: ["*"] 
    types:
      - cn::seisys::dds::TopicMonInfo


  websocket: 
    type: websocket_server
    participant:
      domain_id: 10
      #partition: ["*"]
    types:
        - cn::seisys::dds::TopicMonInfo
    security: none
    host: 10.10.3.30
    port: 18080

routes:
  websocket_to_dds: 
    from: websocket
    to: dds

  dds_to_websocket: 
    from: dds
    to: websocket

topics:
  #mon_dds_to_websocket: 
  #   {
  #     type: "cn::seisys::dds::TopicMonInfo",
  #     route: dds_to_websocket,
  #     remap: {
  #              dds: { type: "cn::seisys::dds::TopicMonInfo", topic: DataMonitor }
  #            }
  #   }

  mon_websocket_to_dds: {
       type: "cn::seisys::dds::TopicMonInfo",
       partition: ["*"], 
       route: websocket_to_dds,
       remap: {
                dds: { type: "cn::seisys::dds::TopicMonInfo", topic: DataMonitor, partition: ["*"] }
              }

    }

But my c++ sub is ok. The TopicName is not matched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions