This ROS2 project includes two nodes: BaseStationNode
and DroneNode
, which together simulate the control and movement of a drone. The project utilizes ROS2 for messaging and RViz for visualization.
- BaseStationNode: This node publishes velocity commands to control the drone's linear and angular movements.
- DroneNode: This node simulates the drone's position and orientation, broadcasting its transformation relative to a world frame.
- ROS2 (Foxy or later)
- RViz (for visualization)
- Clone the repository into your ROS2 workspace's
src
directory. - Navigate back to your ROS2 workspace root and build the project with
colcon build
. - Source the workspace with
source install/setup.bash
.
- Start the BaseStationNode:
- In a separate terminal, start the DroneNode:
- Launch RViz:
- In RViz, add a
TF
display to visualize the drone's transformation. - Optionally, add other displays as needed to visualize different aspects of the drone's movement and environment.
- You can modify the
BaseStationNode
to change the drone's command velocities. - Adjust the
DroneNode
to simulate different movement patterns.
- Ensure all ROS2 dependencies are installed.
- Verify that your ROS2 workspace is correctly sourced.
- Check RViz configurations and ensure the correct frame is selected.
Contributions to enhance or extend the functionality of this project are welcome. Please follow the standard ROS2 development practices for contributions.