From 7254682eebf01e17a6d2cb17e84dbb2925e370ba Mon Sep 17 00:00:00 2001
From: Hongyu Li
Date: Tue, 29 Mar 2022 13:41:33 -0400
Subject: [PATCH] Updated messae names w/ prefix VZ_
---
vz_acoustic_scene_analysis/CMakeLists.txt | 4 ++--
.../msg/{MyAudioData.msg => VZ_AudioData.msg} | 0
.../msg/{MyAudioInfo.msg => VZ_AudioInfo.msg} | 0
vz_acoustic_scene_analysis/scripts/stretch_audio.py | 4 ++--
4 files changed, 4 insertions(+), 4 deletions(-)
rename vz_acoustic_scene_analysis/msg/{MyAudioData.msg => VZ_AudioData.msg} (100%)
rename vz_acoustic_scene_analysis/msg/{MyAudioInfo.msg => VZ_AudioInfo.msg} (100%)
diff --git a/vz_acoustic_scene_analysis/CMakeLists.txt b/vz_acoustic_scene_analysis/CMakeLists.txt
index bb85832..3b3f06b 100644
--- a/vz_acoustic_scene_analysis/CMakeLists.txt
+++ b/vz_acoustic_scene_analysis/CMakeLists.txt
@@ -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
diff --git a/vz_acoustic_scene_analysis/msg/MyAudioData.msg b/vz_acoustic_scene_analysis/msg/VZ_AudioData.msg
similarity index 100%
rename from vz_acoustic_scene_analysis/msg/MyAudioData.msg
rename to vz_acoustic_scene_analysis/msg/VZ_AudioData.msg
diff --git a/vz_acoustic_scene_analysis/msg/MyAudioInfo.msg b/vz_acoustic_scene_analysis/msg/VZ_AudioInfo.msg
similarity index 100%
rename from vz_acoustic_scene_analysis/msg/MyAudioInfo.msg
rename to vz_acoustic_scene_analysis/msg/VZ_AudioInfo.msg
diff --git a/vz_acoustic_scene_analysis/scripts/stretch_audio.py b/vz_acoustic_scene_analysis/scripts/stretch_audio.py
index 8f3622e..d7c148d 100755
--- a/vz_acoustic_scene_analysis/scripts/stretch_audio.py
+++ b/vz_acoustic_scene_analysis/scripts/stretch_audio.py
@@ -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