microsoft / ros_azure_iothub

This repository contains a ROS node for bidirectional communication with IoT Hub
38 stars 30 forks source link

Relay should construct the topic message as a proper JSON string #29

Open seanyen opened 3 years ago

seanyen commented 3 years ago

Ideally the topic messages received by relay should be a proper JSON string.

For example, if the subscribed topic is /acml_pose, and then the message can be:

"/amcl_pose": {
  "amcl_pose": {
    "header": {
      "seq": "placeholder",
      "stamp": "placeholder",
      "frame_id": "placeholder" 
    },
    "pose": {
      "pose": {
        "position": {
          "x": "placeholder",
          "y": "placeholder",
          "z": "placeholder"
        },
        "orientation": {
          "x": "placeholder",
          "y": "placeholder",
          "z": "placeholder",
          "w": "placeholder"
        }
      },
      "covariance": ["placeholder"]
    }
  }
}

Here are existing implementations which does the JSON conversion: