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
@@ -28,7 +28,7 @@ For more detailed build instructions look [here](build_ros2_packages.md)
28
28
29
29
For each of the following tests, run the each command in a separate terminal window (remember that ROS2 SDK has to be sourced in every terminal!)
30
30
31
-
#### Publisher/Subscriber test
31
+
#### Publisher/Subscriber
32
32
```
33
33
$ ros2 run simple_publisher publisher_main
34
34
```
@@ -38,7 +38,7 @@ For each of the following tests, run the each command in a separate terminal win
38
38
One process publishes messages and the other subscribes to that topic.
39
39
40
40
41
-
#### Service/Client test
41
+
#### Service/Client
42
42
```
43
43
$ ros2 run simple_service service_main
44
44
```
@@ -47,9 +47,18 @@ One process publishes messages and the other subscribes to that topic.
47
47
```
48
48
49
49
One process provides a service and the other requests it.
50
-
The executable `asynchronous_main` contains an alternative implementation for the ROS2 client.
51
50
52
-
#### Time Synchronization message filters test
51
+
Running `simple_client/timer_main` contains an alternative implementation for the ROS2 client node.
52
+
53
+
#### Logger utils
54
+
```
55
+
$ ros2 run simple_logger logger_main
56
+
```
57
+
58
+
Log some data. Change the logger verbosity level at run time. Log some other data.
59
+
60
+
61
+
#### Time Synchronization message filters
53
62
```
54
63
$ ros2 run simple_time_sync publisher
55
64
```
@@ -59,12 +68,6 @@ The executable `asynchronous_main` contains an alternative implementation for th
59
68
One process publishes messages on multiple topics. Sometimes it publishes only on one topic, sometimes on all with the same timestamp and sometimes on all but with slightly different timestamps.
60
69
The other process create an approximate and an exact time subscribers.
61
70
62
-
#### Logger utils
63
-
```
64
-
$ ros2 run simple_logger logger_main
65
-
```
66
-
67
-
Log some data. Change the logger verbosity level at run time. Log some other data.
68
71
69
72
#### Parameter servers
70
73
```
@@ -77,25 +80,31 @@ Log some data. Change the logger verbosity level at run time. Log some other dat
77
80
One process sets its own parameters. The other reads them.
78
81
79
82
80
-
#### Multiple nodes pub/sub
81
-
```
82
-
$ ros2 run simple_multithread simple_pub_sub_std 10 2 5
83
-
```
84
-
Several nodes are created within the same process.
85
-
This command will create 10 nodes with subscribers, 2 nodes with publishers and will let them spin for 5 seconds before printing some statistics.
86
-
87
83
## ROS2 CLI (command line interface)
88
84
89
85
Note that these commands comes from a Python package. So if you have disabled them (i.e. when cross-compiling) they will not be available.
90
86
91
-
To see a list of available commands
87
+
- See a list of available commands
88
+
89
+
$ ros2 --help
90
+
91
+
- Print a list of <package_name> <executable_name>
92
+
93
+
$ ros2 pkg executabels
94
+
95
+
- Run a ROS2 node
96
+
97
+
$ ros2 run <package_name> <executable_name>
98
+
99
+
- List visible topic names (a topic is visible if at least 1 node is publishing or subscribing to it)
100
+
101
+
$ ros2 topic list
92
102
93
-
$ ros2 --help
103
+
- Echo what's published on a topic
94
104
95
-
Print a list of <package_name> <executable_name>
105
+
$ ros2 topic echo <topic_name>
96
106
97
-
$ ros2 pkg executabels
107
+
- Publish a message to a topic (message content written as valid YAML)
Copy file name to clipboardexpand all lines: build_ros2_packages.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ To use the executables and libraries with the command line interface you need to
53
53
## Tips
54
54
55
55
- If you do not want to build a specific package place an empty file named `COLCON_IGNORE` in the directory and it will not be indexed.
56
-
56
+
57
57
$ touch src/ros2/rviz/COLCON_IGNORE
58
58
59
59
- Colcon by default builds packages in parallel. This could cause unpredictable errors. To build sequentially add `--executor sequential` as parameter to `colcon build`.
0 commit comments