from glob import glob
from setuptools import find_packages, setup

package_name = 'vision_detect'

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']),
        ('share/' + package_name + '/launch', glob('launch/*.launch.py')),
        ('share/' + package_name + '/configs', glob('configs/*.json')),
        ('share/' + package_name + '/configs/flexiv_configs', glob('configs/flexiv_configs/*.json')),
        ('share/' + package_name + '/configs/hand_eye_mat', glob('configs/hand_eye_mat/*.json')),
        ('share/' + package_name + '/configs/launch_configs', glob('configs/launch_configs/*.json')),

        ('share/' + package_name + '/checkpoints', glob('checkpoints/*.pt')),
        ('share/' + package_name + '/pointclouds', glob('pointclouds/*.pcd')),
    ],
    install_requires=['setuptools'],
    zip_safe=True,
    include_package_data=True,
    maintainer='lyx',
    maintainer_email='lyx@todo.todo',
    description='TODO: Package description',
    license='TODO: License declaration',    
    tests_require=['pytest'],
    entry_points={
        'console_scripts': [
            'detect_service_node = vision_detect.detect_service:main',
            'detect_topic_node = vision_detect.detect_topic:main',

            'box_detect_service_node = vision_detect.detect_box_service:main',
            'red_detect_topic_node = vision_detect.detect_red_topic:main',
            'red_detect_service_node = vision_detect.detect_red_service:main',

            'flexiv_detect_topic_node = vision_detect.flexivaidk_detect_topic:main',
            'flexiv_detect_service_node = vision_detect.flexivaidk_detect_service:main',

            'sub_pose_node = vision_detect.sub_pose:main',
            'calibration_node = vision_detect.hand_eye_calibration:main',
            'crossboard_detect_node = vision_detect.crossboard_detect:main',
            'service_client_node = vision_detect.service_client:main',
            'get_camera_pose_node = vision_detect.get_camera_pose:main',
            'calculate_node = vision_detect.calculate:main',
            
            'detect_node = vision_detect.detect_node:main',
        ],
    },
)
