User Tools

Site Tools


getting_started:ros_run

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
getting_started:ros_run [2021/03/31 12:10] – [Network Setup] ursgrafgetting_started:ros_run [2023/02/09 10:25] (current) – [Running your Application on the Host] ursgraf
Line 5: Line 5:
 ===== Running your Application on the Host ===== ===== Running your Application on the Host =====
  
-If your EEROS-ROS node is on the host where you also run your ROS master is straightforward. You can use all your ROS tools as you do without using EEROS.+If your EEROS-ROS node is on the host where you also run your ROS master the procedure is straightforward. You can use all your ROS tools as you do without using EEROS. Beware that you built EEROS with ROS support. When running EEROS examples or any other EEROS application you have to make sure that the ROS libraries can be found when dynamic linking comes up. Run your ''setup.bash'' script as given in [[getting_started:ros|]]. \\ 
 +When running programs with root priviledges you have to pass the library path with 
 +<code> 
 +$ sudo LD_LIBRARY_PATH=${LD_LIBRARY_PATH} ./yourExample 
 +</code>
  
 ===== Running your Application on a Target ===== ===== Running your Application on a Target =====
Line 15: Line 19:
 Find out the ip number of your target as well as the ip number with which your target reaches your host. If in doubt, try to ping your host computer from the target and vice versa.  Find out the ip number of your target as well as the ip number with which your target reaches your host. If in doubt, try to ping your host computer from the target and vice versa. 
  
-In every shell on your host where you want to run ''roscore'' or any other ros command you have to set the environment variables ''ROS_MASTER_URI'' and ''ROS_IP with e.g. +In every shell on your host where you want to run ''roscore'' or any other ros command you have to set the environment variables ''ROS_MASTER_URI'' and ''ROS_IP'' with e.g. 
 <code> <code>
 export ROS_MASTER_URI=http://192.168.7.3:11311  // ip number of host export ROS_MASTER_URI=http://192.168.7.3:11311  // ip number of host
Line 21: Line 25:
 </code> </code>
    
-In every shell on your target where you want to run your application you have to set the environment variables ''ROS_MASTER_URI'' and ''ROS_IP with e.g. +In every shell on your target where you want to run your application you have to set the environment variables ''ROS_MASTER_URI'' and ''ROS_IP'' with e.g. 
 <code> <code>
 export ROS_MASTER_URI=http://192.168.7.3:11311  // ip number of host export ROS_MASTER_URI=http://192.168.7.3:11311  // ip number of host
getting_started/ros_run.1617185407.txt.gz · Last modified: 2021/03/31 12:10 by ursgraf