|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + Copyright (C) 2023 Martin Scheiber, |
| 4 | + Control of Networked Systems Group, University of Klagenfurt, Austria. |
| 5 | + |
| 6 | + All rights reserved. |
| 7 | + |
| 8 | + This software is licensed under the terms of the BSD-2-Clause-License with |
| 9 | + no commercial use allowed, the full terms of which are made available |
| 10 | + in the LICENSE file. No license in patents is granted. |
| 11 | + |
| 12 | + You can contact the author at <[email protected]> |
| 13 | +--> |
| 14 | +<launch> |
| 15 | + <arg name="dev_id" default="1" /> |
| 16 | + <arg name="ros_namespace" default="cnsuav" /> |
| 17 | + |
| 18 | + <!-- parameters required for launching with fs_dev scripts --> |
| 19 | + <arg name="dev_type" default="xu4" /> |
| 20 | + <arg name="use_gps" default="False" /> |
| 21 | + <arg name="rec_script_file" default="$(find flightstack_scripts)/record_scripts/record_full.sh" /> |
| 22 | + <arg name="store_script_file" default="$(find flightstack_scripts)/store_scripts/safe_merge_data_single_dev.sh" /> |
| 23 | + <arg name="estimator_init_service_name" default="/$(arg ros_namespace)/$(env FS_ESTIMATOR_NODE_NAME)/init_service" /> |
| 24 | + <arg name="config_filepath" default="$(find flightstack_bringup)/configs/autonomy/config_dh.yaml" /> |
| 25 | + |
| 26 | + <arg name="launch_file" default="all" /> |
| 27 | + <!-- choose between 'all', 'estimation', 'navigation', 'operator', 'recording', 'saftey', and 'sensors'--> |
| 28 | + |
| 29 | + <group ns="$(arg ros_namespace)"> |
| 30 | + <!-- ESTIMATION --> |
| 31 | + <include file="$(find flightstack_bringup)/launch/fs_estimation.launch" |
| 32 | + if="$(eval arg('launch_file') == 'all' or arg('launch_file') == 'estimation')"> |
| 33 | + <arg name="dev_id" value="$(arg dev_id)" /> |
| 34 | + <arg name="ros_ns" value="$(arg ros_namespace)" /> |
| 35 | + |
| 36 | + <arg name="use_gps" value="$(arg use_gps)" /> |
| 37 | + </include> |
| 38 | + |
| 39 | + <!-- NAVIGATION --> |
| 40 | + <include file="$(find flightstack_bringup)/launch/fs_navigation.launch" |
| 41 | + if="$(eval arg('launch_file') == 'all' or arg('launch_file') == 'navigation')"> |
| 42 | + <arg name="dev_id" value="$(arg dev_id)" /> |
| 43 | + <arg name="ros_ns" value="$(arg ros_namespace)" /> |
| 44 | + |
| 45 | + <arg name="use_gps" value="$(arg use_gps)" /> |
| 46 | + </include> |
| 47 | + |
| 48 | + <!-- OPERATOR --> |
| 49 | + <include file="$(find flightstack_bringup)/launch/fs_operator.launch" |
| 50 | + if="$(eval arg('launch_file') == 'all' or arg('launch_file') == 'operator')"> |
| 51 | + <arg name="dev_id" value="$(arg dev_id)" /> |
| 52 | + <arg name="ros_ns" value="$(arg ros_namespace)" /> |
| 53 | + |
| 54 | + <arg name="estimator_init_service_name" value="$(arg estimator_init_service_name)" /> |
| 55 | + <arg name="config_filepath" value="$(arg config_filepath)" /> |
| 56 | + </include> |
| 57 | + |
| 58 | + <!-- RECORDING --> |
| 59 | + <include file="$(find flightstack_bringup)/launch/fs_recording.launch" |
| 60 | + if="$(eval arg('launch_file') == 'all' or arg('launch_file') == 'recording')"> |
| 61 | + <arg name="dev_id" value="$(arg dev_id)" /> |
| 62 | + <arg name="ros_ns" value="$(arg ros_namespace)" /> |
| 63 | + </include> |
| 64 | + |
| 65 | + <!-- SAFETY --> |
| 66 | + <include file="$(find flightstack_bringup)/launch/fs_safety.launch" |
| 67 | + if="$(eval arg('launch_file') == 'all' or arg('launch_file') == 'safety')"> |
| 68 | + <arg name="dev_id" value="$(arg dev_id)" /> |
| 69 | + <arg name="ros_ns" value="$(arg ros_namespace)" /> |
| 70 | + |
| 71 | + <arg name="use_gps" value="$(arg use_gps)" /> |
| 72 | + </include> |
| 73 | + |
| 74 | + <!-- SENSORS --> |
| 75 | + <include file="$(find flightstack_bringup)/launch/fs_sensors.launch" |
| 76 | + if="$(eval arg('launch_file') == 'all' or arg('launch_file') == 'sensors')"> |
| 77 | + <arg name="dev_id" value="$(arg dev_id)" /> |
| 78 | + <arg name="ros_ns" value="$(arg ros_namespace)" /> |
| 79 | + |
| 80 | + <arg name="use_gps" value="$(arg use_gps)" /> |
| 81 | + </include> |
| 82 | + </group> |
| 83 | +</launch> |
0 commit comments