Skip to content

SophiaClifton/ROS2_Gyro_Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

ROS2 Publisher and Subscriber Project

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.

Prerequisites

  • ROS2 Humble
  • Python 3
  • C++ compiler

Steps

Clone the Repository

git clone https://github.com/SophiaClifton/ros2_pubsub.git
cd ROS2_PubSub

Build the Cloned Repository

cd src
colcon build

In two seperate terminals:

Run the subscriber node

source install/setup.bash
ros2 run gyro_receiver listener

Run the publisher node

source install/setup.bash
ros2 run gyro_publisher talker

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published