User Tools

Site Tools


getting_started:deploy:deploy_bbb

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:deploy:deploy_bbb [2021/03/29 15:40] – [Running] ursgrafgetting_started:deploy:deploy_bbb [2023/04/13 10:37] (current) – [Deploying] ursgraf
Line 3: Line 3:
  
 ===== Preparations ===== ===== Preparations =====
 +
 +Fetch the [[https://github.com/eeros-project/eeros-build-scripts.git|EEROS scripts]] in your project root directory on your host and checkout the branch for the Beaglebone Blue board <code>
 +$ git clone https://github.com/eeros-project/eeros-build-scripts.git
 +$ cd eeros-build-scripts
 +$ git checkout sdk_bbb
 +</code>
  
 The file ''config.sh.in'' contains entries for the destination of deploying. The file ''config.sh.in'' contains entries for the destination of deploying.
Line 10: Line 16:
 target_application_folder=/home/ost/ target_application_folder=/home/ost/
 </code> </code>
-Now, make sure that the directory /opt/eeros/ exists on the target. If not, ssh into the board with <code> + 
-$ ssh ost@192.168.7.2 +
-</code> +
-For credentials see [[https://wiki.bu.ost.ch/infoportal/software/linux/yocto/bblue#Accessing_the_beaglebone_blue|Beaglebone Blue]]. +
  
 ===== Deploying ===== ===== Deploying =====
Line 19: Line 23:
 Next, edit ''deploy.txt'' on the host in your project directory and enter the application program you want to transfer together with the necessary hardware configuration file, e.g. Next, edit ''deploy.txt'' on the host in your project directory and enter the application program you want to transfer together with the necessary hardware configuration file, e.g.
 <code> <code>
-build-armhf/simple-motor-control/simpleMotorControl +../simple-motor-control/build-armhf/simpleMotorControl 
-build-armhf/simple-motor-control/HwConfigBBBlue.json+../simple-motor-control/build-armhf/HwConfigBBBlue.json
 </code> </code>
 If you wrote your own [[getting_started:write_app:use_on_bbb#Say Hello with EEROS|]] the file would look like If you wrote your own [[getting_started:write_app:use_on_bbb#Say Hello with EEROS|]] the file would look like
 <code> <code>
-build-armhf/hello/helloworld+../hello/build-armhf/helloworld
 </code> </code>
  
Line 36: Line 40:
 $ ssh ost@192.168.7.2 $ ssh ost@192.168.7.2
 </code> </code>
 +For credentials see [[https://wiki.bu.ost.ch/infoportal/software/linux/yocto/bblue#Accessing_the_beaglebone_blue|Beaglebone Blue]]. 
  
 Change into your target application folder and run the example <code> Change into your target application folder and run the example <code>
Line 43: Line 48:
 $ sudo ./simpleMotorControl -c HwConfigBBBlue.json $ sudo ./simpleMotorControl -c HwConfigBBBlue.json
 </code> </code>
 +
 +===== Running your Application which is a ROS Node =====
 +
 +Be sure to setup your network settings according to [[getting_started:ros_run#network_setup|Network Setup]]. Set the environment variable ''ROS_MASTER_URI'' in your shell with <code>
 +export ROS_MASTER_URI=http://192.168.7.3:11311
 +</code>
 +Add the following line to your ''/etc/hosts'' file (under Ubuntu) <code>
 +192.168.7.2  bblue
 +</code>
 +
 +Run your application with <code>
 +$ sudo -E ./application
 +</code>
 +
  
 ===== Running the Built-in Examples of EEROS ===== ===== Running the Built-in Examples of EEROS =====
getting_started/deploy/deploy_bbb.1617025221.txt.gz · Last modified: 2021/03/29 15:40 by ursgraf