gf
Dependencies: mbed MSGEQ7 ros_lib_melodic
Revision 0:9940f2cb8603, committed 2021-03-25
- Comitter:
- aldir99
- Date:
- Thu Mar 25 09:03:28 2021 +0000
- Commit message:
- cvgf
Changed in this revision
diff -r 000000000000 -r 9940f2cb8603 MSGEQ7.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MSGEQ7.lib Thu Mar 25 09:03:28 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/chrisisthefish/code/MSGEQ7/#974a4855a7f8
diff -r 000000000000 -r 9940f2cb8603 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Mar 25 09:03:28 2021 +0000 @@ -0,0 +1,25 @@ +#include"mbed.h" +#include <ros.h> +#include <std_msgs/String.h> +#include <std_msgs/Int32.h> + +ros::NodeHandle nh; + +std_msgs::Int32 str_msg; +ros::Publisher chatter("chatter", &str_msg); + +int32_t hello=1; + +DigitalOut led = LED1; + +int main() { + nh.initNode(); + nh.advertise(chatter); + + while (1) { + str_msg.data = hello; + chatter.publish( &str_msg ); + nh.spinOnce(); + wait_ms(50); + } +} \ No newline at end of file
diff -r 000000000000 -r 9940f2cb8603 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Mar 25 09:03:28 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file
diff -r 000000000000 -r 9940f2cb8603 ros_lib_melodic.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ros_lib_melodic.lib Thu Mar 25 09:03:28 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/garyservin/code/ros_lib_melodic/#da82487f547e