Rationale » History » Version 6

J. Wienke, 10/05/2011 04:44 PM

1 1 J. Wienke
h1. Structure Proposal
2 1 J. Wienke
3 1 J. Wienke
h2. Requirements
4 1 J. Wienke
5 2 J. Wienke
In general, the following requirements try to enforce the general *reusability* of data types.
6 2 J. Wienke
7 2 J. Wienke
* *Visibility*: Data definitions must be easily visible when searching for them to foster reuse. This includes:
8 1 J. Wienke
** Folder browsing
9 1 J. Wienke
** Code completion
10 2 J. Wienke
* *Structuredness*: A structured view on the data is required as an orthogonal perspective to the general visibility in order to find functionally coherent groups of data definitions.
11 2 J. Wienke
* *Stability*: A core set of data definitions must be kept stable as much as possible in order to shield depending software from frequent changes.
12 2 J. Wienke
* *Extendability*: New data type definitions are constantly required. Adding them to the repository must have a low barrier to motivate data type sharing.
13 2 J. Wienke
* *Addressability*: A certain revision of a data type must be uniquely addressable and accessible in order to conserve system states.
14 3 J. Wienke
* *Practicability*: Data type definitions must be usable in an efficient manner in all target languages. This includes also the use of languages where IDL definitions are parsed at runtime and not compiled statically.
15 3 J. Wienke
16 3 J. Wienke
h2. Proposed Solution
17 4 J. Wienke
18 4 J. Wienke
h3. Packaging
19 4 J. Wienke
20 6 J. Wienke
* RST will be split into two separate libraries. Both libraries will be built by the same build-system and use the _same_ naming and structure conventions.
21 6 J. Wienke
** _RST_: stable data type definitions. Types in this library must not use types from beta.
22 6 J. Wienke
** _RST-beta_: new data type definitions which may be modified constantly. Beta-types may include types from stable.
23 6 J. Wienke
* Using the beta library will require explicit requests from the application developer, e.g. by using a separate pkg-config file. Also, e.g. for C++, the headers will be separated into different subdirectories in a way that using the stable library will not make the headers of the beta library automatically available to the compiler.
24 4 J. Wienke
25 1 J. Wienke
h3. Data Type Integration Procedure
26 1 J. Wienke
27 6 J. Wienke
* New data types can be added by every developer to the beta library using the specified style guide.
28 1 J. Wienke
* The RST team will merge the data types from beta to stable from time to time. During this process modifications to the data are explicitly allowed in order to meet the style and quality requirements of the stable library.
29 6 J. Wienke
* We will shortly integrate fundamental data types instable inspired by ROS, Orocos etc.
30 1 J. Wienke
31 1 J. Wienke
h3. Structure
32 6 J. Wienke
33 6 J. Wienke
* The svn will contain a single tree for organizing the data definitions. This tree (i.e. the definition of appropriate categories) will be inspired by the data layout of ROS, Orocos and other robotics middlewares.
34 6 J. Wienke
* Folders in the match the package provided in the IDL files.
35 6 J. Wienke
* A Redmine plugin will be created to browse the list of data types, e.g. in a flat list for easy search.
36 6 J. Wienke
37 6 J. Wienke
h3. Versioning
38 6 J. Wienke
39 6 J. Wienke
* No manual versioning will be used. Especially, no versions will be synchronized with RSB releases. Instead, svn revisions will be the only means of addressing specific versions. svn revisions will be integrated into the library for using them in the code or with the C++ preprocessor.
40 6 J. Wienke
41 6 J. Wienke
h3. Style Guide
42 6 J. Wienke
43 6 J. Wienke
* A style guide will be defined (or the current one will be improved) to cover more aspects, e.g. like the canonical format for the java_outer_classname option.
44 6 J. Wienke
* Even if some contents of the files can be defined canonically, we will not generate them using the build system.
45 4 J. Wienke
46 4 J. Wienke
h2. Addressed Requirements
47 4 J. Wienke
48 4 J. Wienke
h2. Identified Drawbacks
49 4 J. Wienke
50 4 J. Wienke
* Python naming of modules