SRRC Wiki

Service Robotics Research Center
at Ulm University of Applied Sciences

User Tools

Site Tools


tutorials:pi:system

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
tutorials:pi:system [2019/11/28 14:02]
Dennis Stampfer
tutorials:pi:system [2019/11/28 14:33] (current)
Dennis Stampfer
Line 1: Line 1:
-====== Composing a System for the Raspberry Pi (coming soon) ======+====== Composing a System for the Raspberry Pi ======
  
-This tutorial describes how to compose and deploy a System ​with one component on RaspberryPi and other component on your PC.+This tutorial describes how to compose and deploy a system ​with one component on RaspberryPi and other component on your PC.
  
  
Line 15: Line 15:
 ===== Introduction ===== ===== Introduction =====
  
-This tutorial describes how to compose a System ​and run Components ​on the Raspberry Pi and your PC. The first part of the tutorial shows how to setup Component ​communication when both Components ​are located on Raspberry Pi. The second part of the tutorial describes how to create a System ​on your PC using SmartSoft ​Toolchain and establish communication with a Component located on a Raspberry Pi.+This tutorial describes how to compose a system ​and run components ​on the Raspberry Pi and your PC. The first part of the tutorial shows how to setup component ​communication when both components ​are located on Raspberry Pi. The second part of the tutorial describes how to create a system ​on your PC using the SmartMDSD ​Toolchain and establish communication with a Component located on a Raspberry Pi.
  
 By the end of this Tutorial, you will have build deployed: ​ By the end of this Tutorial, you will have build deployed: ​
Line 22: Line 22:
   * A System, that has one component on a PC and the other component on a Raspberry Pi   * A System, that has one component on a PC and the other component on a Raspberry Pi
  
-Since the Raspberry Pi, does not have the SmartSoft Toolchain, you will have to build and deploy the System manually, this will be described in the First part of the tutorial. The second part of tutorial will walk you through ​System ​building and describe how to connect a Component ​built on the Raspberry Pi, through the NamingService to the System ​located on your PC.+Since the Raspberry Pi, does not have the SmartSoft Toolchain, you will have to build and deploy the System manually, this will be described in the First part of the tutorial. The second part of tutorial will walk you through ​system ​building and describe how to connect a component ​built on the Raspberry Pi, through the NamingService to the system ​located on your PC.
  
 The tutorial is structured as follows: ​ The tutorial is structured as follows: ​
Line 38: Line 38:
  
 Since Raspberry Pi does not have the User Interface of SmartSoft toolchain, in this part of tutorial you will see, how to manually setup and deploy a simple 2-component System, by making slight modifications in autogenerated *.ini files and deploying the system from terminal. Since Raspberry Pi does not have the User Interface of SmartSoft toolchain, in this part of tutorial you will see, how to manually setup and deploy a simple 2-component System, by making slight modifications in autogenerated *.ini files and deploying the system from terminal.
-==== Section 1.1. Modifying *.ini files ==== 
  
 +
 +==== Section 1.1. Modifying *.ini files ====
  
 1. Download ComponentTrafficLight and ComponentTrafficLightTest on a Raspberry Pi and copy them to your component repository. \\  1. Download ComponentTrafficLight and ComponentTrafficLightTest on a Raspberry Pi and copy them to your component repository. \\ 
 +
 2. Build both of your components by going into 2. Build both of your components by going into
 **ComponentTrafficLight/​smartsoft** and **ComponentTrafficLight/​smartsoft** and
Line 62: Line 64:
  
 3. Add these paths to yor libraries where "/​home/​smartsoft/​myRepos/"​ represents path to the folder that contains your Components, Systems and Domain Models 3. Add these paths to yor libraries where "/​home/​smartsoft/​myRepos/"​ represents path to the folder that contains your Components, Systems and Domain Models
 +
 <​code>​ <​code>​
  ​export SMART_PACKAGE_PATH=$SMART_PACKAGE_PATH:/​home/​smartsoft/​myRepos/​  ​export SMART_PACKAGE_PATH=$SMART_PACKAGE_PATH:/​home/​smartsoft/​myRepos/​
  echo '​export SMART_PACKAGE_PATH=$SMART_PACKAGE_PATH:/​home/​smartsoft/​myRepos/'​ >> ~/.profile  echo '​export SMART_PACKAGE_PATH=$SMART_PACKAGE_PATH:/​home/​smartsoft/​myRepos/'​ >> ~/.profile
 </​code>​ </​code>​
 +
 4. Go to **<​component folder>/​smartsoft/​src-gen** and open **ComponentTrafficLightTest.ini.template**. Change the Client port Parameters(aproximately lines 50-70) as shown below: 4. Go to **<​component folder>/​smartsoft/​src-gen** and open **ComponentTrafficLightTest.ini.template**. Change the Client port Parameters(aproximately lines 50-70) as shown below:
 +
 <code bash [enable_line_numbers="​true"​]>​ <code bash [enable_line_numbers="​true"​]>​
 ########################​ ########################​
Line 128: Line 133:
 For this part of the tutorial you need a **ComponentTrafficLight** (provides the service) on a Raspberry Pi and your **ComponentTrafficLightTest** (requests the service) on your PC. If you hadn`t made them already, the process of developing these components is described in [[tutorials:​pi:​components-gpio#​section_2_creating_components_for_a_system]]. For this part of the tutorial you need a **ComponentTrafficLight** (provides the service) on a Raspberry Pi and your **ComponentTrafficLightTest** (requests the service) on your PC. If you hadn`t made them already, the process of developing these components is described in [[tutorials:​pi:​components-gpio#​section_2_creating_components_for_a_system]].
  
-The goal is to develop and deploy a System ​that controls LEDs on a Raspberry Pi, from a PC. This section has detailed description of System Building and Deployment processes for this purpose.+The goal is to develop and deploy a system ​that controls LEDs on a Raspberry Pi, from a PC. This section has detailed description of System Building and Deployment processes for this purpose.
  
  
  
-==== Section 2.1 Compose System ​On PC ====+==== Section 2.1 Compose System ​on PC ====
  
 At this point we start building a System on your PC, since Raspberry Pi does not have the SmartSoftToolchain. If you encounter difficulties in this part of the tutorial you may review [[tutorials:​develop-your-first-system:​start]]. At this point we start building a System on your PC, since Raspberry Pi does not have the SmartSoftToolchain. If you encounter difficulties in this part of the tutorial you may review [[tutorials:​develop-your-first-system:​start]].
Line 139: Line 144:
  
 1. Create a new System with SmartSoft Toolchain on your PC with ''​New => System Project (Tier 3)''​ and call it **SystemTrafficLight**. \\  1. Create a new System with SmartSoft Toolchain on your PC with ''​New => System Project (Tier 3)''​ and call it **SystemTrafficLight**. \\ 
 +
 2. Open ''​SystemTrafficLight => representations.aird => SystemArchitectureViewpoint => SystemArchitectureDiagram => **SystemTrafficLightComponentArchitecture**''​ \\  2. Open ''​SystemTrafficLight => representations.aird => SystemArchitectureViewpoint => SystemArchitectureDiagram => **SystemTrafficLightComponentArchitecture**''​ \\ 
 +
 3. Drag and Drop **ImportComponents** from ''​Palette => System Tools => **ImportComponents**''​ \\  3. Drag and Drop **ImportComponents** from ''​Palette => System Tools => **ImportComponents**''​ \\ 
 Select your ComponentTrafficLight and ComponentTrafficLightTest and press "​OK"​. Select your ComponentTrafficLight and ComponentTrafficLightTest and press "​OK"​.
Line 176: Line 183:
 {{ :​tutorials:​pi:​targetview.png?​400 |}} {{ :​tutorials:​pi:​targetview.png?​400 |}}
  
-And last but not least, we need to setup the Deployment.+And last but not least, we need to setup the deployment.
  
 === Setup the DeploymentViewpoint=== === Setup the DeploymentViewpoint===
Line 257: Line 264:
  
 If you got the same result, congratulations. You have completed the SmartSoft Raspberry Pi tutorial. If you got the same result, congratulations. You have completed the SmartSoft Raspberry Pi tutorial.
-===== Further Information ===== 
- 
-FIXME Provide relevant links to further information 
- 
-===== What do do next? ===== 
- 
-FIXME Suggest here, what tutorial to do next 
  
  
tutorials/pi/system.txt · Last modified: 2019/11/28 14:33 by Dennis Stampfer