00001
00002
00003 #include <ros/ros.h>
00004 #include <tf/transform_broadcaster.h>
00005
00006 std::string turtle_name;
00007
00008
00009
00010 void poseCallback(){
00011 static tf::TransformBroadcaster br;
00012 tf::Transform transform;
00013 transform.setOrigin( tf::Vector3(0, 0, 0.0) );
00014 transform.setRotation( tf::Quaternion(0, 0, 0) );
00015 br.sendTransform(tf::StampedTransform(transform, ros::Time::now(), "/odom_combined", "/base_footprint"));
00016 }
00017
00018 int main(int argc, char** argv){
00019 ros::init(argc, argv, "tf_pub_broadcaster");
00020
00021 ros::NodeHandle node;
00022
00023 ros::Rate rt(10);
00024 while (ros::ok()) {
00025 rt.sleep();
00026 poseCallback();
00027 ros::spinOnce();
00028 }
00029
00030
00031 return 0;
00032 };
00033