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 [2023/02/09 10:33] ursgrafgetting_started:tutorials:systemros1 [2023/02/09 10:57] – [Publishing] ursgraf
Line 33: Line 33:
 $ rostopic list $ rostopic list
 </code> </code>
-will list the two topics which are published be our node, ///test/val//, ///test/vector//, and ///test/safetyLevel//.+will list the three topics which are published be our node, ///test/val//, ///test/vector//, and ///test/safetyLevel//.
 Open another shell to show the messages sent by EEROS, e.g. Open another shell to show the messages sent by EEROS, e.g.
 <code> <code>
Line 70: Line 70:
 If you work on a target make sure to setup the environment as given in [[getting_started:ros_run|]]. If you work on a target make sure to setup the environment as given in [[getting_started:ros_run|]].
  
-Open a shell and run +Open a shell in the build directory of your EEROS library and run 
 <code> <code>
-$ roscore +$ sudo -E ./examples/ros2/rosTest1
-</code> +
-Open another shell in the build directory of your EEROS library and run  +
-<code> +
-$ sudo -E ./examples/ros/rosTest1+
 </code> </code>
 IMPORTANT You have to run a program using real time threads with root privileges.  IMPORTANT You have to run a program using real time threads with root privileges. 
Line 87: Line 83:
 With  With 
 <code> <code>
-rosnode list+ros2 node list
 </code> </code>
 you will see the new node.  you will see the new node. 
 <code> <code>
-rostopic list+ros2 topic list
 </code> </code>
-will list the two topics which are published be our node, ///test/val//, ///test/vector//, and ///test/safetyLevel//.+will list the three topics which are published be our node, ///test/val//, ///test/vector//, and ///test/safetyLevel//.
 Open another shell to show the messages sent by EEROS, e.g. Open another shell to show the messages sent by EEROS, e.g.
 <code> <code>
-rostopic echo /test/vector+ros2 topic echo /test/vector
 </code> </code>
 With  With 
 <code> <code>
-rostopic hz /test/val +ros2 topic hz /test/val
-</code> +
-you can easily check how often data is sent from out ROS node. Try to plot the data with +
-<code> +
-$ rqt_plot /test/val /test1/vector/data[0] /test/vector/data[1] /test/safetyLevel+
 </code> </code>
 +you can easily check how often data is sent from out ROS node. 
  
 ==== Subscribing ==== ==== Subscribing ====
getting_started/tutorials/systemros1.txt · Last modified: 2023/02/27 14:00 by ursgraf