#include "mbed.h"
#include <ros.h>
#include <std_msgs/Float32MultiArray.h>
Go to the source code of this file.
Functions | |
void | beep (float freq, float time) |
DigitalOut | led (LED1) |
int | main () |
void | messageCb (const std_msgs::Float32MultiArray &msg) |
void | nobeep () |
Variables | |
ros::NodeHandle | nh |
bool | playing = false |
ros::Subscriber < std_msgs::Float32MultiArray > | sub ("buzzer",&messageCb) |
Timeout | toff |
void beep | ( | float | freq, |
float | time | ||
) |
Definition at line 36 of file GroveBuzzer.cpp.
DigitalOut led | ( | LED1 | ) |
int main | ( | void | ) |
Definition at line 57 of file GroveBuzzer.cpp.
void messageCb | ( | const std_msgs::Float32MultiArray & | msg | ) |
Definition at line 44 of file GroveBuzzer.cpp.
void nobeep | ( | ) |
Definition at line 30 of file GroveBuzzer.cpp.
Definition at line 16 of file GroveBuzzer.cpp.
bool playing = false |
Definition at line 27 of file GroveBuzzer.cpp.
ros::Subscriber<std_msgs::Float32MultiArray> sub("buzzer",&messageCb) |
Timeout toff |
Definition at line 26 of file GroveBuzzer.cpp.