Enumerations | Functions | Variables
Clapper.cpp File Reference
#include <ros.h>
#include <std_msgs/Empty.h>
Include dependency graph for Clapper.cpp:

Go to the source code of this file.

Enumerations

enum  clapper_state { clap1, clap_one_waiting, pause, clap2 }

Functions

int main ()
AnalogIn mic_pin (mic)

Variables

int adc_ave = 0
clapper_state clap
std_msgs::Empty clap_msg
ros::NodeHandle nh
ros::Publisher p ("clap",&clap_msg)
Timer t
int volume_thresh = 200

Enumeration Type Documentation

Enumerator:
clap1 
clap_one_waiting 
pause 
clap2 

Definition at line 28 of file Clapper.cpp.


Function Documentation

int main ( void  )

Definition at line 37 of file Clapper.cpp.

AnalogIn mic_pin ( mic  )

Variable Documentation

int adc_ave = 0

Definition at line 34 of file Clapper.cpp.

Definition at line 29 of file Clapper.cpp.

std_msgs::Empty clap_msg

Definition at line 25 of file Clapper.cpp.

Definition at line 23 of file Clapper.cpp.

ros::Publisher p("clap",&clap_msg)
Timer t

Definition at line 36 of file Clapper.cpp.

int volume_thresh = 200

Definition at line 31 of file Clapper.cpp.



rosserial_mbed
Author(s): Gary Servin
autogenerated on Sat Oct 7 2017 03:08:46