This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
proto.pb
95 lines (79 loc) · 1.72 KB
/
proto.pb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
syntax = "proto3";
package src;
message HeartbeatMsg {
}
message StopMovingMsg {
}
message MovementEndedMsg {
bool blocked = 1;
}
message EncoderPositionMsg {
sint32 left_tick = 1;
sint32 right_tick = 2;
}
message MotionLimitMsg {
uint32 translation_speed = 2;
uint32 rotation_speed = 3;
uint32 wheel_speed = 4;
uint32 wheel_acceleration = 5;
}
message PIDConfigMsg {
uint32 pid_id = 1;
uint32 kp = 6;
uint32 ki = 7;
uint32 kd = 8;
}
message SetMotionControlModeMsg {
bool speed = 1;
bool translation = 2;
bool rotation = 3;
}
message MoveWheelAtSpeedMsg {
sint32 left_tick_per_sec = 1;
sint32 right_tick_per_sec = 2;
}
message TranslateMsg {
sint32 ticks = 1;
}
message RotateMsg {
sint32 ticks = 1;
}
message ServoMsg {
uint32 id = 1;
sint32 angle = 2;
}
message PumpAndValveMsg {
uint32 id = 1;
bool on = 2;
}
message LaserSensorMsg {
uint32 distance_front_left = 1;
uint32 distance_front_right = 2;
uint32 distance_back_left = 3;
uint32 distance_back_right = 4;
}
message PressureSensorMsg {
bool on_left = 1;
bool on_center_left = 2;
bool on_center = 3;
bool on_center_right = 4;
bool on_right = 5;
}
message BusMessage {
oneof message_content {
HeartbeatMsg heartbeat = 1;
StopMovingMsg stopMoving = 2;
MovementEndedMsg movementEnded = 3;
EncoderPositionMsg encoderPosition = 4;
PIDConfigMsg pidConfig = 5;
MotionLimitMsg motionLimit = 6;
SetMotionControlModeMsg setMotionControlMode = 7;
MoveWheelAtSpeedMsg moveWheelAtSpeed = 8;
TranslateMsg translate = 9;
RotateMsg rotate = 10;
ServoMsg servo = 11;
PumpAndValveMsg pumpAndValve = 12;
LaserSensorMsg laserSensor = 13;
PressureSensorMsg pressureSensor = 14;
}
}