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/advanced/linux/linux_getting_started/index.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ touch app.c CMakeLists.cmake
57
57
popd
58
58
```
59
59
60
-
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:
60
+
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:
ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888
276
276
```
277
277
278
-
Then run the app:
278
+
Then run the app in another command line (remember sourcing ROS 2 and micro-ROS installation):
279
279
280
280
```bash
281
+
source /opt/ros/$ROS_DISTRO/setup.bash
282
+
source install/local_setup.bash
283
+
281
284
# Run a micro-ROS agent
282
285
ros2 run micro_ros_demos_rcl my_brand_new_app
283
286
```
284
287
285
-
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
288
+
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:
0 commit comments