Skip to content

Commit

Permalink
oops i logging
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioc76 committed Nov 22, 2024
1 parent 36f24f8 commit 21790fc
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 90 deletions.
8 changes: 3 additions & 5 deletions autonav_ws/src/autonav_hardware/src/audible_feedback_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,10 @@ def on_audible_feedback_received(self, msg:AudibleFeedback):
self.stop_all()

else:
self.log(f"playing {msg.filename}")
# self.log(f"playing {msg.filename}")
filename = str(msg.filename)

self.log(f"heard request to play {msg.filename}")
# current_playing_process = threading.Thread(target=self.play_sound, args=[filename])
# self.tracks.append(current_playing_process)
# current_playing_process.start()
# self.log(f"heard request to play {msg.filename}")
self.play_sound(filename)


Expand All @@ -57,6 +54,7 @@ def play_sound(self, filename):

self.tracks.append(playback)


def stop_all(self):
for track in self.tracks:
self.log(f"{track}")
Expand Down
13 changes: 0 additions & 13 deletions autonav_ws/src/autonav_hardware/src/playback3.py

This file was deleted.

39 changes: 0 additions & 39 deletions autonav_ws/src/autonav_hardware/src/player.py

This file was deleted.

14 changes: 0 additions & 14 deletions autonav_ws/src/autonav_hardware/src/player2.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def __init__(self):
self.timer = self.create_timer(timer_period, self.timer_callback)
self.i = 0


def timer_callback(self):
msg = AudibleFeedback()
if self.i == 0:
Expand Down
19 changes: 0 additions & 19 deletions autonav_ws/src/autonav_hardware/src/threadexa.py

This file was deleted.

0 comments on commit 21790fc

Please sign in to comment.