def getLPSFix(self): global poseFromMarkerClient goal = PoseEstimateGoal() goal.sendPose = True poseFromMarkerClient.send_goal(goal) rospy.loginfo(" - - - - - - GETTING FIX FROM LPS! - - - - - - ") poseFromMarkerClient.wait_for_result(rospy.Duration.from_sec(SERVER_WAIT_TIME_COORD))
def testClient(): client = actionlib.SimpleActionClient('posefrommarker', PoseEstimateAction) client.wait_for_server() # Creates a goal to send to the action server. goal = PoseEstimateGoal() goal.sendPose = True client.send_goal(goal) client.wait_for_result() return client.get_result()