getting_started:tutorials:hal4
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:hal4 [2019/01/17 12:27] – graf | getting_started:tutorials:hal4 [2019/01/17 13:35] – [Subscribing] graf | ||
---|---|---|---|
Line 4: | Line 4: | ||
==== Publishing ==== | ==== Publishing ==== | ||
This example runs your EEROS application as a ROS node under the name /// | This example runs your EEROS application as a ROS node under the name /// | ||
- | | + | * / |
- | | + | * /test/state (of type boolean) |
- | * /test/safetyLevel | + | |
- | With | + | Use the same tools as in [[getting_started: |
- | < | + | |
- | $ rosnode list | + | |
- | </ | + | |
- | you will see the new node. With | + | |
- | < | + | |
- | $ rostopic list | + | |
- | </ | + | |
- | will list the two topics | + | |
- | Open another shell to show the messages | + | |
- | < | + | |
- | $ rostopic echo / | + | |
- | </ | + | |
- | With | + | |
- | < | + | |
- | $ rostopic 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 / | + | |
- | </ | + | |
- | This example runs your EEROS application as a ROS node under the name '' | + | ==== Subscribing ==== |
- | * /test1/vector | + | Open another shell in the build directory of your EEROS library and run '' |
- | * /test1/val (of type double) | + | * /rosNodeTalker/val |
- | + | * /rosNodeTalker/state | |
- | Use the ROS tool '' | + | and logs its transported message values into the console. Use |
- | Open another shell to show the messages sent by EEROS, e.g. | + | |
< | < | ||
- | $ rostopic echo / | + | $ rqt_graph |
</ | </ | ||
+ | to show a graph with all involved nodes together with their topics. | ||
- | Open another | + | ==== Another Example ==== |
- | * / | + | There is another |
- | * / | + | |
- | and logs its transported message values into the console. | + |
getting_started/tutorials/hal4.txt · Last modified: 2023/02/27 14:02 by ursgraf