Skip to content

Commit 08d81d0

Browse files
authored
Change objective status to an enum (#77)
1 parent 58e1645 commit 08d81d0

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1-
# Heartbeat timestamps of the Objective Server node
1+
# Heartbeat timestamps of the Objective Server node.
22
builtin_interfaces/Time process_timestamp
33
builtin_interfaces/Time ros_timestamp
44

5-
# Name and status descriptor of the current objective tree
6-
# See StatusTree::NodeStatus for valid objective_status values
5+
# Name and status descriptor of the current objective tree.
76
string objective_name
8-
string objective_status
7+
8+
# Possible objective_status values.
9+
# This corresponds with StatusTree::NodeStatus in the objective server.
10+
int8 OBJECTIVE_STATUS_UNKNOWN = 0
11+
int8 OBJECTIVE_STATUS_IDLE = 1
12+
int8 OBJECTIVE_STATUS_RUNNING = 2
13+
int8 OBJECTIVE_STATUS_SUCCESS = 3
14+
int8 OBJECTIVE_STATUS_FAILURE = 4
15+
16+
# The status of the objective.
17+
int8 objective_status

0 commit comments

Comments
 (0)