31 lines
845 B
Python
31 lines
845 B
Python
"""Mission executor launch file."""
|
|
|
|
from launch import LaunchDescription
|
|
from launch.actions import DeclareLaunchArgument
|
|
from launch.substitutions import LaunchConfiguration
|
|
from launch_ros.actions import Node
|
|
from ament_index_python.packages import get_package_share_directory
|
|
import os
|
|
|
|
|
|
def generate_launch_description():
|
|
pkg_dir = get_package_share_directory('rov_mission')
|
|
|
|
env_arg = DeclareLaunchArgument(
|
|
'env', default_value='dev',
|
|
description='Deployment environment: dev, field'
|
|
)
|
|
|
|
env = LaunchConfiguration('env')
|
|
|
|
return LaunchDescription([
|
|
env_arg,
|
|
Node(
|
|
package='rov_mission',
|
|
executable='mission_executor',
|
|
name='mission_executor',
|
|
output='screen',
|
|
# Config selected by env argument at launch time
|
|
),
|
|
])
|