"""
qr_detect.launch.py — 二维码识别（USB / MIPI 通用）
"""

from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import Node


def generate_launch_description():
    image_topic = LaunchConfiguration("image_topic", default="/image")

    return LaunchDescription([

        Node(
            package="qr_detection",
            executable="qr_detect",
            name="qr_detect",
            output="screen",
            parameters=[{"image_topic": image_topic}],
        ),
    ])
