This package provides a complete solution for controlling the TurtleBot3 using ROS2, C++, and Qt.
-
Client
- Qt: For creating the user interface and visualizing TurtleBot3 states.
-
Server
- C++: Core logic for ROS2 nodes and algorithms.
-
Framework
- ROS2: For communication between TurtleBot3 and external devices.
-
Hardware Requirements:
-
TurtleBot3
-
Laptop/PC running Ubuntu
-
-
Software Requirements:
- ROS2 (e.g., Humble, Foxy)
- Qt Creator
- C++ Compiler
- Clone the repository:
cd {workspace}
git clone https://github.com/kinesis19/ros2-udp-bridge.git
cd ros2-udp-bridge
- Build the package:
colcon build
- Source the workspace:
source ~/{workspace name}/ros2-udp-bridge/install/setup.bash
- Run the package:
ros2 run udp_connection udp_connection laptop
- Run a package.
- The first time you run the package, it will automatically set up and operate in autonomous mode.
- To exit autonomous mode, enter the number “0” in the spinBox located to the right of the “Set Stage” button, press the “Set Stage” button, and then press the “Robot Start” or “Robot Stop” button.
- To exit autonomous mode, enter the number “0” in the spinBox located to the right of the “Set Stage” button, press the “Set Stage” button, and then press the “Robot Start” or “Robot Stop” button.
- Press the “STOP” button on the arrow button in the upper right corner.
- You can control the robot with the W, A, S, and D keys, and if you pressed the “STOP” key in the previous step, you can stop the robot's movement with the “SPACE” key.
This project is licensed under the MIT License.