File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,9 +118,9 @@ By running this command without any argument the available demo applications and
118118
119119Common options available at this configuration step are:
120120 - ` --transport ` or ` -t ` : ` udp ` , ` serial ` or any hardware specific transport label
121- - ` --dev ` or ` -d ` : agent string descriptor in a serial-like transport
122- - ` --ip ` or ` -i ` : agent IP in a network-like transport
123- - ` --port ` or ` -p ` : agent port in a network-like transport
121+ - ` --dev ` or ` -d ` : agent string descriptor in a serial-like transport (optional)
122+ - ` --ip ` or ` -i ` : agent IP in a network-like transport (optional)
123+ - ` --port ` or ` -p ` : agent port in a network-like transport (optional)
124124
125125
126126Please note that each RTOS has its configuration approach that you might use for further customization of these base configurations. Visit the [ micro-ROS webpage] ( https://micro-ros.github.io/docs/tutorials/core/first_application_rtos/ ) for detailed information about RTOS configuration.
Original file line number Diff line number Diff line change @@ -14,12 +14,9 @@ function help {
1414echo $CONFIG_NAME > $FW_TARGETDIR /APP
1515
1616if [ " $UROS_TRANSPORT " == " serial" ]; then
17- # if [ "$UROS_AGENT_DEVICE" -gt 2 ]; then
18- # echo ESP32 only supports USART0, USART1 or USART2
19- # exit 1
20- # fi
21-
2217 echo " Using serial device USART."
18+ echo " Please check firmware/freertos_apps/microros_esp32_extensions/main/main.c"
19+ echo " for configuring serial device before build."
2320
2421 update_meta " microxrcedds_client" " UCLIENT_PROFILE_CUSTOM_TRANSPORT=ON"
2522 update_meta " microxrcedds_client" " UCLIENT_PROFILE_STREAM_FRAMING=ON"
Original file line number Diff line number Diff line change @@ -5,14 +5,16 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f446re_extensions
55function help {
66 echo " Configure script need an argument."
77 echo " --transport -t serial or serial-usb"
8- echo " --dev -d agent string descriptor in a serial-like transport"
98}
109
1110echo $CONFIG_NAME > $FW_TARGETDIR /APP
1211# TODO add USB-OTG support
1312if [ " $UROS_TRANSPORT " == " serial" ]; then
1413 echo " Using serial device USART."
1514
15+ echo " Please check firmware/freertos_apps/microros_nucleo_f446re_extensions/Core/Src/freertos.c"
16+ echo " for configuring serial device before build."
17+
1618 update_meta " microxrcedds_client" " UCLIENT_PROFILE_CUSTOM_TRANSPORT=ON"
1719 update_meta " microxrcedds_client" " UCLIENT_PROFILE_STREAM_FRAMING=ON"
1820 update_meta " microxrcedds_client" " UCLIENT_PROFILE_SERIAL=OFF"
Original file line number Diff line number Diff line change @@ -6,14 +6,16 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f446ze_extensions
66function help {
77 echo " Configure script need an argument."
88 echo " --transport -t serial or serial-usb"
9- echo " --dev -d agent string descriptor in a serial-like transport"
109}
1110
1211echo $CONFIG_NAME > $FW_TARGETDIR /APP
1312# TODO add USB-OTG support
1413if [ " $UROS_TRANSPORT " == " serial" ]; then
1514 echo " Using serial device USART."
1615
16+ echo " Please check firmware/freertos_apps/microros_nucleo_f446ze_extensions/Src/main.c"
17+ echo " for configuring serial device before build."
18+
1719 update_meta " microxrcedds_client" " UCLIENT_PROFILE_CUSTOM_TRANSPORT=ON"
1820 update_meta " microxrcedds_client" " UCLIENT_PROFILE_STREAM_FRAMING=ON"
1921 update_meta " microxrcedds_client" " UCLIENT_PROFILE_SERIAL=OFF"
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f746zg_extensions
66function help {
77 echo " Configure script need an argument."
88 echo " --transport -t udp, serial or serial-usb"
9- echo " --dev -d agent string descriptor in a serial-like transport"
109 echo " --ip -i agent IP in a network-like transport"
1110 echo " --port -p agent port in a network-like transport"
1211}
@@ -30,6 +29,9 @@ if [ "$UROS_TRANSPORT" == "udp" ]; then
3029elif [ " $UROS_TRANSPORT " == " serial" ]; then
3130 echo " Using serial device USART."
3231
32+ echo " Please check firmware/freertos_apps/microros_nucleo_f746zg_extensions/Src/main.c"
33+ echo " for configuring serial device before build."
34+
3335 update_meta " microxrcedds_client" " UCLIENT_PROFILE_CUSTOM_TRANSPORT=ON"
3436 update_meta " microxrcedds_client" " UCLIENT_PROFILE_STREAM_FRAMING=ON"
3537 update_meta " microxrcedds_client" " UCLIENT_PROFILE_SERIAL=OFF"
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f767zi_extensions
66function help {
77 echo " Configure script need an argument."
88 echo " --transport -t udp, serial or serial-usb"
9- echo " --dev -d agent string descriptor in a serial-like transport"
109 echo " --ip -i agent IP in a network-like transport"
1110 echo " --port -p agent port in a network-like transport"
1211}
@@ -30,6 +29,9 @@ if [ "$UROS_TRANSPORT" == "udp" ]; then
3029elif [ " $UROS_TRANSPORT " == " serial" ]; then
3130 echo " Using serial device USART."
3231
32+ echo " Please check firmware/freertos_apps/microros_nucleo_f767zi_extensions/Src/main.c"
33+ echo " for configuring serial device before build."
34+
3335 update_meta " microxrcedds_client" " UCLIENT_PROFILE_CUSTOM_TRANSPORT=ON"
3436 update_meta " microxrcedds_client" " UCLIENT_PROFILE_STREAM_FRAMING=ON"
3537 update_meta " microxrcedds_client" " UCLIENT_PROFILE_SERIAL=OFF"
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_olimex_e407_extensions
66function help {
77 echo " Configure script need an argument."
88 echo " --transport -t udp, serial or serial-usb"
9- echo " --dev -d agent string descriptor in a serial-like transport"
109 echo " --ip -i agent IP in a network-like transport"
1110 echo " --port -p agent port in a network-like transport"
1211}
@@ -29,6 +28,9 @@ if [ "$UROS_TRANSPORT" == "udp" ]; then
2928elif [ " $UROS_TRANSPORT " == " serial" ]; then
3029 echo " Using serial device USART."
3130
31+ echo " Please check firmware/freertos_apps/microros_olimex_e407_extensions/Src/main.c"
32+ echo " for configuring serial device before build."
33+
3234 update_meta " microxrcedds_client" " UCLIENT_PROFILE_CUSTOM_TRANSPORT=ON"
3335 update_meta " microxrcedds_client" " UCLIENT_PROFILE_STREAM_FRAMING=ON"
3436 update_meta " microxrcedds_client" " UCLIENT_PROFILE_SERIAL=OFF"
Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ EXTENSIONS_DIR=$FW_TARGETDIR/zephyr_apps
66function help {
77 echo " Configure script need an argument."
88 echo " --transport -t udp, serial or serial-usb"
9- echo " --dev -d agent string descriptor in a serial-like transport"
10- echo " --ip -i agent IP in a network-like transport"
11- echo " --port -p agent port in a network-like transport"
12-
139}
1410
1511echo $CONFIG_NAME > $FW_TARGETDIR /APP
@@ -23,3 +19,18 @@ update_meta "microxrcedds_client" "UCLIENT_PROFILE_TCP=OFF"
2319update_meta " rmw_microxrcedds" " RMW_UXRCE_TRANSPORT=custom"
2420
2521echo $UROS_TRANSPORT > $FW_TARGETDIR /TRANSPORT
22+
23+ if [ " $UROS_TRANSPORT " == " udp" ]; then
24+ echo " Configured UDP mode."
25+ echo " Please check firmware/zephyr_apps/microros_extensions/microros_transports.h"
26+ echo " for configuring IP and port before build."
27+ elif [ " $UROS_TRANSPORT " == " serial" ]; then
28+ echo " Using serial device."
29+ echo " Please check firmware/zephyr_apps/microros_extensions/microros_transports.h"
30+ echo " for configuring serial device before build."
31+ elif [ " $UROS_TRANSPORT " == " serial-usb" ]; then
32+ echo " Using USB serial device."
33+ echo " Configured $UROS_TRANSPORT mode with agent at USB serial"
34+ else
35+ help
36+ fi
You can’t perform that action at this time.
0 commit comments