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

Go to the source code of this file.

Functions

int main ()
 

Variables

ros::Publisher chatter ("chatter", &str_msg)
 
char hello [13] = "hello world!"
 
DigitalOut led = LED1
 
ros::NodeHandle nh
 
std_msgs::String str_msg
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 19 of file HelloWorld.cpp.

Variable Documentation

◆ chatter

ros::Publisher chatter("chatter", &str_msg)

◆ hello

char hello[13] = "hello world!"

Definition at line 15 of file HelloWorld.cpp.

◆ led

DigitalOut led = LED1

Definition at line 17 of file HelloWorld.cpp.

◆ nh

Definition at line 10 of file HelloWorld.cpp.

◆ str_msg

std_msgs::String str_msg

Definition at line 12 of file HelloWorld.cpp.



rosserial_mbed
Author(s): Gary Servin
autogenerated on Mon Feb 28 2022 23:35:26