import os
from glob import glob
from setuptools import setup

package_name = "saltybot_uwb_position"

setup(
    name=package_name,
    version="0.1.0",
    packages=[package_name],
    data_files=[
        ("share/ament_index/resource_index/packages",
            ["resource/" + package_name]),
        ("share/" + package_name, ["package.xml"]),
        (os.path.join("share", package_name, "launch"),
            glob("launch/*.py")),
        (os.path.join("share", package_name, "config"),
            glob("config/*.yaml")),
    ],
    install_requires=["setuptools"],
    zip_safe=True,
    maintainer="sl-perception",
    maintainer_email="sl-perception@saltylab.local",
    description="ROS2 UWB position node — JSON serial bridge with trilateration (Issue #546)",
    license="MIT",
    tests_require=["pytest"],
    entry_points={
        "console_scripts": [
            "uwb_position = saltybot_uwb_position.uwb_position_node:main",
        ],
    },
)
