Browse Source

Updated messae names w/ prefix VZ_

pull/65/head
Hongyu Li 2 years ago
parent
commit
7254682eeb
4 changed files with 4 additions and 4 deletions
  1. +2
    -2
      vz_acoustic_scene_analysis/CMakeLists.txt
  2. +0
    -0
      vz_acoustic_scene_analysis/msg/VZ_AudioData.msg
  3. +0
    -0
      vz_acoustic_scene_analysis/msg/VZ_AudioInfo.msg
  4. +2
    -2
      vz_acoustic_scene_analysis/scripts/stretch_audio.py

+ 2
- 2
vz_acoustic_scene_analysis/CMakeLists.txt View File

@ -57,8 +57,8 @@ catkin_python_setup()
## Generate messages in the 'msg' folder
add_message_files(
FILES
MyAudioInfo.msg
MyAudioData.msg
VZ_AudioInfo.msg
VZ_AudioData.msg
)
## Generate services in the 'srv' folder

vz_acoustic_scene_analysis/msg/MyAudioData.msg → vz_acoustic_scene_analysis/msg/VZ_AudioData.msg View File


vz_acoustic_scene_analysis/msg/MyAudioInfo.msg → vz_acoustic_scene_analysis/msg/VZ_AudioInfo.msg View File


+ 2
- 2
vz_acoustic_scene_analysis/scripts/stretch_audio.py View File

@ -15,7 +15,7 @@ import pickle
from contextlib import contextmanager
import stretch_body.hello_utils as hu
hu.print_stretch_re_use()
from vz_acoustic_scene_analysis.msg import MyAudioData
from vz_acoustic_scene_analysis.msg import VZ_AudioData
from rospy.numpy_msg import numpy_msg
import NEU_VZ_ASA.MehrshadTesting.codes.A_CoughDetection.src.DSP as dsp
@ -201,7 +201,7 @@ class ROSInterface:
self.chunk_size = rospy.get_param("/chunk_size")
self.respeaker = Tuning()
# Publisher for Audio Data
self.audio_data_pub = rospy.Publisher("/wav_data", numpy_msg(MyAudioData), queue_size=10)
self.audio_data_pub = rospy.Publisher("/wav_data", numpy_msg(VZ_AudioData), queue_size=10)
# For Utku's code: float of cough probabilty from sample
self.cough_prob = 90

Loading…
Cancel
Save