Skip to content

Add support for publishing position data from MQTT#676

Merged
samuelthoren merged 5 commits intodevfrom
feature/publish_mqtt_data
Apr 27, 2026
Merged

Add support for publishing position data from MQTT#676
samuelthoren merged 5 commits intodevfrom
feature/publish_mqtt_data

Conversation

@samuelthoren
Copy link
Copy Markdown
Contributor

@samuelthoren samuelthoren commented Apr 20, 2026

The current implementation can receive MQTT messages and then publishes a message of type std_msgs/msg/Empty.

This PR extends that functionality and adds support for sending any type of message. This PR adds the support for sensor_msgs/msg/NavSatFix and sends the latitude, longitude, and altitude to ROS.

Relevant part from params.yaml:

mqtt2ros: # Object specifying which MQTT topics to map to which ROS topics
        mqtt_topics: # Array specifying which ROS topics to bridge
          - position_sender # The MQTT topic that should be bridged, corresponds to the sub-object in the YAML
        position_sender:
          ros_topic: position_sender/position # ROS topic on which corresponding MQTT messages are published
          msg_type: sensor_msgs/msg/NavSatFix
          advanced: # Optional settings for each topic
            mqtt:
              qos: 1 # [0] MQTT QoS value
            ros:
              queue_size: 1 # [1] ROS publisher queue size

@samuelthoren samuelthoren changed the base branch from dev to fix/format April 20, 2026 11:51
Base automatically changed from fix/format to dev April 21, 2026 10:49
@samuelthoren samuelthoren marked this pull request as ready for review April 21, 2026 11:02
Comment thread atos/modules/MQTTBridge/inc/mqtt2ros_utils.hpp
Comment thread atos/modules/MQTTBridge/src/mqttbridge.cpp Outdated
Comment thread atos/modules/MQTTBridge/src/mqttbridge.cpp Outdated
@samuelthoren samuelthoren requested a review from Robert108 April 27, 2026 08:34
@samuelthoren samuelthoren merged commit b44e043 into dev Apr 27, 2026
7 checks passed
@samuelthoren samuelthoren deleted the feature/publish_mqtt_data branch April 27, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants