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

Go to the source code of this file.

Functions

int main ()
void messageCb (const std_msgs::Empty &toggle_msg)
DigitalOut myled (LED1)

Variables

ros::NodeHandle nh
ros::Subscriber< std_msgs::Empty > sub ("toggle_led",&messageCb)

Function Documentation

int main ( void  )

Definition at line 18 of file Blink.cpp.

void messageCb ( const std_msgs::Empty &  toggle_msg)

Definition at line 12 of file Blink.cpp.

DigitalOut myled ( LED1  )

Variable Documentation

Definition at line 9 of file Blink.cpp.

ros::Subscriber<std_msgs::Empty> sub("toggle_led",&messageCb)


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