23 import cob_lookat_action.msg
27 print(
"Waiting for Server...")
28 client.wait_for_server()
32 goal = cob_lookat_action.msg.LookAtGoal()
33 goal.target_frame =
"lookat_target" 34 goal.pointing_frame =
"sensorring_base_link" 35 goal.pointing_axis_type = 0
39 client.send_goal(goal)
42 client.wait_for_result()
44 result = client.get_result()
49 if __name__ ==
'__main__':
51 rospy.init_node(
'cob_lookat_action_client')
53 except rospy.ROSInterruptException:
54 print(
"program interrupted before completion")
def cob_lookat_action_client()