Skip to content

Commit

Permalink
fix: if we have a single verb, and it's deliver, then bring.
Browse files Browse the repository at this point in the history
  • Loading branch information
jws-1 committed Jul 12, 2024
1 parent 7b70130 commit ba7f43a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/gpsr/src/gpsr/state_machine_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,10 @@ def build_state_machine(parsed_command: Dict) -> smach.StateMachine:
talk(command_param, sm)
elif command_verb == "guide":
guide(command_param, sm)
elif command_verb == "deliver":
elif command_verb == "deliver" and len(command_params) > 1:
deliver(command_param, sm)
elif command_verb == "deliver" and len(command_params) == 1:
bring(command_param, sm)
elif command_verb == "place":
place(command_param, sm)
elif command_verb == "take":
Expand All @@ -833,8 +835,6 @@ def build_state_machine(parsed_command: Dict) -> smach.StateMachine:
]
)
go(command_param, sm, person)
elif command_verb == "bring":
bring(command_param, sm)
elif command_verb == "find":
find(command_param, sm)
elif command_verb == "meet":
Expand Down

0 comments on commit ba7f43a

Please sign in to comment.