-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (44 loc) · 2.01 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from setuptools import setup
import os
from glob import glob
package_name = 'chess_manipulator'
models_paths = []
directories= glob('models/')+glob('models/*/')+glob('models/*/*/')
for directory in directories:
models_paths.append((os.path.join('share',package_name,directory),glob(f'{directory}/*.*')))
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']),
#Add all xacro and URDF files that descripe the robot to the share directory
(os.path.join('share',package_name,'description'),glob('description/*.xacro')),
#Adding visual and collision mehses to the share directory
(os.path.join('share',package_name,'meshes','visual'),glob('meshes/visual/*.dae')),
(os.path.join('share',package_name,'meshes','collision'),glob('meshes/collision/*.stl')),
#Adding Rviz2 configuration files
(os.path.join('share',package_name,'rviz'),glob('rviz/*.rviz')),
#Adding launch files
(os.path.join('share',package_name,'launch'),glob('launch/*.launch.*')),
(os.path.join('share',package_name,'config'),glob('config/*.yaml')),
(os.path.join('share',package_name,'worlds'),glob('worlds/*')),
(os.path.join('lib',package_name), glob('chess_manipulator/RobotClass.py'))
]+models_paths,
install_requires=['setuptools'],
zip_safe=True,
maintainer='Zein Alabedeen Barhoum and Rahaf Alshaowa',
maintainer_email='zein.barhoum799@gmail.com',
description='Franka Emika Panda manipulator playing chess',
license='Apache License 2.0',
tests_require=['pytest'],
entry_points={
'console_scripts': [
'controller = chess_manipulator.controller:main',
'multi_point_controller = chess_manipulator.multi_point_controller:main',
'example_game = chess_manipulator.example_game:main',
],
},
)