-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jared Swift <[email protected]>
- Loading branch information
1 parent
b55959e
commit 63fd810
Showing
10 changed files
with
159 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
--- | ||
#result definition | ||
geometry_msgs/Pose[] waypoints | ||
--- | ||
#feedback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
common/navigation/lasr_person_following/nodes/stop_listener.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env python3 | ||
import rospy | ||
|
||
from lasr_speech_recognition_msgs.msg import ( # type: ignore | ||
TranscribeSpeechAction, | ||
TranscribeSpeechGoal, | ||
) | ||
|
||
from std_msgs.msg import Empty | ||
|
||
import actionlib | ||
|
||
if __name__ == "__main__": | ||
rospy.init_node("stop_listener") | ||
finished_pub = rospy.Publisher("/stop_listener/finished", Empty, queue_size=1) | ||
transcribe_speech_client = actionlib.SimpleActionClient( | ||
"transcribe_speech", TranscribeSpeechAction | ||
) | ||
transcribe_speech_client.wait_for_server() | ||
|
||
while not rospy.is_shutdown(): | ||
transcribe_speech_client.send_goal_and_wait(TranscribeSpeechGoal()) | ||
result = transcribe_speech_client.get_result() | ||
if "stop" in result.sequence.lower(): | ||
finished_pub.publish(Empty()) | ||
rospy.spin() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.