3 roslib.load_manifest(
'turtlebot_actions')
19 rospy.init_node(
"find_fiducial_pose_test")
22 rospy.loginfo(
"Starting action client...")
24 action_client.wait_for_server()
25 rospy.loginfo(
"Action client connected to action server.")
28 rospy.loginfo(
"Calling the action server...")
29 action_goal = FindFiducialGoal()
30 action_goal.camera_name =
"/camera/rgb" 31 action_goal.pattern_width = 7
32 action_goal.pattern_height = 6
33 action_goal.pattern_size = 0.027
34 action_goal.pattern_type = 1
36 if action_client.send_goal_and_wait(action_goal, rospy.Duration(50.0), rospy.Duration(50.0)) == GoalStatus.SUCCEEDED:
37 rospy.loginfo(
'Call to action server succeeded')
39 rospy.logerr(
'Call to action server failed')
42 if __name__ ==
"__main__":