Skip to content

Commit d40d104

Browse files
committed
Add ROS2 message for changing tasks
1 parent 8ac07b2 commit d40d104

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

ros/angel_msgs/msg/SystemCommands.msg

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,39 @@
88
# received message instance.
99
#
1010

11+
12+
# =====================
1113
# Task Monitor commands
14+
# =====================
15+
16+
# Index of GSP tasks being concurrently handled to indicate step progression/regression for.
1217
int8 task_index
18+
19+
# If the current task progress should be reset.
1320
bool reset_current_task
21+
22+
# If the current task progress should be regressed a step,
1423
bool previous_step
24+
25+
# If the current task progress should be progressed a step.
1526
bool next_step
27+
28+
29+
# =============
30+
# Task Changing
31+
# =============
32+
33+
# Enumeration of sorts for the tasks that may be switched to.
34+
#
35+
# This is an enumeration here in order to be a source of coordination between
36+
# nodes that support this functionality as just simply passing a string can
37+
# easily be subject to spelling errors or misalignment between nodes.
38+
#
39+
uint32 TASK_NO_CHANGE = 0
40+
uint32 TASK_COOKING = 1 # Cooking is "meta" atm because it is multi-task under the hood.
41+
uint32 TASK_MEDICAL_M2 = 2
42+
uint32 TASK_MEDICAL_M3 = 3
43+
uint32 TASK_MEDICAL_R18 = 4
44+
45+
# The task that is being changed to.
46+
uint32 change_task

0 commit comments

Comments
 (0)