#include <ros.h>
#include <std_msgs/Empty.h>
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 |
enum clapper_state |
Enumerator | |
---|---|
clap1 | |
clap_one_waiting | |
pause | |
clap2 |
Definition at line 28 of file Clapper.cpp.
int main | ( | void | ) |
Definition at line 37 of file Clapper.cpp.
AnalogIn mic_pin | ( | mic | ) |
int adc_ave =0 |
Definition at line 34 of file Clapper.cpp.
clapper_state clap |
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.