Skip to content

Commit

Permalink
fix: setup input keys correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
jws-1 committed Apr 18, 2024
1 parent a94b357 commit df1db0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 110 deletions.
109 changes: 0 additions & 109 deletions skills/src/lasr_skills/find_known_person.py

This file was deleted.

8 changes: 7 additions & 1 deletion skills/src/lasr_skills/go_to_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@
class GoToLocation(smach.StateMachine):

def __init__(self, location: Union[Pose, None] = None):
super(GoToLocation, self).__init__(outcomes=["succeeded", "failed"])

if location is not None:
super(GoToLocation, self).__init__(outcomes=["succeeded", "failed"])
else:
super(GoToLocation, self).__init__(
outcomes=["succeeded", "failed"], input_keys=["location"]
)

IS_SIMULATION = (
"/pal_startup_control/start" not in rosservice.get_service_list()
Expand Down

0 comments on commit df1db0c

Please sign in to comment.