38 import roslib; roslib.load_manifest(PKG)
46 import tf2_geometry_msgs
47 from geometry_msgs.msg
import PointStamped
54 client.wait_for_server()
57 p1.header.frame_id =
"a" 58 p1.header.stamp = rospy.Time(0.0)
64 p2 = client.transform(p1,
"b")
65 rospy.loginfo(
"p1: %s, p2: %s" % (p1, p2))
67 rospy.logerr(
"%s" % e)
71 client.wait_for_server()
74 p1.header.frame_id =
"a" 75 p1.header.stamp = rospy.Time(0.0)
81 p2 = client.transform(p1,
"b", new_type = PyKDL.Vector)
82 rospy.loginfo(
"p1: %s, p2: %s" % (str(p1), str(p2)))
84 rospy.logerr(
"%s" % e)
86 if __name__ ==
'__main__':
87 rospy.init_node(
"test_buffer_client")
89 rostest.rosrun(PKG,
'test_buffer_client', TestBufferClient)
def test_transform_type(self)
def test_buffer_client(self)