|
1 | 1 | menu "micro-ROS Settings" |
2 | 2 |
|
3 | | -config MICRO_ROS_AGENT_IP |
4 | | - string "micro-ROS Agent IP" |
5 | | - default "192.168.1.100" |
6 | | - help |
7 | | - micro-ROS Agent IP. |
| 3 | +##################################### |
| 4 | +# CHOOSE MICRO-ROS MIDDLEWARE # |
| 5 | +##################################### |
| 6 | + |
| 7 | +choice |
| 8 | + prompt "micro-ROS middleware" |
| 9 | + default MICRO_ROS_ESP_XRCE_DDS_MIDDLEWARE |
| 10 | + config MICRO_ROS_ESP_XRCE_DDS_MIDDLEWARE |
| 11 | + bool "micro-ROS over eProsima Micro XRCE-DDS" |
| 12 | + config MICRO_ROS_ESP_EMBEDDEDRTPS_MIDDLEWARE |
| 13 | + bool "micro-ROS over embeddedRTPS (EXPERIMENTAL)" |
| 14 | +endchoice |
8 | 15 |
|
9 | | -config MICRO_ROS_AGENT_PORT |
10 | | - string "micro-ROS Agent Port" |
11 | | - default "8888" |
12 | | - help |
13 | | - micro-ROS Agent port. |
| 16 | +################################## |
| 17 | +# CHOOSE NETWORK INTERFACE # |
| 18 | +################################## |
14 | 19 |
|
15 | | -choice |
| 20 | +choice |
16 | 21 | prompt "micro-ROS network interface select" |
17 | 22 | config MICRO_ROS_ESP_NETIF_WLAN |
18 | | - bool "micro-ROS over network uses WLAN netif" |
| 23 | + bool "WLAN interface" |
19 | 24 | config MICRO_ROS_ESP_NETIF_ENET |
20 | | - bool "micro-ROS over network uses Ethernet netif" |
| 25 | + bool "Ethernet interface" |
| 26 | +if MICRO_ROS_ESP_XRCE_DDS_MIDDLEWARE |
| 27 | + config MICRO_ROS_ESP_UART_TRANSPORT |
| 28 | + bool "Micro XRCE-DDS over UART. Check int32_publisher_custom_transport" |
| 29 | +endif |
21 | 30 | endchoice |
22 | | - |
23 | | -menu "UART Settings (for serial transport)" |
24 | 31 |
|
25 | | -config MICROROS_UART_TXD |
26 | | - int "UART TX pin" |
27 | | - range -1 33 |
28 | | - default -1 |
29 | | - help |
30 | | - Select Tx Down pin for uart connection or -1 for no change (Only used if serial transport is used for microros). |
31 | 32 |
|
32 | | -config MICROROS_UART_RXD |
33 | | - int "UART RX pin" |
34 | | - range -1 33 |
35 | | - default -1 |
36 | | - help |
37 | | - Select Rx Down pin for uart connection or -1 for no change (Only used if serial transport is used for microros). |
| 33 | +##################### |
| 34 | +# WLAN CONFIG # |
| 35 | +##################### |
38 | 36 |
|
39 | | -config MICROROS_UART_RTS |
40 | | - int "UART RTS pin" |
41 | | - range -1 33 |
42 | | - default -1 |
43 | | - help |
44 | | - Select RTS Down pin for uart connection or -1 for no change (Only used if serial transport is used for microros). |
| 37 | +if MICRO_ROS_ESP_NETIF_WLAN |
45 | 38 |
|
46 | | -config MICROROS_UART_CTS |
47 | | - int "UART CTS pin" |
48 | | - range -1 33 |
49 | | - default -1 |
50 | | - help |
51 | | - Select CTS Down pin for uart connection or -1 for no change (Only used if serial transport is used for microros). |
| 39 | +menu "WiFi Configuration" |
52 | 40 |
|
| 41 | + config ESP_WIFI_SSID |
| 42 | + string "WiFi SSID" |
| 43 | + default "myssid" |
| 44 | + help |
| 45 | + SSID (network name) for the example to connect to. |
| 46 | + |
| 47 | + config ESP_WIFI_PASSWORD |
| 48 | + string "WiFi Password" |
| 49 | + default "mypassword" |
| 50 | + help |
| 51 | + WiFi password (WPA or WPA2) for the example to use. |
| 52 | + |
| 53 | + config ESP_MAXIMUM_RETRY |
| 54 | + int "Maximum retry" |
| 55 | + default 5 |
| 56 | + help |
| 57 | + Set the Maximum retry to avoid station reconnecting to the AP unlimited when the AP is really inexistent. |
53 | 58 | endmenu |
54 | 59 |
|
| 60 | +endif # MICRO_ROS_ESP_NETIF_WLAN |
| 61 | + |
| 62 | +######################### |
| 63 | +# ETHERNET CONFIG # |
| 64 | +######################### |
| 65 | + |
| 66 | +if MICRO_ROS_ESP_NETIF_ENET |
| 67 | + |
55 | 68 | menu "Ethernet Configuration" |
56 | 69 | config MICRO_ROS_USE_SPI_ETHERNET |
57 | 70 | bool |
@@ -203,25 +216,66 @@ menu "Ethernet Configuration" |
203 | 216 | Set PHY address according your board schematic. |
204 | 217 | endmenu |
205 | 218 |
|
206 | | -menu "WiFi Configuration" |
| 219 | +endif # MICRO_ROS_ESP_NETIF_ENET |
207 | 220 |
|
208 | | - config ESP_WIFI_SSID |
209 | | - string "WiFi SSID" |
210 | | - default "myssid" |
211 | | - help |
212 | | - SSID (network name) for the example to connect to. |
| 221 | +######################### |
| 222 | +# XRCE-DDS CONFIG # |
| 223 | +######################### |
213 | 224 |
|
214 | | - config ESP_WIFI_PASSWORD |
215 | | - string "WiFi Password" |
216 | | - default "mypassword" |
217 | | - help |
218 | | - WiFi password (WPA or WPA2) for the example to use. |
| 225 | +if MICRO_ROS_ESP_XRCE_DDS_MIDDLEWARE && !MICRO_ROS_ESP_UART_TRANSPORT |
| 226 | + |
| 227 | +config MICRO_ROS_AGENT_IP |
| 228 | + string "micro-ROS Agent IP" |
| 229 | + default "192.168.1.100" |
| 230 | + help |
| 231 | + micro-ROS Agent IP. |
| 232 | + |
| 233 | +config MICRO_ROS_AGENT_PORT |
| 234 | + string "micro-ROS Agent Port" |
| 235 | + default "8888" |
| 236 | + help |
| 237 | + micro-ROS Agent port. |
| 238 | + |
| 239 | +endif |
| 240 | + |
| 241 | + |
| 242 | +##################### |
| 243 | +# UART CONFIG # |
| 244 | +##################### |
| 245 | + |
| 246 | +if MICRO_ROS_ESP_UART_TRANSPORT |
| 247 | +menu "UART Settings" |
| 248 | + |
| 249 | +config MICROROS_UART_TXD |
| 250 | + int "UART TX pin" |
| 251 | + range -1 33 |
| 252 | + default -1 |
| 253 | + help |
| 254 | + Select Tx Down pin for uart connection or -1 for no change (Only used if serial transport is used for microros). |
| 255 | + |
| 256 | +config MICROROS_UART_RXD |
| 257 | + int "UART RX pin" |
| 258 | + range -1 33 |
| 259 | + default -1 |
| 260 | + help |
| 261 | + Select Rx Down pin for uart connection or -1 for no change (Only used if serial transport is used for microros). |
| 262 | + |
| 263 | +config MICROROS_UART_RTS |
| 264 | + int "UART RTS pin" |
| 265 | + range -1 33 |
| 266 | + default -1 |
| 267 | + help |
| 268 | + Select RTS Down pin for uart connection or -1 for no change (Only used if serial transport is used for microros). |
| 269 | + |
| 270 | +config MICROROS_UART_CTS |
| 271 | + int "UART CTS pin" |
| 272 | + range -1 33 |
| 273 | + default -1 |
| 274 | + help |
| 275 | + Select CTS Down pin for uart connection or -1 for no change (Only used if serial transport is used for microros). |
219 | 276 |
|
220 | | - config ESP_MAXIMUM_RETRY |
221 | | - int "Maximum retry" |
222 | | - default 5 |
223 | | - help |
224 | | - Set the Maximum retry to avoid station reconnecting to the AP unlimited when the AP is really inexistent. |
225 | 277 | endmenu |
226 | 278 |
|
| 279 | +endif # MICRO_ROS_ESP_UART_TRANSPORT |
| 280 | + |
227 | 281 | endmenu |
0 commit comments