groove-x / mqtt_bridge

mqtt_bridge provides a functionality to bridge between ROS and MQTT in bidirectional
MIT License
160 stars 146 forks source link

Question: how to bridge complex messages like cmd_vel #20

Closed Luke1962 closed 3 years ago

Luke1962 commented 5 years ago

Please can you explain how to bridge complex messages like cmd_vel (geometry_msgs/Twist)? Thank you in advance

mhaboali commented 5 years ago

A similar need here. I'd like to bridge the sensor_msgs/Imu data.

martinwimpff commented 5 years ago

msg_type: geometry_msgs.msg:Twist

PrimeshShamilka commented 4 years ago

You can simply define the complex message type in demo_params.yaml.

factory: mqtt_bridge.bridge:RosToMqttBridge msg_type: sensor_msgs.msg:Imu topic_from: imu topic_to: ping factory: mqtt_bridge.bridge:MqttToRosBridge msg_type: sensor_msgs.msg:Imu topic_from: ping topic_to: /pong