getting_started:tutorials:systemros1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
getting_started:tutorials:systemros1 [2023/02/09 10:35] – [Using ROS2] ursgraf | getting_started:tutorials:systemros1 [2023/02/09 11:00] – [Subscribing] ursgraf | ||
---|---|---|---|
Line 33: | Line 33: | ||
$ rostopic list | $ rostopic list | ||
</ | </ | ||
- | will list the two topics which are published be our node, /// | + | will list the three topics which are published be our node, /// |
Open another shell to show the messages sent by EEROS, e.g. | Open another shell to show the messages sent by EEROS, e.g. | ||
< | < | ||
Line 83: | Line 83: | ||
With | With | ||
< | < | ||
- | $ rosnode | + | $ ros2 node list |
</ | </ | ||
you will see the new node. | you will see the new node. | ||
< | < | ||
- | $ rostopic | + | $ ros2 topic list |
</ | </ | ||
- | will list the two topics which are published be our node, /// | + | will list the three topics which are published be our node, /// |
Open another shell to show the messages sent by EEROS, e.g. | Open another shell to show the messages sent by EEROS, e.g. | ||
< | < | ||
- | $ rostopic | + | $ ros2 topic echo / |
</ | </ | ||
With | With | ||
< | < | ||
- | $ rostopic | + | $ ros2 topic hz /test/val |
- | </ | + | |
- | you can easily check how often data is sent from out ROS node. Try to plot the data with | + | |
- | < | + | |
- | $ rqt_plot /test/val / | + | |
</ | </ | ||
+ | you can easily check how often data is sent from out ROS node. | ||
==== Subscribing ==== | ==== Subscribing ==== | ||
Line 109: | Line 106: | ||
and logs its transported message values into the console. Alternatively you could publish a single message from the command line with | and logs its transported message values into the console. Alternatively you could publish a single message from the command line with | ||
< | < | ||
- | $ rostopic | + | $ ros2 topic pub / |
- | $ rostopic | + | $ ros2 topic pub / |
</ | </ | ||
getting_started/tutorials/systemros1.txt · Last modified: 2023/02/27 14:00 by ursgraf