This repository contains a ROS2 project in which a Python publisher node -> simulating a gyroscope, and a C++ subscriber node -> simulating an altitude controller, communicate between each other. The publishing node will publish random data simulating a gyroscope's data every 10 seconds, which will in turn be received by the simulated altitude controller.
- ROS2 Humble
- Python 3
- C++ compiler
git clone https://github.com/SophiaClifton/ros2_pubsub.git
cd ROS2_PubSub
cd src
colcon build
source install/setup.bash
ros2 run gyro_receiver listener
source install/setup.bash
ros2 run gyro_publisher talker