User Tools

Site Tools


getting_started:compile_eeros_host

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:compile_eeros_host [2021/03/24 18:17] ursgrafgetting_started:compile_eeros_host [2023/04/13 08:51] (current) ursgraf
Line 2: Line 2:
  
 Back to [[getting_started:install:use_on_host|]]. Back to [[getting_started:install:use_on_host|]].
 +
 +Fetch the [[https://github.com/eeros-project/eeros-build-scripts.git|EEROS scripts]] on your host and checkout the branch for the host <code>
 +$ git clone https://github.com/eeros-project/eeros-build-scripts.git eeros-project
 +$ cd eeros-project
 +$ git checkout host
 +</code>
  
 Edit the ''config.sh.in'' file as follows Edit the ''config.sh.in'' file as follows
Line 8: Line 14:
 use_comedi=false use_comedi=false
 use_ros=false use_ros=false
-use_ros_setup_script=false+use_ros2=false
 </code> </code>
  
-This will build EEROS without the ROS examples. If you have ROS installed and want to build the ROS examples, change the ''config.sh.in'' to+This will build EEROS without the ROS examples. If you have ROS2 installed and want to build the ROS examples, change the ''config.sh.in'' to
 <code> <code>
 use_simulator=true use_simulator=true
 use_comedi=false use_comedi=false
-use_ros=true +use_ros=false 
-use_ros_setup_script=true+use_ros2=true
  
 ros_setup_script=/opt/ros/kinetic/setup.bash ros_setup_script=/opt/ros/kinetic/setup.bash
Line 22: Line 28:
 The last line must point to your ROS installation path. In general this will be ''/opt/ros/$ros_version_name/setup.bash''. The last line must point to your ROS installation path. In general this will be ''/opt/ros/$ros_version_name/setup.bash''.
  
-Now you can run the ''clone'' script  +If you want to use ROS1, change the ''config.sh.in'' to
-<code> +
-$ ./clone.sh +
-</code> +
- +
-Edit the ''config.sh.in'' file as follows+
 <code> <code>
 use_simulator=true use_simulator=true
 use_comedi=false use_comedi=false
-use_ros=false +use_ros=true 
-use_ros_setup_script=false+use_ros2=false 
 + 
 +ros_setup_script=/opt/ros/noetic/setup.bash
 </code> </code>
 +Further, when using ROS1, search for the line <code>ros_eeros_git_version=v2.0.0</code>
 +and change it into <code>ros_eeros_git_version=v1.0.1</code> 
  
-This will build EEROS without the ROS examples. If you have ROS installed and want to build the ROS examples, change the ''config.sh.in'' to+[[http://www.comedi.org/|comedi]] stands for linux control and measurement device interface. It is a collection of drivers for a variety of common data acquisition plug-in boards on the host. 
 +If you want to use EEROS with [[http://www.comedi.org/|]] you have to install comedi firstsee [[http://www.comedi.org/]]. Then change the ''config.sh.in'' to
 <code> <code>
 use_simulator=true use_simulator=true
-use_comedi=false +use_comedi=true 
-use_ros=true +use_ros=false 
-use_ros_setup_script=true +use_ros2=false
- +
-ros_setup_script=/opt/ros/kinetic/setup.bash+
 </code> </code>
-The last line must point to your ROS installation path. In general this will be ''/opt/ros/$ros_version_name/setup.bash''. 
  
 Now you can run the ''clone'' script  Now you can run the ''clone'' script 
Line 50: Line 53:
 $ ./clone.sh $ ./clone.sh
 </code> </code>
-After this you can continue with [[getting_started:compile_eeros_host|]].+
  
 After having downloaded the code you can now compile EEROS together with necessary libraries. The build and install directories are set in ''config.sh.in'' as follows After having downloaded the code you can now compile EEROS together with necessary libraries. The build and install directories are set in ''config.sh.in'' as follows
getting_started/compile_eeros_host.1616606229.txt.gz · Last modified: 2021/03/24 18:17 by ursgraf