from setuptools import setup, find_packages
import os
from glob import glob

package_name = "saltybot_adaptive_pid"

setup(
    name=package_name,
    version="0.1.0",
    packages=find_packages(exclude=["test"]),
    data_files=[
        ("share/ament_index/resource_index/packages",
         [f"resource/{package_name}"]),
        (f"share/{package_name}", ["package.xml"]),
        (os.path.join("share", package_name, "config"),
         glob("config/*.yaml")),
        (os.path.join("share", package_name, "launch"),
         glob("launch/*.py")),
    ],
    install_requires=["setuptools"],
    zip_safe=True,
    maintainer="sl-controls",
    maintainer_email="sl-controls@saltylab.local",
    description="Adaptive balance PID with weight estimation and gain scheduling",
    license="MIT",
    tests_require=["pytest"],
    entry_points={
        "console_scripts": [
            f"adaptive_pid_node = {package_name}.adaptive_pid_node:main",
        ],
    },
)
