from setuptools import setup

package_name = "saltybot_speed_controller"

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/outdoor_speed.launch.py"]),
        (f"share/{package_name}/config", ["config/speed_profiles.yaml"]),
    ],
    install_requires=["setuptools"],
    zip_safe=True,
    maintainer="sl-controls",
    maintainer_email="sl-controls@saltylab.local",
    description=(
        "Outdoor adaptive speed controller: walk/jog/ride profiles "
        "with trapezoidal accel limits and GPS runaway protection"
    ),
    license="MIT",
    tests_require=["pytest"],
    entry_points={
        "console_scripts": [
            # Adaptive speed profile node: /cmd_vel_raw → /cmd_vel
            "speed_controller_node = saltybot_speed_controller.speed_controller_node:main",
        ],
    },
)
