"""Launch file for saltybot social enrollment node."""

import os

from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch_ros.actions import Node


def generate_launch_description():
    pkg_share = get_package_share_directory('saltybot_social_enrollment')
    config_file = os.path.join(pkg_share, 'config', 'enrollment_params.yaml')

    return LaunchDescription([
        Node(
            package='saltybot_social_enrollment',
            executable='enrollment_node',
            name='enrollment_node',
            parameters=[config_file],
            output='screen',
        ),
    ])
