![](/media/cache/profiles/2019-02-17_Foto_de_perfil_014_03.jpg.50x50_q85.jpg)
Personal fork
Dependencies: Servo mbed rosserial_mbed_lib
Fork of rosserial_mbed by
Diff: examples/HelloWorld.cpp
- Revision:
- 5:e52b44294b2b
- Parent:
- 3:dff241b66f84
diff -r 2cbca0ac2569 -r e52b44294b2b examples/HelloWorld.cpp --- a/examples/HelloWorld.cpp Wed Feb 29 23:02:12 2012 +0000 +++ b/examples/HelloWorld.cpp Thu May 01 06:20:36 2014 +0000 @@ -1,4 +1,4 @@ -#define COMPILE_HELLOWORLD_CODE_ROSSERIAL +//#define COMPILE_HELLOWORLD_CODE_ROSSERIAL #ifdef COMPILE_HELLOWORLD_CODE_ROSSERIAL /* @@ -15,13 +15,16 @@ std_msgs::String str_msg; ros::Publisher chatter("chatter", &str_msg); -char hello[13] = "hello world!"; +//char hello[13] = "hello world!"; +char hello[13] = "Gary Servin!"; +DigitalOut led = LED1; int main() { nh.initNode(); nh.advertise(chatter); while (1) { + led = !led; str_msg.data = hello; chatter.publish( &str_msg ); nh.spinOnce();