Skip to content

Commit 29e9186

Browse files
committed
Comments addressed.
1 parent 3e64c0a commit 29e9186

10 files changed

Lines changed: 40 additions & 64 deletions

File tree

_docs/tutorials/advanced/zephyr_emulator/index.md

Lines changed: 14 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -56,52 +56,32 @@ ros2 run micro_ros_setup build_firmware.sh
5656
```
5757

5858
Now you have a Zephyr + micro-ROS app ready to run on your own computer.
59-
Notice that in this case, the steps of flashing the firmware and running the micro-ROS app go together
59+
Notice that in this case, the steps of flashing the firmware and running the micro-ROS app go together.
6060

61-
## Flashing the firmware
62-
63-
Now you can run the flash step by means of the flashing command:
64-
65-
```bash
66-
# Flash/run step
67-
ros2 run micro_ros_setup flash_firmware.sh
68-
```
69-
70-
Notice that this command also has the effect of running the micro-ROS node.
61+
{% include first_application_common/agent_creation.md %}
7162

72-
## Creating the micro-ROS agent
63+
## Running the micro-ROS app
7364

74-
The micro-ROS app is now ready to be connected to a micro-ROS agent to start talking with the rest of the ROS 2
75-
world.
65+
At this point, you have both the client and the agent correctly installed in your host machine.
7666

77-
To do that, let's open a new command line and create a micro-ROS agent
78-
(remember sourcing the ROS 2 and micro-ROS installations):
67+
To give micro-ROS access to the ROS 2 dataspace, run the agent:
7968

8069
```bash
81-
# Download micro-ROS-Agent packages
82-
source /opt/ros/foxy/setup.bash
83-
source install/local_setup.bash
84-
85-
ros2 run micro_ros_setup create_agent_ws.sh
70+
# Run a micro-ROS agent
71+
ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888
8672
```
8773

88-
Now, let's build the agent packages and, when this is done, source the installation:
74+
## Flashing the firmware
75+
76+
Finally, in order to run the micro-ROS node inside of the Zephyr RTOS emulator,
77+
open a new command shell and execute the flash step by means of the flashing command:
8978

9079
```bash
91-
# Build step
92-
colcon build
80+
source /opt/ros/foxy/setup.bash
9381
source install/local_setup.bash
94-
```
95-
96-
## Running the micro-ROS app
9782

98-
At this point, you have both the client and the agent correctly installed in your host machine.
99-
100-
To start micro-ROS, you just need to run the agent:
101-
102-
```bash
103-
# Run a micro-ROS agent
104-
ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888
83+
# Flash/run step
84+
ros2 run micro_ros_setup flash_firmware.sh
10585
```
10686

10787
{% include first_application_common/test_app_host.md %}
@@ -124,7 +104,6 @@ As soon as all micro-ROS node are up and connected to the micro-ROS agent you wi
124104
```
125105
user@user:~$ ./firmware/build/zephyr/zephyr.exe
126106
*** Booting Zephyr OS build zephyr-v2.2.0-492-gc73cb85b4ae9 ***
127-
UDP mode => ip: 127.0.0.1 - port: 8888
128107
Ping send seq 1711620172_1742614911 <---- This micro-ROS node sends a ping with ping ID "1711620172" and node ID "1742614911"
129108
Pong for seq 1711620172_1742614911 (1) <---- The first mate pongs my ping
130109
Pong for seq 1711620172_1742614911 (2) <---- The second mate pongs my ping

_docs/tutorials/core/first_application_linux/index.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ros2 run micro_ros_setup create_firmware_ws.sh host
2020

2121
Once the command is executed, a folder named `firmware` must be present in your workspace.
2222

23-
This step is in charge, among other things, of creating a set of micro-ROS apps for Linux, that are located at
23+
This step is in charge, among other things, of downloading a set of micro-ROS apps for Linux, that are located at
2424
`src/uros/micro-ROS-demos/rcl`.
2525
Each app is represented by a folder containing the following files:
2626

@@ -67,7 +67,7 @@ source install/local_setup.bash
6767

6868
At this point, you have both the client and the agent correctly installed in your host machine.
6969

70-
To start micro-ROS, first run the agent:
70+
To give micro-ROS access to the ROS 2 dataspace, run the agent:
7171

7272
```bash
7373
# Run a micro-ROS agent
@@ -80,8 +80,8 @@ And then, in another command line, run the micro-ROS node (remember sourcing the
8080
source /opt/ros/foxy/setup.bash
8181
source install/local_setup.bash
8282

83-
# Run a micro-ROS agent
84-
ros2 run micro_ros_demos_rcl ping_pong
83+
# Run a micro-ROS node
84+
ros2 run micro_ros_demos_rclc ping_pong
8585
```
8686

8787
{% include first_application_common/test_app_host.md %}
@@ -99,14 +99,13 @@ cd microros_ws
9999
source /opt/ros/foxy/setup.bash
100100
source install/local_setup.bash
101101

102-
ros2 run micro_ros_demos_rcl ping_pong
102+
ros2 run micro_ros_demos_rclc ping_pong
103103
```
104104

105105
As soon as all micro-ROS nodes are up and connected to the micro-ROS agent you will see them interacting:
106106

107107
```
108-
user@user:~$ ros2 run micro_ros_demos_rcl ping_pong
109-
UDP mode => ip: 127.0.0.1 - port: 8888
108+
user@user:~$ ros2 run micro_ros_demos_rclc ping_pong
110109
Ping send seq 1711620172_1742614911 <---- This micro-ROS node sends a ping with ping ID "1711620172" and node ID "1742614911"
111110
Pong for seq 1711620172_1742614911 (1) <---- The first mate pongs my ping
112111
Pong for seq 1711620172_1742614911 (2) <---- The second mate pongs my ping

_docs/tutorials/core/first_application_rtos/freertos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ros2 run micro_ros_setup create_firmware_ws.sh freertos olimex-stm32-e407
2020

2121
Once the command is executed, a folder named `firmware` must be present in your workspace.
2222

23-
This step is in charge, among other things, of creating a set of micro-ROS apps for the specific platform you are
23+
This step is in charge, among other things, of downloading a set of micro-ROS apps for the specific platform you are
2424
addressing.
2525
In the case of FreeRTOS, these are located at `firmware/freertos_apps/apps`.
2626
Each app is represented by a folder containing the following files:

_docs/tutorials/core/first_application_rtos/nuttx.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ros2 run micro_ros_setup create_firmware_ws.sh nuttx olimex-stm32-e407
2121

2222
Once the command is executed, a folder named `firmware` must be present in your workspace.
2323

24-
This step is in charge, among other things, of creating a set of micro-ROS apps for the specific platform you are
24+
This step is in charge, among other things, of downloading a set of micro-ROS apps for the specific platform you are
2525
addressing.
2626
In the case of NuttX, these are located [here](https://github.com/micro-ROS/apps/tree/foxy/examples).
2727
Each app is represented by a folder containing the following files:
@@ -77,7 +77,7 @@ To add the `uros_pingpong` application, follow the steps listed below:
7777
* A list of the available applications will appear. You need to find: `micro-ROS Ping-Pong` and press the space bar to add it.
7878
* Navigate to the bottom menu with the left and right arrows, and click on the `Exit` button.
7979
* 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 add it. After that, you'll be automatically redirected to the previous menu.
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.
8181
* Navigate to the bottom menu with the left and right arrows, and click on the `Save` button.
8282
* You will be asked if you want to save your new `.config` configuration, and you need to click `Ok`, and then `Exit`.
8383
* Finally, push three times the `Esc` key to close the menu.
@@ -123,7 +123,7 @@ Make sure to match Olimex Rx with Cable Tx and vice-versa. Remember GND!*
123123

124124
At this point, you have both the client and the agent correctly installed.
125125

126-
To start micro-ROS, you first need to run the agent:
126+
To give micro-ROS access to the ROS 2 dataspace, run the agent:
127127

128128
```bash
129129
# Run a micro-ROS agent
@@ -141,7 +141,8 @@ sudo minicom -D [device] -b 115200
141141

142142
***TIP:** you can use this command to find your serial device name: `ls /dev/serial/by-id/*`. Select the one that starts with `usb-NuttX`.*
143143

144-
From inside the Minicom application, press three times the `Enter` key. Once you enter the Minicom command line, type:
144+
From inside the Minicom application, press three times the `Enter` key until Nuttx Shell (NSH) appears.
145+
Once you enter the NSH command line, type:
145146

146147
```bash
147148
uros_pingpong

_includes/first_application_common/agent_creation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Now, let's build the agent packages and, when this is done, source the installat
1313

1414
```bash
1515
# Build step
16-
colcon build
16+
ros2 run micro_ros_setup build_agent.sh
1717
source install/local_setup.bash
1818
```

_includes/first_application_common/build_system.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
## Installing ROS 2 and the micro-ROS build system
22

3-
First of all, install **ROS 2 Foxy FitzRoy** on your Ubuntu 18.04 LTS computer.
3+
First of all, install **ROS 2 Foxy FitzRoy** on your Ubuntu 20.04 LTS computer.
44
To do so from binaries, via Debian packages, follow the instructions detailed
5-
[here](https://index.ros.org/doc/ros2/Installation/Dashing/Linux-Install-Debians/).
6-
Alternatively, you can use a docker container with a fresh ROS 2 foxy installation. The minimum docker that serves
7-
the purpose is the image run by the command:
5+
[here](https://index.ros.org/doc/ros2/Installation/Foxy/Linux-Install-Debians/).
6+
7+
***TIP:** Alternatively, you can use a docker container with a fresh ROS 2 Foxy installation. The one that serves
8+
the purpose is the container run by the command:*
89

910
```bash
10-
docker pull ros:foxy
11+
docker run -it --net=host ros:foxy
1112
```
1213

1314
Once you have a ROS 2 installation in the computer, follow these steps to install the micro-ROS build system:
@@ -30,9 +31,6 @@ colcon build
3031
source install/local_setup.bash
3132
```
3233

33-
***TIP:** if you are familiar with Docker containers, this image may be useful:
34-
[micro-ros:base](https://github.com/micro-ROS/docker/blob/dashing/base/Dockerfile)*
35-
3634
These instructions will setup a workspace with a ready-to-use micro-ROS build system.
3735
This build system is in charge of downloading the required cross-compilation tools and building the apps for the
3836
required platforms.
@@ -43,13 +41,13 @@ The build system's workflow is a four-step procedure:
4341
toolchains for the specific hardware platform. Among these repositories, it will also download a collection of ready
4442
to use micro-ROS apps.
4543
* **Configure step:** In this step, the user can select which app is going to be cross-compiled by the toolchain.
46-
Some other options, such as transport, agent address or port will be also selected in this step.
44+
Some other options, such as transport, agent's IP address/port (for UDP transport) or device ID (for serial connections) will be also selected in this step.
4745
* **Build step:** Here is where the cross-compilation takes place and the platform-specific binaries are generated.
4846
* **Flash step:** The binaries generated in the previous step are flashed onto the hardware platform memory,
4947
in order to allow the execution of the micro-ROS app.
5048
Further information about micro-ROS build system can be found
5149
[here](https://github.com/micro-ROS/micro-ros-build/tree/dashing/micro_ros_setup).
5250

53-
## Creating a new firmware space
51+
## Creating a new firmware workspace
5452

55-
Once the build system is installed, let's create a firmware workspace that targets all the required code and tools:
53+
Once the build system is installed, let's create a firmware workspace that targets all the required code and tools:
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Configuring the firmware
22

3-
The configuration step will set up the main micro-ROS options and select the required application.
3+
The configuration step will set up the main micro-ROS options and select the desired application.
44
It can be executed with the following command:
55

66
```bash
@@ -9,7 +9,7 @@ ros2 run micro_ros_setup configure_firmware.sh [APP] [OPTIONS]
99
```
1010

1111
The options available for this configuration step are:
12-
- `--transport` or `-t`: `udp`, `tcp`, `serial` or any hardware-specific transport label
12+
- `--transport` or `-t`: `udp`, `serial` or any hardware-specific transport label
1313
- `--dev` or `-d`: agent string descriptor in a serial-like transport
1414
- `--ip` or `-i`: agent IP in a network-like transport
1515
- `--port` or `-p`: agent port in a network-like transport

_includes/first_application_common/run_app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
At this point, you have both the client and the agent correctly installed.
44

5-
To start micro-ROS, you just need to run the agent:
5+
To give micro-ROS access to the ROS 2 dataspace, you just need to run the agent:
66

77
```bash
88
# Run a micro-ROS agent

_includes/first_application_common/test_app_rtos.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ with the [ping pong app from the Linux tutorial](../../first_application_linux).
9595
it is possible to see their output like this micro-ROS for Linux app:
9696

9797
```
98-
UDP mode => ip: 127.0.0.1 - port: 8888
9998
Ping send seq 1711620172_1742614911 <---- This micro-ROS node sends a ping with ping ID "1711620172" and node ID "1742614911"
10099
Pong for seq 1711620172_1742614911 (1) <---- The first mate pongs my ping
101100
Pong for seq 1711620172_1742614911 (2) <---- The second mate pongs my ping

_includes/first_application_common/zephyr_common.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Once the command is executed, a folder named `firmware` must be present in your workspace.
22

3-
This step is in charge, among other things, of creating a set of micro-ROS apps for the specific platform you are
3+
This step is in charge, among other things, of downloading a set of micro-ROS apps for the specific platform you are
44
addressing.
55
In the case of Zephyr, these are located at `firmware/zephyr_apps/apps`.
66
Each app is represented by a folder containing the following files:

0 commit comments

Comments
 (0)