mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 22:48:29 -04:00
21ea0d9794
Add launch module to ardupilot_sitl package - Move body of launch scripts into package for reuse. - Add utilities module. Update launch scripts - Provide type hints. - Add arguments to sitl.launch.py. - Fix formatting bug in sitl.launch.py home argument. Update micro_ros_agent launch script - Modify import for lauch_ros.actions.Node. - Change argument order in node initialiser. - Add args for UDP transport and set as default. Update ROS 2 DDS default params - Add default params for both serial and UDP transports. - Add DDS_ENABLE. Rename ROS 2 sitl_dds launch script - Rename sitl_dds launch script with serial suffix. - Add launch script for UDP transport. Update ROS 2 launch test fixtures - Make common test fixtures more granular. - Add fixtures and tests for UDP transport. - Update ROS 2 package.xml dependencies - Use yield rather than return in test fixtures. - Use ardupilot_sitl launch module directly. - Correct return type descriptions. - Fix flake8 failure. Update ROS 2 README - Update launch instructions. Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
# Copyright 2023 ArduPilot.org.
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
"""
|
|
Launch a non-interactive instance of MAVProxy.
|
|
|
|
Run with default arguments:
|
|
|
|
ros2 launch ardupilot_sitl mavproxy.launch.py
|
|
|
|
Show launch arguments:
|
|
|
|
ros2 launch ardupilot_sitl mavproxy.launch.py --show-args
|
|
"""
|
|
from launch import LaunchDescription
|
|
from ardupilot_sitl.launch import MAVProxyLaunch
|
|
|
|
|
|
def generate_launch_description() -> LaunchDescription:
|
|
"""Generate a launch description for MAVProxy."""
|
|
return MAVProxyLaunch.generate_launch_description()
|