Skip to content

Commit

Permalink
comments for msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Oct 31, 2024
1 parent 1872a95 commit bf35b91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
14 changes: 7 additions & 7 deletions yasmin_msgs/msg/State.msg
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
int32 id
int32 parent -1
int32 id # state ID inside a state machine
int32 parent -1 # ID of the parent of this state

string name
yasmin_msgs/Transition[] transitions
string[] outcomes
string name # state name inside the state machine
yasmin_msgs/Transition[] transitions # transitions for this state
string[] outcomes # list of outcomes of this state

bool is_fsm
int32 current_state -1
bool is_fsm # whether this state is a state machine
int32 current_state -1 # ID of the current state of this state if it is a state machine
3 changes: 1 addition & 2 deletions yasmin_msgs/msg/StateMachine.msg
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

yasmin_msgs/State[] states
yasmin_msgs/State[] states # list of states that compose a state machine
5 changes: 2 additions & 3 deletions yasmin_msgs/msg/Transition.msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@

string outcome
string state
string outcome # outcome, from a state, of the transition
string state # state (also can be an outcome of a state machine) of the transition

0 comments on commit bf35b91

Please sign in to comment.