3 from __future__
import print_function
13 import actionlib_tutorials.msg
22 client.wait_for_server()
25 goal = actionlib_tutorials.msg.FibonacciGoal(order=20)
28 client.send_goal(goal)
31 client.wait_for_result()
34 return client.get_result()
36 if __name__ ==
'__main__':
40 rospy.init_node(
'fibonacci_client_py')
42 print(
"Result:",
', '.join([str(n)
for n
in result.sequence]))
43 except rospy.ROSInterruptException:
44 print(
"program interrupted before completion", file=sys.stderr)