From 483963d972cd9ba58311da19635ace873d0cc09b Mon Sep 17 00:00:00 2001 From: Junya Hayashi <junya.hayashi@groove-x.com> Date: Sun, 20 Nov 2016 23:39:49 +0900 Subject: [PATCH] Remove double quotation from yaml files --- README.md | 36 ++++++++++++++++++------------------ config/demo_params.yaml | 36 ++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 47e3c5f..318b3c0 100644 --- a/README.md +++ b/README.md @@ -72,14 +72,14 @@ mqtt: keepalive: 60 bridge: # ping pong - - factory: "mqtt_bridge.bridge:RosToMqttBridge" - msg_type: "std_msgs.msg:Bool" - topic_from: "/ping" - topic_to: "ping" - - factory: "mqtt_bridge.bridge:MqttToRosBridge" - msg_type: "std_msgs.msg:Bool" - topic_from: "ping" - topic_to: "/pong" + - factory: mqtt_bridge.bridge:RosToMqttBridge + msg_type: std_msgs.msg:Bool + topic_from: /ping + topic_to: ping + - factory: mqtt_bridge.bridge:MqttToRosBridge + msg_type: std_msgs.msg:Bool + topic_from: ping + topic_to: /pong ``` launch file: @@ -115,8 +115,8 @@ See `mqtt_bridge.mqtt_client` for detail. `mqtt_bridge` uses `json` as a selializer in default. But you can also configure other selializers. For example, if you want to use messagepack for selialization, add following configuration. ``` yaml -selializer: "msgpack:dumps" -deselializer: "msgpack:loads" +selializer: msgpack:dumps +deselializer: msgpack:loads ``` ### bridges @@ -126,14 +126,14 @@ You can list ROS <--> MQTT tranfer specifications in following format. ``` yaml bridge: # ping pong - - factory: "mqtt_bridge.bridge:RosToMqttBridge" - msg_type: "std_msgs.msg:Bool" - topic_from: "/ping" - topic_to: "ping" - - factory: "mqtt_bridge.bridge:MqttToRosBridge" - msg_type: "std_msgs.msg:Bool" - topic_from: "ping" - topic_to: "/pong" + - factory: mqtt_bridge.bridge:RosToMqttBridge + msg_type: std_msgs.msg:Bool + topic_from: /ping + topic_to: ping + - factory: mqtt_bridge.bridge:MqttToRosBridge + msg_type: std_msgs.msg:Bool + topic_from: ping + topic_to: /pong ``` * `factory`: bridge class for transfering message from ROS to MQTT, and vise versa. diff --git a/config/demo_params.yaml b/config/demo_params.yaml index d0abc5f..e6fa3de 100644 --- a/config/demo_params.yaml +++ b/config/demo_params.yaml @@ -5,24 +5,24 @@ mqtt: host: localhost port: 1883 keepalive: 60 -selializer: "msgpack:dumps" -deselializer: "msgpack:loads" +selializer: msgpack:dumps +deselializer: msgpack:loads bridge: # ping pong - - factory: "mqtt_bridge.bridge:RosToMqttBridge" - msg_type: "std_msgs.msg:Bool" - topic_from: "/ping" - topic_to: "ping" - - factory: "mqtt_bridge.bridge:MqttToRosBridge" - msg_type: "std_msgs.msg:Bool" - topic_from: "ping" - topic_to: "/pong" + - factory: mqtt_bridge.bridge:RosToMqttBridge + msg_type: std_msgs.msg:Bool + topic_from: /ping + topic_to: ping + - factory: mqtt_bridge.bridge:MqttToRosBridge + msg_type: std_msgs.msg:Bool + topic_from: ping + topic_to: /pong # echo back - - factory: "mqtt_bridge.bridge:RosToMqttBridge" - msg_type: "std_msgs.msg:String" - topic_from: "/echo" - topic_to: "echo" - - factory: "mqtt_bridge.bridge:MqttToRosBridge" - msg_type: "std_msgs.msg:String" - topic_from: "echo" - topic_to: "/back" + - factory: mqtt_bridge.bridge:RosToMqttBridge + msg_type: std_msgs.msg:String + topic_from: /echo + topic_to: echo + - factory: mqtt_bridge.bridge:MqttToRosBridge + msg_type: std_msgs.msg:String + topic_from: echo + topic_to: /back -- GitLab