getting_started:tutorials:hal4
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| getting_started:tutorials:hal4 [2021/03/01 19:17] – [Publishing] ursgraf | getting_started:tutorials:hal4 [2023/02/27 14:02] (current) – [Subscribing] ursgraf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Using ROS through the HAL ====== | ====== Using ROS through the HAL ====== | ||
| - | In the EEROS library you will find a directory with examples. | + | |
| + | EEROS can communicate with ROS through the HAL, see [[getting_started: | ||
| + | |||
| + | ===== Using ROS1 ===== | ||
| + | |||
| + | In the EEROS library you will find a directory with examples. | ||
| + | |||
| + | This examples with ROS will only be present in your build directory if ROS was installed before building EEROS with '' | ||
| + | Open a shell in the build directory of your EEROS library and run | ||
| + | < | ||
| + | $ sudo -E ./examples/ros2/rosTest2 -c RosTest2Config.json | ||
| + | </ | ||
| ==== 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 /// | 
| * / | * / | ||
| * / | * / | ||
| - | Use the same tools as in [[getting_started: | + | Use the same tools as in [[getting_started: | 
| ==== Subscribing ==== | ==== Subscribing ==== | ||
| Line 20: | Line 31: | ||
| ==== Another Example ==== | ==== Another Example ==== | ||
| - | There is another example, RosExample with HalConfigRos.json. It demonstrates the use of more message types. | + | There is another example, RosExample with HalConfigRos.json. It demonstrates the use of more message types. | 
| + | |||
| + | ===== Using ROS2 ===== | ||
| + | |||
| + | In the EEROS library you will find a directory with examples. For this example | ||
| + | |||
| + | Open a shell in the build directory of your EEROS library. This examples with ROS will only be present in your build directory if ROS2 was installed before building EEROS with '' | ||
| + | |||
| + | If you work on a target make sure to setup the environment as given in [[getting_started: | ||
| + | |||
| + | Open a shell in the build directory | ||
| + | < | ||
| + | $ sudo -E ./ | ||
| + | </ | ||
| + | |||
| + | ==== Publishing ==== | ||
| + | This example runs your EEROS application as a ROS node under the name /// | ||
| + | * / | ||
| + | * / | ||
| + | |||
| + | Use the same tools as in [[getting_started: | ||
| + | |||
| + | ==== Subscribing ==== | ||
| + | Open another shell in the build directory of your EEROS library and run '' | ||
| + | * / | ||
| + | * / | ||
| + | and logs its transported message values into the console. Use | ||
| + | < | ||
| + | $ rqt | ||
| + | </ | ||
| + | to show a graph with all involved nodes together with their topics or to plot messages. | ||
| + | |||
getting_started/tutorials/hal4.1614622641.txt.gz · Last modified: 2021/03/01 19:17 by ursgraf
                
                