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

package_name = 'blindbuy_oakd'

setup(
    name=package_name,
    version='0.0.0',
    packages=[package_name],
    data_files=[
        ('share/ament_index/resource_index/packages',
            ['resource/' + package_name]),
        ('share/' + package_name, ['package.xml']),
         # Include all launch files
        (os.path.join('share', package_name, 'launch'), glob('launch/*.py')),
        # Include rviz files
        (os.path.join('share', package_name, 'rviz'), glob('rviz/*.rviz')),
        # Include urdf
        (os.path.join('share', package_name, 'urdf'), glob('urdf/*.urdf')),
        (os.path.join('share', package_name, 'urdf', 'models'), glob('urdf/models/*.dae')),
        #Include audio files
        (os.path.join('share', package_name, 'data/audio'), glob('data/audio/*.wav')),
        # Include models files
        (os.path.join('share', package_name, 'models'), glob('models/*.blob')),
        # Include meshes files
        (os.path.join('share', package_name, 'meshes'), glob('meshes/*.dae')),
        # Add array files
        (os.path.join('share', package_name, 'data/array'), glob('data/array/*.npy')),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    maintainer='dani',
    maintainer_email='d.garcialopez@hotmail.com',
    description='TODO: Package description',
    license='TODO: License declaration',
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'face_detection = ' + package_name + '.face_detection:main',
            'head_orientation = ' + package_name + '.head_orientation',
            'body_marker_publisher = ' + package_name + '.body_marker_publisher:main',
            'local_navigation = ' + package_name + '.local_navigation:main',
            'perception_publisher = ' + package_name + '.perception_publisher:main',
            'ocr_publisher = ' + package_name + '.ocr_publisher',
        ],
    },
)