Path: blob/master/Tools/ros2/ardupilot_sitl/launch/virtual_ports.launch.py
9773 views
# Copyright 2023 ArduPilot.org.1#2# This program is free software: you can redistribute it and/or modify3# it under the terms of the GNU General Public License as published by4# the Free Software Foundation, either version 3 of the License, or5# (at your option) any later version.6#7# This program is distributed in the hope that it will be useful,8# but WITHOUT ANY WARRANTY; without even the implied warranty of9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the10# GNU General Public License for more details.11#12# You should have received a copy of the GNU General Public License13# along with this program. If not, see <https://www.gnu.org/licenses/>.1415"""16Launch a process to create virtual ports.1718Run with default arguments:1920ros2 launch ardupilot_sitl virtual_ports.launch.py21"""22from launch import LaunchDescription23from ardupilot_sitl.launch import VirtualPortsLaunch242526def generate_launch_description() -> LaunchDescription:27"""Generate a launch description for creating virtual ports using `socat`."""28return VirtualPortsLaunch.generate_launch_description()293031