Skip to content

Commit

Permalink
feat: morning fixes of sm
Browse files Browse the repository at this point in the history
  • Loading branch information
fireblonde committed Jul 18, 2024
1 parent 774c3ca commit abf37e0
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions tasks/carry_my_luggage/src/carry_my_luggage/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ def wait_cb(ud, msg):
EmptySrv,
),
transitions={
"succeeded": "GET_START_POSE",
"aborted": "GET_START_POSE",
"preempted": "GET_START_POSE",
"succeeded": "GET_START_LOCATION",
"aborted": "GET_START_LOCATION",
"preempted": "GET_START_LOCATION",
},
)

Expand All @@ -211,19 +211,10 @@ def start_pose_cb(ud):
smach.StateMachine.add(
"SAY_STEP",
Say(text="First walk slowly towards me and then I will follow you."),
transitions={
"succeeded": "SAY_FOLLOW",
"aborted": "failed",
"preempted": "failed",
},
)
smach.StateMachine.add(
"SAY_FOLLOW",
Say(text="I will follow you now."),
transitions={
"succeeded": "FOLLOW",
"aborted": "failed",
"preempted": "failed",
"aborted": "FOLLOW",
"preempted": "FOLLOW",
},
)

Expand Down

0 comments on commit abf37e0

Please sign in to comment.