Browse Source

Fixed typo in the save_path in the example 8 markdown file.

main
Alan G. Sanchez 2 years ago
parent
commit
ade1ce1d3f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      example_8.md

+ 2
- 2
example_8.md View File

@ -37,7 +37,7 @@ class SpeechText:
Initialize subscriber and directory to save speech to text file. Initialize subscriber and directory to save speech to text file.
""" """
self.sub = rospy.Subscriber("speech_to_text", SpeechRecognitionCandidates, self.callback) self.sub = rospy.Subscriber("speech_to_text", SpeechRecognitionCandidates, self.callback)
self.save_path = '/home/hello-robot/catkin_ws/src/stretch_tutorials/stored_data
self.save_path = '/home/hello-robot/catkin_ws/src/stretch_tutorials/stored_data'
rospy.loginfo("Listening to speech.") rospy.loginfo("Listening to speech.")
def callback(self,msg): def callback(self,msg):
@ -90,7 +90,7 @@ def __init__(self):
Set up a subscriber. We're going to subscribe to the topic "*speech_to_text*", looking for `SpeechRecognitionCandidates` messages. When a message comes in, ROS is going to pass it to the function "callback" automatically. Set up a subscriber. We're going to subscribe to the topic "*speech_to_text*", looking for `SpeechRecognitionCandidates` messages. When a message comes in, ROS is going to pass it to the function "callback" automatically.
```python ```python
self.save_path = '/home/hello-robot/catkin_ws/src/stretch_tutorials/stored_data
self.save_path = '/home/hello-robot/catkin_ws/src/stretch_tutorials/stored_data'
``` ```
Define the directory to save the text file. Define the directory to save the text file.

Loading…
Cancel
Save