"""xr_rm_input 包安装配置。

该包负责把 XR/PICO 端发来的 UDP 手柄数据接入 ROS2，并提供一个
sample_udp_sender 方便在没有真实手柄时做链路调试。
"""

from glob import glob
from setuptools import setup

package_name = "xr_rm_input"

setup(
    name=package_name,
    version="0.1.0",
    packages=[package_name],
    data_files=[
        ("share/ament_index/resource_index/packages", [f"resource/{package_name}"]),
        (f"share/{package_name}", ["package.xml"]),
        (f"share/{package_name}/launch", glob("launch/*.launch.py")),
    ],
    install_requires=["setuptools"],
    zip_safe=True,
    maintainer="Yikai Fu",
    maintainer_email="user@example.com",
    description="Receives XR controller pose packets and publishes left/right ROS2 messages.",
    license="Apache-2.0",
    tests_require=["pytest"],
    entry_points={
        "console_scripts": [
            "udp_controller_receiver = xr_rm_input.udp_controller_receiver:main",
            "sample_udp_sender = xr_rm_input.sample_udp_sender:main",
            "xrobotoolkit_to_udp_bridge = xr_rm_input.xrobotoolkit_to_udp_bridge:main",
        ],
    },
)
