Skip to content

Commit 9d058f1

Browse files
committed
Merge branch 'main' into dev/ros2
2 parents af2a345 + f9b53da commit 9d058f1

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,26 @@ The *mqtt_client* is best configured with a ROS parameter *yaml* file. The confi
6464

6565
- ROS messages received locally on ROS topic `/ping/ros` are sent to the broker on MQTT topic `pingpong/ros`;
6666
- MQTT messages received from the broker on MQTT topic `pingpong/ros` are published locally on ROS topic `/pong/ros`;
67+
- primitive ROS messages received locally on ROS topic `/ping/primitive` are sent as primitive (string) messages to the broker on MQTT topic `pingpong/primitive`;
68+
- MQTT messages received from the broker on MQTT topic `pingpong/primitive` are published locally as primitive ROS messages on ROS topic `/pong/primitive`.
6769

6870
```yaml
6971
broker:
7072
host: localhost
7173
port: 1883
7274
bridge:
7375
ros2mqtt:
74-
- ros_topic: /ping
75-
mqtt_topic: pingpong
76+
- ros_topic: /ping/ros
77+
mqtt_topic: pingpong/ros
78+
- ros_topic: /ping/primitive
79+
mqtt_topic: pingpong/primitive
80+
primitive: true
7681
mqtt2ros:
77-
- mqtt_topic: pingpong
78-
ros_topic: /pong
82+
- mqtt_topic: pingpong/ros
83+
ros_topic: /pong/ros
84+
- mqtt_topic: pingpong/primitive
85+
ros_topic: /pong/primitive
86+
primitive: true
7987
```
8088
8189
#### Demo Client Launch
@@ -98,7 +106,9 @@ ros2 launch mqtt_client standalone.launch.ros2.xml
98106
[ WARN] [1665575657.360576344]: Parameter 'client/keep_alive_interval' not set, defaulting to '60.000000'
99107
[ WARN] [1665575657.360847295]: Parameter 'client/max_inflight' not set, defaulting to '65535'
100108
[ INFO] [1665575657.361281461]: Bridging ROS topic '/ping/ros' to MQTT topic 'pingpong/ros'
109+
[ INFO] [1665575657.361303380]: Bridging primitive ROS topic '/ping/primitive' to MQTT topic 'pingpong/primitive'
101110
[ INFO] [1665575657.361352809]: Bridging MQTT topic 'pingpong/ros' to ROS topic '/pong/ros'
111+
[ INFO] [1665575657.361370558]: Bridging MQTT topic 'pingpong/primitive' to primitive ROS topic '/pong/primitive'
102112
[ INFO] [1665575657.362153083]: Connecting to broker at 'tcp://localhost:1883' ...
103113
[ INFO] [1665575657.462622065]: Connected to broker at 'tcp://localhost:1883'
104114
```

mqtt_client/CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Changelog for package mqtt_client
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
1.1.0 (2022-10-13)
6+
------------------
7+
* Merge pull request #6 from ika-rwth-aachen/feature/primitive-msgs
8+
Support exchange of primitive messages with other MQTT clients
9+
* Contributors: Lennart Reiher
10+
511
1.0.2 (2022-10-07)
612
------------------
713
* Merge pull request #4 from ika-rwth-aachen/improvement/runtime-optimization

0 commit comments

Comments
 (0)