sample_pointcloud_localization_client.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import rospy
4 from std_srvs.srv import Empty
5 from std_srvs.srv import EmptyRequest
6 
7 
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))
13 
14  while not rospy.is_shutdown():
15  req = EmptyRequest()
16  res = localize_client(req)
17 
18  try:
19  r.sleep()
20  except rospy.ROSTimeMovedBackwardsException:
21  pass


jsk_pcl_ros
Author(s): Yohei Kakiuchi
autogenerated on Mon May 3 2021 03:03:47