This is a simple ROS2 publisher and subscriber nodes written in Python.
rosdep install --from-paths src --ignore-src -r -y
Located at dev_ws
colcon build
Located at dev_ws
source install/setup.bash
Run publisher node
ros2 run py_pubsub publisher
Run subscriber node
ros2 run py_pubsub listener