from setuptools import setup

package_name = "saltybot_cellular"

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", ["launch/cellular.launch.py"]),
        (f"share/{package_name}/config", ["config/cellular_params.yaml"]),
    ],
    install_requires=["setuptools", "pyserial"],
    zip_safe=True,
    maintainer="sl-controls",
    maintainer_email="sl-controls@saltylab.local",
    description="SIM7600X 4G HAT driver: GPS NavSatFix + cellular modem + MQTT bridge",
    license="MIT",
    tests_require=["pytest"],
    entry_points={
        "console_scripts": [
            # NMEA GPS → /gps/fix, /gps/vel
            "gps_driver_node      = saltybot_cellular.gps_driver_node:main",
            # AT modem monitor → /cellular/status, /cellular/rssi, /cellular/connected
            "cellular_manager_node = saltybot_cellular.cellular_manager_node:main",
            # ROS2 ↔ MQTT telemetry relay
            "mqtt_bridge_node     = saltybot_cellular.mqtt_bridge_node:main",
        ],
    },
)
