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


def generate_launch_description():
    config_path = os.path.join(
        get_package_share_directory("dual_arm_remote_teleop"),
        "config",
        "dual_arm_remote_teleop.yaml",
    )

    return LaunchDescription([
        Node(
            package="dual_arm_remote_teleop",
            executable="dual_arm_remote_teleop_node",
            name="dual_arm_remote_teleop",
            output="screen",
            parameters=[config_path],
        )
    ])

