User Tools

Site Tools


getting_started:tutorials:systemros1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
getting_started:tutorials:systemros1 [2021/03/31 11:31] – [Control System Talking to ROS] ursgrafgetting_started:tutorials:systemros1 [2021/03/31 12:01] – [Control System Talking to ROS] ursgraf
Line 3: Line 3:
 In the EEROS library you will find a directory with examples. For this example see [[https://github.com/eeros-project/eeros-framework/blob/master/examples/ros/RosTest1.cpp|RosTest1.cpp]].  In the EEROS library you will find a directory with examples. For this example see [[https://github.com/eeros-project/eeros-framework/blob/master/examples/ros/RosTest1.cpp|RosTest1.cpp]]. 
  
-Open a shell in the build directory of your EEROS library. This examples with ROS will only be present in your build directory if ROS was installed before building EEROS with ''-DUSE_ROS=TRUE'' set, see [[getting_started:ros_prep|Preparations and Building]]. Open a shell and run +Open a shell in the build directory of your EEROS library. This examples with ROS will only be present in your build directory if ROS was installed before building EEROS with ''-DUSE_ROS=TRUE'' set, see [[getting_started:ros_prep|Preparations and Building]].  
 + 
 +If you work on a target make sure to setup the environment as given in [[getting_started:ros_run|]]. 
 + 
 +Open a shell and run 
 <code> <code>
 $ roscore $ roscore
Line 11: Line 15:
 $ sudo -E ./examples/ros/rosTest1 $ sudo -E ./examples/ros/rosTest1
 </code> </code>
-IMPORTANT You have to run a program using real time threads with root privileges. Also make sure to have run the ''setup.bash'' script of ROS in your shell as described in [[getting_started:ros_run|]].+IMPORTANT You have to run a program using real time threads with root privileges. 
 ==== Publishing ==== ==== Publishing ====
 This example runs your EEROS application as a ROS node under the name ///eerosNode//. It publishes three topics This example runs your EEROS application as a ROS node under the name ///eerosNode//. It publishes three topics
getting_started/tutorials/systemros1.txt · Last modified: 2023/02/27 14:00 by ursgraf