Skip to content

lgkimjy/mqtt2ros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqtt2ros

from mqtt IOT protocol (json) to ros msgs (rostopic)

pozyx mqtt api protocol

https://docs.pozyx.io/enterprise/latest/interfaces/mqtt-api

Requirements

sudo apt install mosquitto mosquitto-clients
pip install paho-mqtt or  python -m pip install paho-mqtt
pip install mqtt-recorder

Run the Package

Custom data pub/sub

# MQTT JSON publisher
python mqtt_json_pub.py ../data/config.json

# MQTT JSON Subscriber
python mqtt_json_sub.py

Record/Replay MQTT data

# MQTT JSON record
mqtt-recorder --host [Gateway HOST IP] --mode record --file logs/filename.csv

# MQTT JSON replay
mqtt-recorder --host localhost --mode replay --file logs/filename.csv

# Rosbag replay
rosbag play logs/filename.bag

Data sub2ros

# MQTT JSON Subscribe and Parse to custom ROS msg
rosrun mqtt2ros mqtt2rosmsg.py

References

About

from mqtt iot protocol (json) to ros msgs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •