You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _docs/tutorials/core/first_application_rtos/nuttx.md
+51-21Lines changed: 51 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,18 +31,33 @@ Each app is represented by a folder containing the following files:
31
31
*`Make.defs`: This file contains the NuttX build system definitions.
32
32
*`Makefile`: This file contains the NuttX specific app build script.
33
33
34
-
{% include first_application_common/config.md %}
34
+
## Configuring the firmware
35
35
36
-
In this tutorial, we will use a Serial transport (labeled as `serial`) and focus on the out-of-the-box `uros_pingpong`
36
+
The configuration step will set up the main micro-ROS options and select the desired application.
37
+
It can be executed with the following command:
38
+
39
+
```bash
40
+
# Configure step
41
+
ros2 run micro_ros_setup configure_firmware.sh [APP] [OPTIONS]
42
+
```
43
+
44
+
In this tutorial, we will use a Serial transport and focus on the out-of-the-box `uros_pingpong`
37
45
application located [here](https://github.com/micro-ROS/nuttx_apps/tree/foxy/examples/uros_pingpong).
38
46
To execute this application with the chosen transport, run the configuration command above by specifying the `[APP]` parameter as below:
39
47
40
48
```bash
41
49
# Configure step with ping_pong app and serial-usb transport
42
-
ros2 run micro_ros_setup configure_firmware.sh drive_base
50
+
ros2 run micro_ros_setup configure_firmware.sh pingpong
43
51
```
44
52
45
53
and with no `[OPTIONS]` parameter.
54
+
55
+
A pre-configured ethernet example is also available:
56
+
```bash
57
+
# Configure step with ping_pong app and serial-usb transport
58
+
ros2 run micro_ros_setup configure_firmware.sh pingpong-eth
59
+
```
60
+
46
61
To proceed with the configuration, clone the following NuttX tools repo:
47
62
48
63
```bash
@@ -64,29 +79,44 @@ sudo ldconfig
64
79
popd
65
80
```
66
81
67
-
We'll now open an interactive NuttX menu config, which allows to modify the configuration of the RTOS, including adding a new application.
82
+
Now we have two options to configure our micro-ROS transport:
68
83
69
-
```bash
70
-
cd firmware/NuttX
71
-
make menuconfig
72
-
```
84
+
- Interactive NuttX menu config
85
+
* Launch the configuration menu:
73
86
74
-
To add the `uros_pingpong` application, follow the steps listed below:
87
+
```bash
88
+
cd firmware/NuttX
89
+
make menuconfig
90
+
```
75
91
76
-
* On the menu, follow the path: `Application Configuration ---> Examples`
77
-
* A list of the available applications will appear. You need to find: `micro-ROS Ping-Pong` and press the space bar to add it.
78
-
* Navigate to the bottom menu with the left and right arrows, and click on the `Exit` button.
79
-
* When you're back to the `Application Configuration` menu, go to `micro-ROS ---> Transport (UDP transport)`.
80
-
* A list of the available transports will appear. You need to go to `Serial transport` and press the space bar to set the Serial port as micro-ROS transport. After that, you'll be automatically redirected to the previous menu.
81
-
* Navigate to the bottom menu with the left and right arrows, and click on the `Save` button.
82
-
* You will be asked if you want to save your new `.config` configuration, and you need to click `Ok`, and then `Exit`.
83
-
* Finally, push three times the `Esc` key to close the menu.
92
+
* You can check that the application has been selected under `Application Configuration ---> Examples ---> micro-ROS Ping Pong`.
93
+
* The transport is also pre-configured under the `Application Configuration ---> micro-ROS ---> Transport` option.
94
+
* To configure the transport, use the `IP address of the agent` and `Port number of the agent` options for UDP and `Serial port to use`for the serial example.
95
+
* To save the changes, navigate to the bottom menu with the left and right arrows, and click on the `Save` button.
96
+
* You will be asked if you want to save your new `.config` configuration, and you need to click `Ok`, and then`Exit`.
97
+
* Push three times the `Esc` key to close the menu and go back to `microros_ws` with:
84
98
85
-
When the configuration process is over, go back to the `microros_ws`:
0 commit comments