bob_central.music_daemon
Attributes
Classes
Background Daemon that processes a strict Queue, ensuring 1 song plays at real-time pace. |
Functions
|
|
|
Module Contents
- bob_central.music_daemon.CHUNK_FRAMES = 4096
- bob_central.music_daemon.CHUNK_BYTES = 16384
- bob_central.music_daemon.get_metadata(file_path: str) dict
- class bob_central.music_daemon.MusicDaemon(audio_topic='/eva/streamer/in1', status_topic='/eva/streamer/current_song')
Bases:
rclpy.node.NodeBackground Daemon that processes a strict Queue, ensuring 1 song plays at real-time pace.
- pub_audio
- pub_status
- sub_request
- audio_topic = '/eva/streamer/in1'
- task_queue
- current_proc = None
- skip_event
- worker_thread
- on_request(msg: std_msgs.msg.String)
- _playback_loop()
- _play_task(files: list, loop: bool, loop_all: bool)
- _stream_file(file_path: str)
- bob_central.music_daemon.main(args=None)