from setuptools import setup

package_name = "saltybot_health_monitor"

setup(
    name=package_name,
    version="0.2.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", [
            "launch/health_monitor.launch.py",
            "launch/sensor_health.launch.py",
        ]),
        (f"share/{package_name}/config", [
            "config/health_config.yaml",
            "config/sensor_health_params.yaml",
        ]),
    ],
    install_requires=["setuptools", "pyyaml", "paho-mqtt"],
    zip_safe=True,
    maintainer="sl-jetson",
    maintainer_email="sl-jetson@saltylab.local",
    description=(
        "System health monitor: node heartbeats + sensor topic staleness "
        "detection with DiagnosticArray and MQTT (Issue #566)"
    ),
    license="Apache-2.0",
    tests_require=["pytest"],
    entry_points={
        "console_scripts": [
            "health_monitor_node = saltybot_health_monitor.health_monitor_node:main",
            "sensor_health_node  = saltybot_health_monitor.sensor_health_node:main",
        ],
    },
)
