Acoustic Touch Recognition
Classes | Macros
libacoustic_touch.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sstream>
#include <string>
#include <cstring>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <vector>
#include <map>
#include <iterator>
#include <thread>
#include <mutex>
#include <chrono>
#include <boost/enable_shared_from_this.hpp>
#include <boost/algorithm/string.hpp>
#include <alsa/asoundlib.h>
#include <alsa/mixer.h>
#include "ros/rate.h"
#include "ros/ros.h"
#include "ros/console.h"
#include "ros/package.h"
#include "ros/subscriber.h"
#include "xmlrpcpp/XmlRpcValue.h"
#include "std_msgs/Empty.h"
#include "std_msgs/Float64.h"
#include "std_msgs/Int8.h"
#include "std_msgs/String.h"
#include "common_msgs/KeyValuePair.h"
#include "common_msgs/KeyValuePairArray.h"
#include "arduino_msgs/sensorStates.h"
#include "touch_gesture_msgs/SoundGesture.h"
#include "acoustic_touch_recognition/MenuOptions.h"
#include "linuxaudio/utils.h"
#include "pstreams/pstream.h"
#include "oscpack/ip/UdpSocket.h"
#include "oscpack/osc/OscOutboundPacketStream.h"
#include "oscpack/osc/OscReceivedElements.h"
#include "oscpack/osc/OscPacketListener.h"
Include dependency graph for libacoustic_touch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SoundGesture
 This class describes a sound gesture. More...
 
class  InstanceBuilder
 Front-end to create instance objects step by step. More...
 
class  ChucKHandler
 This class is in charge of handling multiple instances of chuck, as much instances as the user wants, but one per device. More...
 
struct  ChucKHandler::ck_soundCardAttributes
 
class  AcousticTouchInterface
 This class describes an audio client. More...
 
class  AcousticTouchInterface::ChucKPacketListener
 This nested class describes a chuck packet listener. A nested class is also a member variable of the enclosing class and has the same access rights as the other members. More...
 

Macros

#define HOST   "127.0.0.1"
 
#define PORT   1230
 
#define IN_PORT   7000
 
#define OUTPUT_BUFFER_SIZE   1024
 
#define RESET_COLOR   "\e[m"
 
#define MAKE_ITALIC   "\e[3m"
 
#define MAKE_WHITE   "\e[1;97m"
 
#define MAKE_GREEN   "\e[1;32m"
 
#define MAKE_BLACK   "\e[0;30m"
 
#define MAKE_RED   "\e[1;31m"
 
#define MAKE_BLUE   "\e[1;34m"
 
#define MAKE_CYAN   "\e[1;36m"
 
#define MAKE_BROWN   "\e[0;33m"
 
#define MAKE_PURPLE   "\e[1;35m"
 
#define MAKE_YELLOW   "\e[1;33m"
 
#define MAKE_BLUE_UNDERLINE   "\e[4;34m"
 
#define MAKE_YELLOW_UNDERLINE   "\e[4;33m"
 
#define CK_DEBUG   false
 
#define CK_LOG_PATH   "/log/chuck/"
 
#define CK_FILE_PATH   "/scripts/chuck/"
 
#define CK_FILE_NAME   "audio_analyzer.ck"
 
#define CK_PULSE_LATENCY   60
 

Macro Definition Documentation

◆ CK_DEBUG

#define CK_DEBUG   false

◆ CK_FILE_NAME

#define CK_FILE_NAME   "audio_analyzer.ck"

◆ CK_FILE_PATH

#define CK_FILE_PATH   "/scripts/chuck/"

◆ CK_LOG_PATH

#define CK_LOG_PATH   "/log/chuck/"

◆ CK_PULSE_LATENCY

#define CK_PULSE_LATENCY   60

◆ HOST

#define HOST   "127.0.0.1"

◆ IN_PORT

#define IN_PORT   7000

◆ MAKE_BLACK

#define MAKE_BLACK   "\e[0;30m"

◆ MAKE_BLUE

#define MAKE_BLUE   "\e[1;34m"

◆ MAKE_BLUE_UNDERLINE

#define MAKE_BLUE_UNDERLINE   "\e[4;34m"

◆ MAKE_BROWN

#define MAKE_BROWN   "\e[0;33m"

◆ MAKE_CYAN

#define MAKE_CYAN   "\e[1;36m"

◆ MAKE_GREEN

#define MAKE_GREEN   "\e[1;32m"

◆ MAKE_ITALIC

#define MAKE_ITALIC   "\e[3m"

◆ MAKE_PURPLE

#define MAKE_PURPLE   "\e[1;35m"

◆ MAKE_RED

#define MAKE_RED   "\e[1;31m"

◆ MAKE_WHITE

#define MAKE_WHITE   "\e[1;97m"

◆ MAKE_YELLOW

#define MAKE_YELLOW   "\e[1;33m"

◆ MAKE_YELLOW_UNDERLINE

#define MAKE_YELLOW_UNDERLINE   "\e[4;33m"

◆ OUTPUT_BUFFER_SIZE

#define OUTPUT_BUFFER_SIZE   1024

◆ PORT

#define PORT   1230

◆ RESET_COLOR

#define RESET_COLOR   "\e[m"