source: pacpustutorials/exercises/exercise_1/exercise_1.txt@ 11

Last change on this file since 11 was 9, checked in by DHERBOMEZ Gérald, 9 years ago

update tutorials

File size: 1.3 KB
Line 
1author: Gerald Dherbomez
2copyright: Heudiasyc UMR UTC/CNRS 7253
3
4Exercise 1: Creating your first PAPCUS project
5----------------------------------------------
6
7The objective of this exercise is to understand the build process of a PACPUS project. The utility 'cmake' is used to create the Makefile of the project, and finally we use the GNU Compiler Collection to build the plugins.
8
9Thanks to the different source codes (.cpp, .h and CMakeLists.txt) in the folder 'template', create a new PACPUS project containing just 1 component. This component may generate a message in the terminal at a user selectable frequency.
10
11Once you have built your plugin, run it in /opt/pacpus/x.y.z/bin folder with the PacpusSensor executable.
12
13Indications:
14- You can use QTimer to generate the timer.
15- A component can be parametrized in a XML file, it might be useful to change the message display frequency.
16- The tree of your project may be something like that:
17
18
19pacpustutorials
20 |
21 |--> exercises
22 |
23 |--> exercise_1
24 |
25 |--> CMakeLists.txt
26 |--> MessageComponent.h
27 |--> MessageComponent.cpp
28 |
29 |--> build
30 |
31 |--> build_linux.sh
32 |
33 |--> CMakeLists.txt
34
35
36
37
Note: See TracBrowser for help on using the repository browser.