import os
from glob import glob

from setuptools import find_packages, setup

package_name = 'craic_localization'

setup(
    name=package_name,
    version='0.0.0',
    packages=find_packages(exclude=['test']),
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
        (os.path.join('share', package_name, 'config'),
            glob('config/*.yaml')),
        (os.path.join('share', package_name, 'launch'),
            glob('launch/*.launch.py')),
        (os.path.join('share', package_name, 'rviz'),
            glob('rviz/*.rviz')),
        (os.path.join('share', package_name, 'urdf'),
            glob('urdf/*')),
        (os.path.join('share', package_name, 'maps'),
            glob('maps/*')),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='fallensigh',
    maintainer_email='fallensigh@gmail.com',
    description='Wheel odometry + LiDAR localization for the CRAIC mobile base',
    license='MIT',
    extras_require={
        'test': [
            'pytest',
        ],
    },
    entry_points={
        'console_scripts': [
            'chassis_odometry = craic_localization.chassis_odometry:main',
            'teach_points = craic_localization.teach_points:main',
            'navigate_to_point = craic_localization.navigate_to_point:main',
            'show_points = craic_localization.show_points:main',
        ],
    },
)
