Skip to content

Commit

Permalink
refactor: remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar-gg committed Jan 12, 2025
1 parent 07134d6 commit 14cf1ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 3 additions & 11 deletions docker/hri/devices.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# Speech variables
x-speech-devices:
&speech-devices # MIC_DEVICE_NAME: "ReSpeaker 4 Mic Array (UAC1.0): USB Audio"
MIC_DEVICE_NAME: "default"
MIC_INPUT_CHANNELS: 32
MIC_OUT_CHANNELS: 32
SPEAKER_DEVICE_NAME: "default"
SPEAKER_INPUT_CHANNELS: 32
SPEAKER_OUT_CHANNELS: 32
KEYWORD_DIR: /workspace/ws/src/speech/scripts/keywords
&speech-devices
PULSE_SERVER: unix:/tmp/pulseaudio.socket
PULSE_COOKIE: /tmp/pulseaudio.cookie

Expand All @@ -33,9 +26,8 @@ services:
<<:
- *speech-devices
DISPLAY: ${DISPLAY}
# env_file:
# - ../.env
# - network.env
env_file:
- .env
tty: true
command: [
"bash",
Expand Down
4 changes: 3 additions & 1 deletion hri/packages/speech/scripts/say.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
class Say(Node):
def __init__(self):
super().__init__("say")
self.get_logger().info("Say node has started.")
self.get_logger().info("Initializing Say node.")

self.connected = False
self.declare_parameter("speaking_topic", "/saying")
Expand Down Expand Up @@ -73,6 +73,8 @@ def __init__(self):
self.create_subscription(String, speak_topic, self.speak_topic, 10)
self.publisher_ = self.create_publisher(Bool, speaking_topic, 10)

self.get_logger().info("Say node initialized.")

def speak_service(self, req):
"""When say is called as a service. Caller awaits for the response."""
self.get_logger().debug("[Service] I will say: " + req.text)
Expand Down

0 comments on commit 14cf1ba

Please sign in to comment.