Skip to content
Snippets Groups Projects
Commit e49badc0 authored by Paul Beuchat's avatar Paul Beuchat
Browse files

Added placeholder code for how to add a sound effect when the controller is changed

parent 554cb7f7
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets ...@@ -12,6 +12,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 4): QT += charts greaterThan(QT_MAJOR_VERSION, 4): QT += charts
#greaterThan(QT_MAJOR_VERSION, 4): QT += multimedia
TARGET = flyingAgentGUI TARGET = flyingAgentGUI
TEMPLATE = app TEMPLATE = app
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <QWidget> #include <QWidget>
#include <QMutex> #include <QMutex>
#include <QVector> #include <QVector>
//#include <QSoundEffect>
#ifdef CATKIN_MAKE #ifdef CATKIN_MAKE
#include <ros/ros.h> #include <ros/ros.h>
...@@ -141,6 +142,9 @@ private: ...@@ -141,6 +142,9 @@ private:
QColor m_tab_text_colour_normal; QColor m_tab_text_colour_normal;
QColor m_tab_text_colour_highlight; QColor m_tab_text_colour_highlight;
// Sound effect for when the controller changes while flying
//QSoundEffect m_soundEffect_controllerChanged;
#ifdef CATKIN_MAKE #ifdef CATKIN_MAKE
// --------------------------------------------------- // // --------------------------------------------------- //
......
...@@ -48,6 +48,13 @@ ControllerTabs::ControllerTabs(QWidget *parent) : ...@@ -48,6 +48,13 @@ ControllerTabs::ControllerTabs(QWidget *parent) :
m_tab_text_colour_normal = Qt::black; m_tab_text_colour_normal = Qt::black;
m_tab_text_colour_highlight = QColor(0,200,0); m_tab_text_colour_highlight = QColor(0,200,0);
// Initialise the sound effect for when the controller changes while flying
//QSoundEffect m_soundEffect_controllerChanged;
//m_soundEffect_controllerChanged.setSource(QUrl::fromLocalFile("engine.wav"));
//m_soundEffect_controllerChanged.setLoopCount(1);
//m_soundEffect_controllerChanged.setVolume(0.25f);
//m_soundEffect_controllerChanged.play();
// Initialise the object name as blank // Initialise the object name as blank
m_object_name_for_emitting_pose_data = ""; m_object_name_for_emitting_pose_data = "";
......
...@@ -88,6 +88,13 @@ sudo apt -y install qt5-default ...@@ -88,6 +88,13 @@ sudo apt -y install qt5-default
# Install the development version of the Qt5svg library # Install the development version of the Qt5svg library
sudo apt -y install libqt5svg5-dev sudo apt -y install libqt5svg5-dev
# Install the charting library
sudo apt install libqt5charts5-dev
# Install the multimedia library (used for sound effects)
sudo apt install libqt5multimedia5
sudo apt install qtmultimedia5-dev
# Install the "Qt Creator" IDE # Install the "Qt Creator" IDE
# > NOTE: this is not necessary to compile and run the dfall ROS package, # > NOTE: this is not necessary to compile and run the dfall ROS package,
# but it is required to edit the GUIs # but it is required to edit the GUIs
......
...@@ -88,6 +88,13 @@ sudo apt -y install qt5-default ...@@ -88,6 +88,13 @@ sudo apt -y install qt5-default
# Install the development version of the Qt5svg library # Install the development version of the Qt5svg library
sudo apt -y install libqt5svg5-dev sudo apt -y install libqt5svg5-dev
# Install the charting library
sudo apt install libqt5charts5-dev
# Install the multimedia library (used for sound effects)
sudo apt install libqt5multimedia5
sudo apt install qtmultimedia5-dev
# Install the "Qt Creator" IDE # Install the "Qt Creator" IDE
# > NOTE: this is not necessary to compile and run the dfall ROS package, # > NOTE: this is not necessary to compile and run the dfall ROS package,
# but it is required to edit the GUIs # but it is required to edit the GUIs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment