Public Member Functions | Public Attributes | Private Member Functions | List of all members
sound_detector_volume.SoundDetectorVolume Class Reference
Inheritance diagram for sound_detector_volume.SoundDetectorVolume:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self)
 
def subscribe (self)
 
def unsubscribe (self)
 
- Public Member Functions inherited from topic_tools::LazyTransport
def __init__ (self)
 
def advertise (self, *args, **kwargs)
 
def peer_subscribe (self, *args, **kwargs)
 
def peer_unsubscribe (self, *args, **kwargs)
 
def subscribe (self)
 
def unsubscribe (self)
 

Public Attributes

 cv_bridge
 
 pub
 
 sub
 
 threshold
 

Private Member Functions

def _cb (self, msg)
 

Detailed Description

Detect whether the robot is in sound or not by sound volume.

Robot is detected as 'in_sound' when
the average power of pixels is more then 'power_per_pixel_threshold'

Definition at line 10 of file sound_detector_volume.py.

Constructor & Destructor Documentation

◆ __init__()

def sound_detector_volume.SoundDetectorVolume.__init__ (   self)

Definition at line 18 of file sound_detector_volume.py.

Member Function Documentation

◆ _cb()

def sound_detector_volume.SoundDetectorVolume._cb (   self,
  msg 
)
private

Definition at line 31 of file sound_detector_volume.py.

◆ subscribe()

def sound_detector_volume.SoundDetectorVolume.subscribe (   self)

Definition at line 25 of file sound_detector_volume.py.

◆ unsubscribe()

def sound_detector_volume.SoundDetectorVolume.unsubscribe (   self)

Definition at line 28 of file sound_detector_volume.py.

Member Data Documentation

◆ cv_bridge

sound_detector_volume.SoundDetectorVolume.cv_bridge

Definition at line 23 of file sound_detector_volume.py.

◆ pub

sound_detector_volume.SoundDetectorVolume.pub

Definition at line 22 of file sound_detector_volume.py.

◆ sub

sound_detector_volume.SoundDetectorVolume.sub

Definition at line 26 of file sound_detector_volume.py.

◆ threshold

sound_detector_volume.SoundDetectorVolume.threshold

Definition at line 21 of file sound_detector_volume.py.


The documentation for this class was generated from the following file:


sound_classification
Author(s):
autogenerated on Fri May 16 2025 03:12:55