5 roslib.load_manifest(
'tf')
7 from geometry_msgs.msg
import PointStamped
10 pub = rospy.Publisher(
'point_test', PointStamped)
11 rospy.init_node(
'point_test')
16 while not rospy.is_shutdown():
18 br.sendTransform((3*sin(t/10),3*cos(t/10),sin(t/20)),
19 tf.transformations.quaternion_from_euler(0,0,0),
23 msg.header.frame_id =
"/point"
24 msg.header.stamp = rospy.Time.now();
25 msg.point.x = 2*sin(t);
26 msg.point.y = 2*cos(t);