![](/media/cache/profiles/94aef38441efa3380a3bed3faf1f9d5d.50x50_q85.jpg)
This program is porting rosserial_arduino for mbed http://www.ros.org/wiki/rosserial_arduino This program supported the revision of 169 of rosserial. This program contains an example.
Dependencies: rosserial_mbed_lib mbed Servo
Diff: examples/TimeTF.cpp
- Revision:
- 3:dff241b66f84
- Parent:
- 0:06fc856e99ca
--- a/examples/TimeTF.cpp Sun Oct 16 09:33:53 2011 +0000 +++ b/examples/TimeTF.cpp Sat Nov 12 23:53:04 2011 +0000 @@ -9,11 +9,10 @@ #include "mbed.h" #include <ros.h> #include <ros/time.h> +#include <tf/transform_broadcaster.h> ros::NodeHandle nh; -#include <tf/transform_broadcaster.h> - geometry_msgs::TransformStamped t; tf::TransformBroadcaster broadcaster; @@ -22,6 +21,8 @@ int main() { nh.initNode(); + broadcaster.init(nh); + while (1) { t.header.frame_id = odom;