-
Notifications
You must be signed in to change notification settings - Fork 0
/
copier.yml
166 lines (137 loc) · 3.71 KB
/
copier.yml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
_subdirectory: "templates/{{ template }}"
_envops:
lstrip_blocks: true
trim_blocks: true
_jinja_extensions:
- jinja2_strcase.StrcaseExtension
template:
help: Template
type: str
default: ros2_cpp_pkg
choices: [ros2_cpp_pkg, ros2_interfaces_pkg, ros2_python_pkg]
package_name:
help: Package name
type: str
placeholder: "{{ template }}"
validator: "{% if not package_name %}Package name is required{% endif %}"
description:
help: Description
type: str
default: TODO
maintainer:
help: Maintainer
type: str
default: TODO
maintainer_email:
help: Maintainer email
type: str
default: "{{ maintainer | lower | replace(' ', '.') }}@TODO.com"
author:
help: Author
type: str
default: "{{ maintainer }}"
author_email:
help: Author email
type: str
default: "{{ author | lower | replace(' ', '.') }}@TODO.com"
license:
help: License
type: str
default: TODO
choices: [TODO, Apache-2.0, BSL-1.0, BSD-2.0, BSD-2-Clause, BSD-3-Clause, GPL-3.0-only, LGPL-2.1-only, LGPL-3.0-only, MIT, MIT-0]
node_name:
help: Node name
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
type: str
default: "{{ package_name }}"
node_class_name:
help: Class name of node
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
type: str
default: "{{ node_name | to_camel }}"
is_component:
help: Make it a component?
when: "{{ template == 'ros2_cpp_pkg' }}"
type: bool
default: false
is_lifecycle:
help: Make it a lifecycle node?
when: "{{ template == 'ros2_cpp_pkg' }}"
type: bool
default: false
has_launch_file:
help: Add a launch file?
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
type: bool
default: true
launch_file_type:
help: Type of launch file
when: "{{ (template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg') and has_launch_file }}"
type: str
default: py
choices: [py, xml, yml]
has_params:
help: Add parameter loading?
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
type: bool
default: true
has_subscriber:
help: Add a subscriber?
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
type: bool
default: true
has_publisher:
help: Add a publisher?
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
type: bool
default: true
has_service_server:
help: Add a service server?
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
type: bool
default: false
has_action_server:
help: Add an action server?
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
type: bool
default: false
has_timer:
help: Add a timer callback?
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
type: bool
default: false
auto_shutdown:
help: Automatically shutdown the node after launch (useful in CI/CD)?
when: "{{ template == 'ros2_cpp_pkg' or template == 'ros2_python_pkg' }}"
when: false
type: bool
default: false
interface_types:
help: Interfaces types
when: "{{ template == 'ros2_interfaces_pkg' }}"
type: str
default: [msg, srv, action]
choices:
Message: msg
Service: srv
Action: action
multiselect: true
msg_name:
help: Message name
when: "{{ template == 'ros2_interfaces_pkg' and 'msg' in interface_types }}"
type: str
default: Message
srv_name:
help: Service name
when: "{{ template == 'ros2_interfaces_pkg' and 'srv' in interface_types }}"
type: str
default: Service
action_name:
help: Action name
when: "{{ template == 'ros2_interfaces_pkg' and 'action' in interface_types }}"
type: str
default: Action
has_docker_ros:
help: Add the docker-ros CI integration?
type: bool
default: false