0001-Data-type-for-component-circuit-beat.patch
proto/sandbox/rst/cbse/Tick.proto | ||
---|---|---|
1 |
package rst.cbse; |
|
2 | ||
3 |
option java_outer_classname = "TickType"; |
|
4 | ||
5 |
import "rst/timing/Timestamp.proto"; |
|
6 |
import "rst/timing/Duration.proto"; |
|
7 | ||
8 |
/** |
|
9 |
* Tick sent to a component in a component circuit (as used by a global |
|
10 |
* heartbeat). Including support for virtual (simulation) time often found in |
|
11 |
* robotics applications. |
|
12 |
* |
|
13 |
* @author Arne Nordmann <anordman@techfak.uni-bielefeld.de> |
|
14 |
*/ |
|
15 |
message Tick { |
|
16 | ||
17 |
/** |
|
18 |
* Sequence number of the tick. This sequence number is unique "within" the |
|
19 |
* sending heartbeat. |
|
20 |
*/ |
|
21 |
required uint32 sequence_number = 1; |
|
22 | ||
23 |
/** |
|
24 |
* Real time timestamp |
|
25 |
*/ |
|
26 |
// @unit(microseconds) |
|
27 |
required timing.Timestamp timestamp = 2; |
|
28 | ||
29 |
/** |
|
30 |
* Virtual (simulation) timestamp |
|
31 |
*/ |
|
32 |
// @unit(microseconds) |
|
33 |
optional timing.Timestamp virtual_timestamp = 3; |
|
34 | ||
35 |
/** |
|
36 |
* (Real) Timestep since last tick |
|
37 |
*/ |
|
38 |
// @unit(microseconds) |
|
39 |
optional timing.Duration timestep = 4; |
|
40 | ||
41 |
/** |
|
42 |
* Virtual (simulation) timestep since last tick |
|
43 |
*/ |
|
44 |
// @unit(microseconds) |
|
45 |
optional timing.Duration virtual_timestep = 5; |
|
46 | ||
47 |
} |
|
0 |
- |