Skip to content

Commit 449b7ad

Browse files
authored
Update configure step (#274)
1 parent 29d7655 commit 449b7ad

8 files changed

Lines changed: 35 additions & 17 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ By running this command without any argument the available demo applications and
118118

119119
Common 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

126126
Please 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.

config/freertos/esp32/configure.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,9 @@ function help {
1414
echo $CONFIG_NAME > $FW_TARGETDIR/APP
1515

1616
if [ "$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"

config/freertos/nucleo_f446re/configure.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f446re_extensions
55
function 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

1110
echo $CONFIG_NAME > $FW_TARGETDIR/APP
1211
# TODO add USB-OTG support
1312
if [ "$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"

config/freertos/nucleo_f446ze/configure.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f446ze_extensions
66
function 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

1211
echo $CONFIG_NAME > $FW_TARGETDIR/APP
1312
# TODO add USB-OTG support
1413
if [ "$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"

config/freertos/nucleo_f746zg/configure.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f746zg_extensions
66
function 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
3029
elif [ "$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"

config/freertos/nucleo_f767zi/configure.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_nucleo_f767zi_extensions
66
function 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
3029
elif [ "$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"

config/freertos/olimex-stm32-e407/configure.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ EXTENSIONS_DIR=$FW_TARGETDIR/freertos_apps/microros_olimex_e407_extensions
66
function 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
2928
elif [ "$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"

config/zephyr/generic/configure.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ EXTENSIONS_DIR=$FW_TARGETDIR/zephyr_apps
66
function 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

1511
echo $CONFIG_NAME > $FW_TARGETDIR/APP
@@ -23,3 +19,18 @@ update_meta "microxrcedds_client" "UCLIENT_PROFILE_TCP=OFF"
2319
update_meta "rmw_microxrcedds" "RMW_UXRCE_TRANSPORT=custom"
2420

2521
echo $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

0 commit comments

Comments
 (0)