ptu_action_test.py
Go to the documentation of this file.
1 #!/usr/env/bin python
2 import roslib; roslib.load_manifest('ptu_control')
3 import rospy
4 import ptu_control.msg
5 import actionlib
6 import sys
7 
9  client = actionlib.SimpleActionClient('SetPTUState', ptu_control.msg.PtuGotoAction)
10  client.wait_for_server()
11  goal = ptu_control.msg.PtuGotoGoal(pan=float(sys.argv[1]), tilt=float(sys.argv[2]))
12  client.send_goal(goal)
13  client.wait_for_result()
14  return client.get_result()
15 
16 if __name__ == '__main__':
17  rospy.init_node('action_test')
18  result = ptu_action_test()
19  print result


ptu_control
Author(s): Dan Lazewatsky
autogenerated on Mon Mar 2 2015 01:32:49