|
1 | 1 | #!/usr/bin/env python3 |
| 2 | +# |
| 3 | +# Copyright 2025 Haroon Rasheed. |
| 4 | +# |
| 5 | +# This file is part of the mavros package and subject to the license terms |
| 6 | +# in the top-level LICENSE file of the mavros repository. |
| 7 | +# https://github.com/mavlink/mavros/tree/master/LICENSE.md |
| 8 | +# |
2 | 9 | # ============================================================================= |
3 | | -# File Name : waypoint_mission_manager.py |
4 | | -# Author : Haroon Rasheed |
5 | | -# Description : |
6 | | -# ----------------------------------------------------------------------------- |
7 | | -# This Python script demonstrates how to manage waypoint missions using MAVROS. |
8 | | -# It provides examples of how to interact with MAVLink services and topics |
9 | | -# through ROS to perform mission management tasks such as: |
| 10 | +# This Python script demonstrates how to manage waypoint missions using MAVROS. |
| 11 | +# It provides examples of how to interact with MAVLink services and topics |
| 12 | +# through ROS to perform mission management tasks such as: |
10 | 13 | # |
11 | | -# • Uploading (pushing) waypoints to the flight controller. |
12 | | -# • Downloading (pulling) existing mission waypoints. |
13 | | -# • Clearing all mission waypoints from the flight controller. |
14 | | -# • Setting a specific waypoint as the current active one. |
15 | | -# • Changing flight mode to AUTO for mission execution. |
| 14 | +# • Uploading (pushing) waypoints to the flight controller. |
| 15 | +# • Downloading (pulling) existing mission waypoints. |
| 16 | +# • Clearing all mission waypoints from the flight controller. |
| 17 | +# • Setting a specific waypoint as the current active one. |
| 18 | +# • Changing flight mode to AUTO for mission execution. |
16 | 19 | # |
17 | | -# Note: |
18 | | -# - This example only demonstrates the usage of MAVROS services and messages |
19 | | -# related to waypoint missions. |
20 | | -# - It assumes that the quadcopter is already airborne and hovering at its |
21 | | -# home position before executing any mission-related operations. |
| 20 | +# Note: |
| 21 | +# - This example only demonstrates the usage of MAVROS services and messages |
| 22 | +# related to waypoint missions. |
| 23 | +# - It assumes that the quadcopter is already airborne and hovering at its |
| 24 | +# home position before executing any mission-related operations. |
22 | 25 | # |
23 | | -# Covered Services (from mavros_msgs): |
24 | | -# - WaypointPush.srv |
25 | | -# - WaypointPull.srv |
26 | | -# - WaypointClear.srv |
27 | | -# - WaypointSetCurrent.srv |
28 | | -# - SetMode.srv |
| 26 | +# Covered Services (from mavros_msgs): |
| 27 | +# - WaypointPush.srv |
| 28 | +# - WaypointPull.srv |
| 29 | +# - WaypointClear.srv |
| 30 | +# - WaypointSetCurrent.srv |
| 31 | +# - SetMode.srv |
29 | 32 | # |
30 | | -# Related MAVROS Topics (waypoint mission related): |
31 | | -# - /mavros/mission/waypoints : Publishes current mission waypoints. |
32 | | -# - /mavros/mission/reached : Publishes notifications when a waypoint is reached. |
| 33 | +# Related MAVROS Topics (waypoint mission related): |
| 34 | +# - /mavros/mission/waypoints : Publishes current mission waypoints. |
| 35 | +# - /mavros/mission/reached : Publishes notifications when a waypoint is reached. |
33 | 36 | # |
34 | | -# The code provides a practical foundation for autonomous waypoint mission |
35 | | -# management using MAVROS with ArduPilot-based flight controllers. |
| 37 | +# The code provides a practical foundation for autonomous waypoint mission |
| 38 | +# management using MAVROS with ArduPilot-based flight controllers. |
36 | 39 | # ============================================================================= |
37 | 40 |
|
38 | 41 | import typing as ty |
|
0 commit comments