0001-added-Cylinder3DFloat-type-and-Cylinder3DFloatSet-ty.patch
proto/sandbox/rst/geometry/Cylinder3DFloat.proto | ||
---|---|---|
1 |
package rst.geometry; |
|
2 | ||
3 |
option java_outer_classname = "Cylinder3DFloatType"; |
|
4 |
import "rst/geometry/Pose.proto"; |
|
5 | ||
6 |
/** |
|
7 |
* Cylinder in 3D in general position and orientation. |
|
8 |
* |
|
9 |
* The general cylinder with dimensions @ref .radius and @ref .height |
|
10 |
* is constructed by translating and rotating (via @ref |
|
11 |
* .transformation) a zero-centered, z-oriented axis-aligned cylinder such as below around its center of |
|
12 |
* mass. |
|
13 |
* |
|
14 |
* .. parsed-literal:: |
|
15 |
* |
|
16 |
* < @ref .radius > |
|
17 |
* --------------------- |
|
18 |
* / \ |
|
19 |
* / \ |
|
20 |
* + + + ^ |
|
21 |
* |\ /| |
|
22 |
* | \ / | |
|
23 |
* | --------------------- | |
|
24 |
* | | |
|
25 |
* | Z ^ | |
|
26 |
* | | ^ Y | @ref .height |
|
27 |
* | | / | |
|
28 |
* | |/ | |
|
29 |
* | +-----> X | |
|
30 |
* | | |
|
31 |
* ˙ | | |
|
32 |
* | | |
|
33 |
* | | |
|
34 |
* + + v |
|
35 |
* \ / |
|
36 |
* \ / |
|
37 |
* --------------------- |
|
38 |
* |
|
39 |
* |
|
40 |
* @author Christian Emmerich <cemmeric@cor-lab.de> |
|
41 |
*/ |
|
42 |
message Cylinder3DFloat { |
|
43 | ||
44 |
/** |
|
45 |
* Transformation, consisting of translation and orientation, of |
|
46 |
* the center of mass of the cylinder. |
|
47 |
*/ |
|
48 |
required geometry.Pose transformation = 1; |
|
49 | ||
50 |
/** |
|
51 |
* The radius of the cylinder. |
|
52 |
*/ |
|
53 |
// @unit(meter) |
|
54 |
required float radius = 2; |
|
55 | ||
56 |
/** |
|
57 |
* The height of the cylinder. |
|
58 |
*/ |
|
59 |
// @unit(meter) |
|
60 |
required float height = 3; |
|
61 | ||
62 |
} |
proto/sandbox/rst/geometry/Cylinder3DFloatSet.proto | ||
---|---|---|
1 |
package rst.geometry; |
|
2 | ||
3 |
option java_outer_classname = "Cylinder3DFloatSetType"; |
|
4 | ||
5 |
import "rst/geometry/Cylinder3DFloat.proto"; |
|
6 | ||
7 |
/** |
|
8 |
* A set of @ref .Cylinder3DFloat objects. |
|
9 |
* |
|
10 |
* @author Christian Emmerich <cemmeric@cor-lab.de> |
|
11 |
*/ |
|
12 |
message Cylinder3DFloatSet { |
|
13 | ||
14 |
/** |
|
15 |
* Empty collection of cylinders is allowed. |
|
16 |
* The order of cylinders is not significant. |
|
17 |
*/ |
|
18 |
repeated geometry.Cylinder3DFloat cylinders = 1; |
|
19 | ||
20 |
} |
|
0 |
- |