Skip to content

Commit eebb3c9

Browse files
pablogs9FranFinJulián Bermúdez Ortega
authored andcommitted
Ref #7864. Tutorial Zephyr + Olimex (#124)
* Tutorial Tutorial * Fix link * Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md Co-Authored-By: FranFin <58737168+FranFin@users.noreply.github.com> * Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md Co-Authored-By: FranFin <58737168+FranFin@users.noreply.github.com> * Fix pong publisher * Fix * Update agent install * Update folder tree * Fix * Update folder tree * Update * Update * Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md Co-Authored-By: Julián Bermúdez Ortega <julianbermudez@eprosima.com> * Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md Co-Authored-By: Julián Bermúdez Ortega <julianbermudez@eprosima.com> * Revert "Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md" This reverts commit eb8f965. * Auto stash before checking out "HEAD" * Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md Co-Authored-By: Julián Bermúdez Ortega <julianbermudez@eprosima.com> * Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md Co-Authored-By: Julián Bermúdez Ortega <julianbermudez@eprosima.com> * Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md Co-Authored-By: Julián Bermúdez Ortega <julianbermudez@eprosima.com> * Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md Co-Authored-By: Julián Bermúdez Ortega <julianbermudez@eprosima.com> * Update _docs/tutorials/advanced/zephyr/zephyr_getting_started/index.md Co-Authored-By: Julián Bermúdez Ortega <julianbermudez@eprosima.com> Co-authored-by: FranFin <58737168+FranFin@users.noreply.github.com> Co-authored-by: Julián Bermúdez Ortega <julianbermudez@eprosima.com>
1 parent d3aeb23 commit eebb3c9

7 files changed

Lines changed: 378 additions & 4 deletions

File tree

_docs/tutorials/advanced/freertos/freertos_getting_started/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ touch app.c app-colcon.meta
7575
popd
7676
```
7777

78-
For this example we are going to create a ping pong app where a node sends a ping package with a unique identifier using a publisher and the same package is received by a pong subscriber. The node will also answer to:
78+
For this example we are going to create a ping pong app where a node sends a ping package with a unique identifier using a publisher and the same package is received by a pong subscriber. The node will also answer to pings received from other nodes with a pong message:
7979

8080
![pingpong](http://www.plantuml.com/plantuml/png/ZOwnIWGn48RxFCNFzSkoUG2vqce5jHEHi1dtWZkPa6GByNntavZY10yknMJu-ORlFwPiOjvvK-d3-M2YOR1uMKvHc93ZJafvoMML07d7h1NAE-DPWblg_na8vnwEx9OeZmzFOt1-BK7AzetJciPxCfRYVw1S0SbRLBEg1IpXPIvpUWLCmZpXIm6BS3addt7uQpu0ZQlxT1MK2r0g-7sfqbsbRrVfMrMwgbev3CDTlsqJGtJhATUmSMrMg5TKwaZUxfcttuMt7m00)
8181

@@ -317,9 +317,11 @@ ros2 run micro_ros_agent micro_ros_agent serial --dev [device]
317317

318318
***TIP:** you can use this command to find your serial device name: `ls /dev/serial/by-id/*`*
319319

320-
And finally, let's check that everything is working. We are going to listen to ping topic to check whether the Ping Pong node is publishing its own pings
320+
And finally, let's check that everything is working in a new command line. We are going to listen to ping topic to check whether the Ping Pong node is publishing its own pings
321321

322322
```bash
323+
source /opt/ros/$ROS_DISTRO/setup.bash
324+
323325
# Subscribe to micro-ROS ping topic
324326
ros2 topic echo /microROS/ping
325327
```
@@ -343,13 +345,17 @@ frame_id: '730417256_1085377743'
343345
On another command line, let's subscribe to the pong topic
344346

345347
```bash
348+
source /opt/ros/$ROS_DISTRO/setup.bash
349+
346350
# Subscribe to micro-ROS pong topic
347351
ros2 topic echo /microROS/pong
348352
```
349353

350-
At this point, we know that our app is publishing pings. Let's check if it also answers to someone else pings:
354+
At this point, we know that our app is publishing pings. Let's check if it also answers to someone else pings in a new command line:
351355

352356
```bash
357+
source /opt/ros/$ROS_DISTRO/setup.bash
358+
353359
# Send a fake ping
354360
ros2 topic pub --once /microROS/ping std_msgs/msg/Header '{frame_id: "fake_ping"}'
355361
```
600 KB
Loading
3.66 MB
Loading
106 KB
Loading
75.3 KB
Loading
671 KB
Loading

0 commit comments

Comments
 (0)