-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (56 loc) · 1.95 KB
/
setup.py
File metadata and controls
61 lines (56 loc) · 1.95 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
import os
from glob import glob
from setuptools import find_packages, setup
package_name = "mhseals_nav"
def package_files(directory):
paths = []
for path, _, files in os.walk(directory):
for file in files:
full_path = os.path.join(path, file)
install_path = os.path.join(
'share',
package_name,
path
)
paths.append((install_path, [full_path]))
return paths
data_files = [
('share/ament_index/resource_index/packages', ['resource/' + package_name]),
('share/' + package_name, ['package.xml']),
(os.path.join('share', package_name, 'behavior_trees'),
glob(os.path.join('mhseals_nav', 'behavior_trees', '*'))),
(os.path.join('share', package_name, 'launch'),
glob(os.path.join('launch', '*launch.[pxy][yma]*'))),
(os.path.join('share', package_name, 'rviz'),
glob(os.path.join('rviz', '*'))),
(os.path.join('share', package_name, 'config'),
glob(os.path.join('config', '*'))),
]
data_files += package_files('description')
data_files += package_files('urdf')
setup(
name=package_name,
version="0.0.0",
packages=find_packages(exclude=["test"]),
data_files=data_files,
install_requires=[
'setuptools',
'pyyaml',
"numpy"
],
zip_safe=True,
author="Liam Bray",
description="Roboboat autonomous navigation package",
license="GNU GPLv3",
tests_require=["pytest"],
entry_points={
"console_scripts": [
"twist_converter = mhseals_nav.twist_converter:main",
"lidar_flattener = mhseals_nav.lidar_flattener:main",
"object_tracker = mhseals_nav.object_tracker:main",
"thruster_allocation = mhseals_nav.thruster_allocation:main",
"zed_detections_converter = mhseals_nav.zed_detections_converter:main",
"waypoint_speed_challenge = mhseals_nav.waypoint_speed_challenge:main"
],
},
)