Skip to content

Commit 68bcf9a

Browse files
committed
Update
1 parent 8ea001f commit 68bcf9a

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • _docs/tutorials/advanced/zephyr/zephyr_emulator

_docs/tutorials/advanced/zephyr/zephyr_emulator/index.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,11 @@ source install/local_setup.bash
292292
ros2 run micro_ros_setup flash_firmware.sh
293293
```
294294

295-
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
295+
And finally, let's check that everything is working in another command line. We are going to listen to ping topic to check whether the Ping Pong node is publishing its own pings
296296

297297
```bash
298+
source /opt/ros/$ROS_DISTRO/setup.bash
299+
298300
# Subscribe to micro-ROS ping topic
299301
ros2 topic echo /microROS/ping
300302
```
@@ -318,13 +320,17 @@ frame_id: '730417256_1085377743'
318320
On another command line, let's subscribe to the pong topic
319321

320322
```bash
323+
source /opt/ros/$ROS_DISTRO/setup.bash
324+
321325
# Subscribe to micro-ROS pong topic
322326
ros2 topic echo /microROS/pong
323327
```
324328

325-
At this point, we know that our app is publishing pings. Let's check if it also answers to someone else pings:
329+
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:
326330

327331
```bash
332+
source /opt/ros/$ROS_DISTRO/setup.bash
333+
328334
# Send a fake ping
329335
ros2 topic pub --once /microROS/ping std_msgs/msg/Header '{frame_id: "fake_ping"}'
330336
```

0 commit comments

Comments
 (0)