-
Notifications
You must be signed in to change notification settings - Fork 0
/
FleetMessages.idl
65 lines (65 loc) · 1.26 KB
/
FleetMessages.idl
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
module FreeFleetData
{
module RobotMode_Constants
{
const unsigned long MODE_IDLE = 0;
const unsigned long MODE_CHARGING = 1;
const unsigned long MODE_MOVING = 2;
const unsigned long MODE_PAUSED = 3;
const unsigned long MODE_WAITING = 4;
const unsigned long MODE_EMERGENCY = 5;
const unsigned long MODE_GOING_HOME = 6;
const unsigned long MODE_DOCKING = 7;
const unsigned long MODE_REQUEST_ERROR = 8;
};
struct RobotMode
{
unsigned long mode;
};
struct Location
{
long sec;
unsigned long nanosec;
float x;
float y;
float yaw;
string level_name;
};
struct RobotState
{
string name;
string model;
string task_id;
RobotMode mode;
float battery_percent;
Location location;
sequence<Location> path;
};
struct ModeParameter
{
string name;
string value;
};
struct ModeRequest
{
string fleet_name;
string robot_name;
RobotMode mode;
string task_id;
sequence<ModeParameter> parameters;
};
struct PathRequest
{
string fleet_name;
string robot_name;
sequence<Location> path;
string task_id;
};
struct DestinationRequest
{
string fleet_name;
string robot_name;
Location destination;
string task_id;
};
};