4 from std_srvs.srv
import Empty
5 from std_srvs.srv
import EmptyRequest
8 if __name__ ==
"__main__":
9 rospy.init_node(
"sample_pointcloud_localization_client")
10 rospy.wait_for_service(
'~localize')
11 localize_client = rospy.ServiceProxy(
'~localize', Empty)
12 r = rospy.Rate(rospy.get_param(
'~request_rate', 1.0))
14 while not rospy.is_shutdown():
20 except rospy.ROSTimeMovedBackwardsException: