0001-Added-new-Type-OccupancyGridInt.patch
proto/sandbox/rst/navigation/OccupancyGrid2DInt.proto | ||
---|---|---|
1 |
package rst.navigation; |
|
2 | ||
3 |
import "rst/geometry/Pose.proto"; |
|
4 | ||
5 |
option java_outer_classname = "OccupancyGrid2DIntType"; |
|
6 | ||
7 |
/** |
|
8 |
* This represents a 2D grid map, in which each cell represents the |
|
9 |
* probability of occupancy. This kind of representation is often used |
|
10 |
* in SLAM implementations. |
|
11 |
* |
|
12 |
* @author Leon Ziegler <lziegler@techfak.uni-bielefeld.de> |
|
13 |
*/ |
|
14 |
message OccupancyGrid2DInt { |
|
15 | ||
16 |
/** |
|
17 |
* The map resolution as edge length of a cell. |
|
18 |
*/ |
|
19 |
// @unit(meter) |
|
20 |
required float resolution = 1; |
|
21 | ||
22 |
/** |
|
23 |
* Number of cells in x direction. |
|
24 |
*/ |
|
25 |
required uint32 width = 2; |
|
26 | ||
27 |
/** |
|
28 |
* Number of cells in y direction. |
|
29 |
*/ |
|
30 |
required uint32 height = 3; |
|
31 | ||
32 |
/** |
|
33 |
* The origin of the map. This is the real-world pose of the cell |
|
34 |
* (0,0) in the map. The grid is defined in the x-y plane given by |
|
35 |
* this pose, therefore the rotation defines the orientation of the 2D grid |
|
36 |
* in the real three-dimensional world. If the floor is defined as the x-y |
|
37 |
* plane in world coordinates, the pose should only contain a rotation |
|
38 |
* around the z-axis. |
|
39 |
*/ |
|
40 |
required rst.geometry.Pose origin = 4; |
|
41 | ||
42 |
/** |
|
43 |
* The map data, in row-major order. Occupancy probabilities are signed |
|
44 |
* 8-bit integer with big endian byte order in the range [0,100]. |
|
45 |
* Unknown is -1. |
|
46 |
*/ |
|
47 |
// @constraint(len(value) = (.width * .height)) |
|
48 |
required bytes map = 5; |
|
49 | ||
50 |
} |
|
0 |
- |